Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me create an ALU Controller module that follows the truth table given below and uses the given module definition. Thank you so much.
Please help me create an ALU Controller module that follows the truth table given below and uses the given module definition. Thank you so much.
timescale ns ps
Module definition
module ALUController
ALUOp Funct Funct Operation
;
Define the input and output signals
Define the ALUController modules behavior
endmodule ALUController ALUController
The inputs to the ALUController are the ALUOp, Funct and Funct ALUOp comes from the Con
troller and Funct and Funct come from the Datapath. The output of the ALUController is the bits
operation code which goes to the ALUCC input of the datapath. You see the block diagram of the ALU
Controller in figure
Figure : ALUController.
tableoperationOperation codeAND ANDI,OR ORI,ADD ADDI, SW LWSUBSLT SLTI,NOR NORI,
We need to find a relation between the inputs and the output of the ALUController. Table shows this relation.
Table : The truth table for the operation code.
tableFunctFunctALUop,OperationANDORNORSLTADDSUBANDIORINORISLTIADDILWSW
in Table means there could be any values there.
Here you see the equation for the first bit of the operation as an example:
assign Operation
: ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started