Using the following components: 4-bit general-purpose register, 4-bit adder/ subtractor, and tristate buffer, and assuming the inbus
Question:
Using the following components: 4-bit general-purpose register, 4-bit adder/ subtractor, and tristate buffer, and assuming the inbus and outbus are 4 bits wide, design a control unit using hardwired control to perform the operations shown in Figure P6.13. You may use counters, decoders, and PLAs as required.
(a) Outbus ← 4 A. Assume A is a 4-bit unsigned number and the result is 4 bits wide.
(b) If the 4-bit number in register B is odd, outbus ← 0; otherwise outbus ← A + (B/2). Assume A and B are unsigned 4 bit numbers. Also, assume data is already loaded into B.
(c) If the content of a 4-bit register Q = 0, perform R ← M and then transfer the 4-bit result to outbus. On the other hand, if the content of the 4-bit register Q = 0, perform R ← 0 and then transfer the 4-bit result to the outbus. Assume M and R are 4 bits wide.
Step by Step Answer:
Fundamentals of Digital Logic and Microcontrollers
ISBN: 978-1118855799
6th edition
Authors: M. Rafiquzzaman