5.1 Exercises 113
Section 5.4: More RTL Design
5.16 Create an FSM that interfaces with the datapath in Figure 5.100. The FSM should
use the datapath to compute the average value of the 16 32-bit elements of any array
A. Array A is stored in a memory, with
4.18 Design a 4-bit carry-ripple style magnitude comparator that has two outputs, a
greater-than or equal-to output gte, and a less-than or equal-to output lte. Be sure to
clearly show the equations used in developing the individual 1-bit comparators and
4.3 Design a 4-bit register with 2 control inputs SI and s0, 4 data inputs 13, 12, 11 and 10,
and 4 data outputs Q3, Q2, Q1 and Q0. When slsO=00, the register maintains its
value. When slsO=01, the register loads 13.10. When slsO=10, the register clears
5.2
Capture the following system behavior as an I-ILSM. The system counts the number
of events on a single-bit input B and always outputs that number unsigned on a 16-
bit output C, which is initially 0. An event is a change from 0 to l or from 1 to 0.
As