(a) For the ASM chart derived in Problem 7.4, show another ASM chart that specifies the required...
Question:
(a) For the ASM chart derived in Problem 7.4, show another ASM chart that specifies the required control signals to control the data path circuit in the processor. Assume that multiplexers are used to implement the bus that connects the registers, R0 to R3, in the processor.
(b) Write complete Verilog code for the system in Problem 7.4, including the control circuit described in part (a).
(c) Synthesize a circuit from the Verilog code written in part
(b) and show a timing simulation that illustrates correct functionality of the circuit.
Data From Problem 7.4
In Section 7.2 we gave the design for a circuit that works as a processor. Give an ASM chart that describes the functionality of this processor.
Data From Section 7.2
A second example of a digital system like the one in Figure 7.2 is shown in Figure 7.9. It has four n-bit registers, R0, . . . , R3, that are connected to the bus with tri-state drivers. External data can be loaded into the registers from the n-bit Data input, which is connected to the bus using tri-state drivers enabled by the Extern control signal. The system also includes an adder/subtractor module. One of its data inputs is provided by an n-bit register, A, that is attached to the bus, while the other data input, B, is directly connected to the bus. If the Add Sub signal has the value 0, the module generates the sum A + B; if Add Sub = 1, the module generates the difference A − B. To perform the subtraction, we assume that the adder/subtractor includes the required XOR gates to form the 2’s complement of B, as discussed in Section 3.3. The register G stores the output produced by the adder/subtractor.
The A and G registers are controlled by the signals Ain, Gin, and Gout .
The system in Figure 7.9 can perform various functions, depending on the design of the control circuit. As an example, we will design a control circuit that can perform the four operations listed in Table 7.1. The left column in the table shows the name of an operation and its operands; the right column indicates the function performed in the operation. For
Step by Step Answer:
Fundamentals Of Digital Logic With Verilog Design
ISBN: 9780073380544
3rd Edition
Authors: Stephen Brown, Zvonko Vranesic