Digital Systems Lab 12

Lab 12: Register Control Logic

Lab 12 will come from the published version of the lab manual.

Breaking Lab 12 Into Parts

You may not be able to finish this circuit if you do not have a solid plan for building the circuit. Here are the steps you should take to build the circuit.

  • First, build the FSM and put LEDs on the output of each flip-flop. Once you press the load button, you’ll see the progression from 11 -> 01 -> 00. Use a clock of 1-2 Hz for now. CLR pins go to VCC for now.
  • Next, implement the Moore machine outputs and check that those are correct by putting LEDs on the OS and CS output signals. Once you press the load button, you’ll see the progression from 01 -> 10 -> 00. Keep the same slow clock and CLR/VCC for now.
  • Next, implement the addition step. Pay attention to the order of MSB/LSB on the registers and the adder chip. You should see that numbers continuously add together, although there is no overflow logic yet. 3 Hz clock is OK, and set CLR to VCC still.
  • Finally, implement the overflow and reset clearing logic. Now your CLR pins will go to the overflow/reset signal, rather than VCC.
Other Tips
  • Use a clock signal of less than 3 Hz in the final implementation (any faster and the overflow logic may not work correctly).
  • Keep notes of what’s connected to each logic gate
  • Use wire colors to stay organized
Lab Manual Errata

The following are known errors in the lab manual corresponding to this lab.

  • This is not an errata as much as it is a clarification. To clarify what the input variable X means: X is 0 if the instruction that is to be carried out does not require the ALU (arithmetic and logic unit). X is 1 if the instruction DOES require the ALU. All instructions must go through states S0-S1-S2, however. X is not a “stay put” or “return to S0” variable.
Lab Modifications

The following parts of this lab have been modified from the published version of the lab manual.

  • none
Resources

Watch/read the following resources prior to attending this lab. This information will teach you how to use lab equipment and provide suggestions and technical tips for successfully completing the lab.

  • Textbook: Section 12.2
  • Video: Register adder circuit
  • Because many students don’t understand what the circuit is supposed to do, below is an embed of a simulation of the circuit built in CircuitVerse. You can play around with the simulation to see how it works. (Note that a lot of the parts in CircuitVerse are different from the 7400 chips, so this does not have a 1:1 correlation with what you will build in lab.)