You are required to modify the Tristate Bus to add an Adder. The adder will add the
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 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
Financial Accounting The Impact on Decision Makers
ISBN: 978-1285182964
9th edition
Authors: Gary A. Porter, Curtis L. Norton