Classical Method and One-Hot Method Design
Classical Method and One-Hot Method Design
second row are S2. The corresponding active outputs are the two register-
load signals Load XR and Load YR, along with Swap, which route the outputs
of XR and YR to YR and XR, respectively. The next states for S 2 are the same
as those for S0; the active outputs are Subtract, which routes the output XR –
YR of the subtracter to XR, and Load XR.
Classical method. The major steps of the classical design method are as
follows:
2. Select the minimum number p of D-type flip-flops and assign a p-bit binary
code to each state.
We now apply this method to the design of the control unit CU for the gcd
processor. We have already constructed the necessary state table (Figure
5.7). Since there are four states, we require two flip-flops, whose outputs
D1D0 = y1y0 define CU's internal states. We assign the binary patterns to the
four states in the following obvious way:
We note in passing that the state assignment pattern affects the complexity
of the circuit in subtle ways. At this point we can construct a binary version
of the state table, the excitation table, as shown in Figure 5.8. The D flip-
flop's characteristic equation Di+ (t + 1) = Di (t) defines the inputs D1+ and
D0+ to the flip-flops. CU's combinational logic C can now be derived from the
excitation table using any available manual or auto- matic method. Suppose,
for instance, that we use two-level sum-of-products (SOP) minimization. It is
easily checked that C is defined by the following SOP equations, which lead
directly to the design of Figure 5.9. Note that all gates in an AND-OR SOP
circuit can be changed to NANDs to produce a NAND-NAND realization of the
original function.
One-hot method. While the classical design method minimizes a control
unit's memory elements, its effect on the amount of combinational logic C is
less obvious. Furthermore, control units designed by this technique tend to
have a complicated, "random" structure, which makes design debugging and
subsequent maintenance of the circuit difficult. An alternative approach that
simplifies the design process and gives C a regular and predictable structure,
is the one-hot method, so called because its binary state assignment always
contains a single 1 the “hot" bit—while all the remaining bits are 0. Thus the
state assignment for a four-state machine like the gcd processor takes the
following form:
A NAND implementation of these equations appears in Figure 5.10. Note that
the asynchronous Reset line must set D 0 to 1 and all other state variables to
0.
The steps of the one-hot design method for a Moore machine can be
summarized as follows: