next up previous
Up: ece241F Home

University of Toronto
Department of Electrical and Computer Engineering
 
ECE241F: Digital Systems
 
Hardware Lab #5

P. Chow and J. Rose

Fall 1996

NOTE: You should demonstrate the final circuit in both parts to a TA.

The purpose of this experiment is to revisit the adder circuit that you built in Lab 3, but do it with the higher-density PAL chips.

Part A

Having constructed the 2-bit circuit in Lab 3, you have undoubtedly become aware of the wiring complexity that can be involved in logic circuits, and the care that must be taken when designing and constructing circuits with lots of chips. Consider now the possibility of extending your design to the 4-bit case. How many gates and wires would you need? The problem is simplified considerably if larger chips with more gates are used, i.e., chips that contain several basic gates interconnected internally to provide easy to use functional blocks. Examples might be 4-bit adder chips, which provide a specific MSI function, or PAL chips, which are more flexible.

In this lab you will design, construct, and test a complete 4-bit version of the circuit from Lab 3, using the P18CV8 PAL device. First, note that the PAL includes edge-triggered D flip flops. How are they different from the flip flops you designed for Lab 3?

With the use of edge-triggered flip flops, the circuit only needs one register stage. Why? Figure 1 shows the circuit to build. It can be done in a single P18CV8. Details of the Adder and Register are shown in Figure 2. You should use the pinout shown in Figure 3.

Develop the ABEL equations for this circuit, program the PAL, and test. The following is an example of the kind of statements you will need:

              s0 := d0 :+: s0 :+: carryin;

Note that because tex2html_wrap_inline111 , tex2html_wrap_inline113 , and tex2html_wrap_inline115 will be on the left side of some equations, you are required to assign them to output pins even though you are not using them as outputs. This rule is part of the ABEL language. By looking at the diagram of the P18CV8 in the lab manual, can you determine why this is necessary?

For your test vectors, you should use the .c. constant to indicate the clocked input.

Preparation: Describe your design in ABEL-HDL, compile and simulate it using the abel program. Come to the lab ready to program and test a working PAL.

   figure67
Figure 1: ALU configuration using edge-triggered flip flops.

   figure72
Figure 2: Details of the adder and register.

   figure77
Figure 3: Pinout to be used.

Part B

You will be given, during the lab period a word description of a synchronous sequential circuit to design with a PAL. This may be a counter or a finite state machine.


next up previous
Up: ece241F Home

Jonathan Rose
Sat Oct 26 13:15:29 EDT 1996