Question
You are required to modify the Tristate Bus to add an Adder. The adder will add the contents of registers A and B and store
You are required to modify the Tristate Bus to add an Adder. The adder will add the contents of registers A and B and store the result into register A, B, or C.
module datapathBus(
inout [7:0] dataBus,
// Control Signals
input enbIn, enbA, enbB, enbC,
input ldA, ldB, ldC,
//
input reset,
input clock);
wire [7:0] dataOutA, dataOutB, dataOutC;
tristateBuf triBufIn(dataBus, dataBus, enbIn);
tristateBuf triBufA(dataOutA, dataBus, enbA);
tristateBuf triBufB(dataOutB, dataBus, enbB);
tristateBuf triBufC(dataOutC, dataBus, enbC);
eightBitRegister regA(dataBus, dataOutA, ldA, reset, clock);
eightBitRegister regB(dataBus, dataOutB, ldB, reset, clock);
eightBitRegister regC(dataBus, dataOutC, ldC, reset, clock);
endmodule
Input data Eni Lda Clock Ena Reg. A 8 Enb Ldb- Tristate bus Reg. B 8X Ldc Enc Reg. C
Step by Step Solution
3.47 Rating (177 Votes )
There are 3 Steps involved in it
Step: 1
Answer 1 The operation A A B can be performed in 2 cycles In the first cycle the contents of registers A and B must be read into the bus In the second cycle the result of the addition will be stored i...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