RSR Electronics Pldt-2 User'S Manual Ver 1.08
RSR Electronics Pldt-2 User'S Manual Ver 1.08
RSR Electronics Pldt-2 User'S Manual Ver 1.08
08
1.0 INTRODUCTION
The RSR Electronics PLDT-2 digital logic trainer board, shown in Figure 1, has been designed as a
"target board" for students and other users to design, implement, and test digital circuits using a modern
programmable device and industry-standard design tools. It is built around the ALTERA corporation
EPM7128SLC84 CPLD device in an 84-pin PLCC package.
While the fundamental principles of digital logic design have remained constant, the technology in which
digital designs are implemented has changed rapidly. From transistors in the 1950s to small-scale
integrated circuits (ICs) in the 1960s to large-scale ICs such as microprocessors in the 1970s, to the
sophisticated programmable ICs of today
Early digital IC devices, such as 7400 series TTL, were initially built as standard building-blocks that had
to be interconnected by copper traces on a circuit board. By the 1980s, the blocks could be mounted on
one chip, and the interconnection done by "burning" a design into it. Those were the early programmable
logic devices (PALs, PLAs, PLDs). They were one-time programmable (OTP), and required an
electronic "box" called a device programmer to do the "burning". Later came devices that could be erased
electrically and reprogrammed.
Today, ICs such as the venerable 7400 TTL chip are almost obsolete. Modern digital designs use large-
scale programmable ICs such as field-programmable gate arrays (FPGAs) and complex programmable
logic devices (CPLDs). Internally, FPGAs implement logic functions using look-up tables in memory
blocks while CPLDs use sum-of-product terms configured from arrays of gates. Both FPGAs and CPLDs
also contain flip-flops.
To program such devices, special computer-aided design (CAD) software is required that allows the user
to enter a digital design on a PC, check it for validity, simulate its performance, and then download it into
the target chip. Depending on the CAD package being used, a design can be entered using schematic
capture software to draw a diagram showing interconnected gate symbols. Or a design may be entered
using a text editor to create a file containing a set of Boolean equations written in a hardware description
language (HDL). A common HDL is ABEL (Advanced Boolean Expression Language). Either way, the
CAD software compiles the design into the low-level commands needed to configure the device.
The EPM7128SLC84 CPLD contains 128 macrocells with 2500 usable gates arranged in 8 logic array
blocks as shown in Figure 2. The chip is available in speeds from 6 ns to 15 ns delay time pin-to-pin.
Outputs can drive 25 mA (max) loads.
Figure 1
Figure 2
The EPM7128SLC84 used in the PLDT-2 digital logic trainer is in-service programmable (ISP). ISP
means that the CPLD can be erased and reprogrammed while it is in a circuit, so a separate device-
programmer box is not required. The PLDT-2 is powered by a wall-mounted power module which comes
with the trainer.
The PLDT-2 connects to the parallel port of a personal computer via a standard 25-wire cable with DB25
connectors at both ends. The cable is part of the package when purchasing the PLDT-2. Standard design
software, such as the ALTERA MAX+PLUS Software, can be used with the PLDT-2.
Once commands are down-loaded from the PC to the CPLD, the cable may be disconnected; the CPLD
"remembers" the design. Or the cable can be left attached for rapid reconfiguration of the logic design.
Either way, the digital circuit programmed into the CPLD can be tested using the on-board switches and
LEDs of the PLDT-2 board. Almost all pins of the CPLD are brought out via four dual-row receptacles
(HD4, HD5, HD6, HD7) surrounding the CPLD socket. CPLD pins, together with power, ground, and
other signals, are brought out via pin-headers for the easy attachment of ribbon cables, making the full
power of the EPM7128SLC84 available for advanced designs. A 60-pin header (P2) allows the PLDT-2
to be connected to a Motorola M68HC11EVBU/D micro-controller board.
The 16 toggle switches and 16 LEDs of the PLDT-2 can be accessed via pin jacks to allow connection of
external circuits. Thus external circuits built with small scale ICs, such as 7400 series TTL or 4000 series
CMOS logic, can also be used. Also on board the PLDT-2 are two N.O. momentary push-button switches,
a 4 MHz clock oscillator, and dual 7-segment displays.
3.1 POWER
Power is supplied to the PLDT-2 from a wall-mounted 9 Volt DC power supply (or a 7-9 Volt DC bench
supply) connected to J14 (see detail E). Note that the center pin of J14 is positive. The input voltage is
regulated down to 5 Volts by an on-board 7805 regulator (U2). Note that 5 Volts and ground are brought
out on screw terminals next to J14 (detail G).
Sixteen toggle switches, numbered 1 to 8, are provided by two DIP mounted switch modules, S1 and S 2
(detail D). When a toggle switch is in the position marked H (high), the switch pole is connected via a
pull-up resistor to +5 Volts. In the position marked L (low), the switch pole is connected to ground.
The eight poles from module S1 are wired to pin-jack strips J1 and J2, and to pins on one side of jumper
strip HD1 (see detail M). The opposite side of HD1 is connected to CPLD pins as shown in Table 1. When
no jumpers are installed on HD1, the CPLD is isolated from the switches.
The eight poles from S2 are wired to pin-jack strips J6 and J5. Note that pin-jack strips J2, J5, J4, and J8 are
positioned for easy connection to an external solderless breadboard.
*** WARNING ***
After testing the board, remove all eight jumpers from HD1 before programming your own
design into the CPLD. FAILURE TO DO SO WILL CAUSE PERMANENT DAMAGE TO
THE CPLD CHIP:
When using the SK1 Dip-Switch as inputs in your design, DO NOT program the associated CPLD to be
Highs (1s). Those pins are 33, 34, 35, 36, 37, 39, 40, and 41.
1 34 1 44
2 33 2 45
3 36 3 46
4 35 4 48
5 37 5 49
6 40 6 50
7 39 7 51
8 41 8 52
INSTALL JUMPERS TO CONNECT
TABLE 1
Four debounced toggle switches are provided by switch module S5 (see detail D). The outputs of the
switches are available at pin-jacks on J12. The four LEDs next to J12 indicate switch status. When a switch
is "on", it provides a high TTL level to J 12 and the LED lights. When a switch is off, it places a TTL low
on J12 and the LED is off.
Two momentary push-button switches, S3 and S4 (detail C), can be used to apply manually generated
input pulses to the CPLD. Both switches have pull-up resistors and are normally open (NO), so they will
produce a pulse with a falling (+5 V to 0) edge. Neither switch is debounced. The output of S 3 is on pin
jack J9 while the output of S4 is on pin jack J10.
The PLDT-2 has an on-board 4 MHz oscillator module. The output of this module can be connected to
pin 83 of the CPLD by placing a shorting bar across jumper J 1 (detail B). The clock signal is also
accessible via single pin socket “CLK”.
3.6 LEDs
The PLDT-2 has sixteen LEDs, numbered 1 to 16 (details J, K), connected through resistor packs to pin
jacks. LEDs 1 to 8 are connected to pin-jack strips J3 and J4 while LEDs 9 to 16 are connected to pin-jack
strips J7 and J8. LEDs 1 to 8 are also connected to one side of jumper-strip HD2. The opposite side of
HD2 is connected to CPLD pins as shown in Table 1. When no jumpers are installed on HD2, the CPLD
is isolated from the LEDs.
A common-anode dual 7-segment display (detail F) is connected through current-limiting resistors to the
CPLD pins as shown in Table 2 below.
7- SEGMENT DISPLAY
(see detail H on Figure 1)
DISPLAY 1 CPLD DISPLAY 2 CPLD
SEGMENTS PIN SEGMENTS PIN
A 58 A 69
B 60 B 70
C 61 C 73
D 63 D 74
E 64 E 76
F 65 F 75
G 67 G 77
DP 68 DP 79
TABLE 2
In order to deactivate Dual 7-Segment Display cut the trace under the jumper JP3 (copper side of PCB).
Display can be activated again by placing the shorting bar across the jumper JP3.
Most of the CPLD pins are brought out to ribbon cable connectors P1, P2, and P3. The pin-outs are given
in the tables below. Power (+5 Volts) and ground (GND) are also brought out.
P1 CPLD
PIN PIN
1 GND
2 +5 V
3 CLK
4 1
5 2
6 4
7 5
8 6
9 8
10 9
11 10
12 11
13 12
14 15
15 16
16 17
17 18
18 80
19 +5 V
20 GND
TABLE 3
P2 P2
PIN CONNECTION PIN CONNECTION
1 GND 31 HD3 PIN15
2 N/C 32 HD3 PIN16
3 N/C 33 HD3 PIN17
4 HD3 PIN1 34 HD3 PIN18
5 HD3 PIN2 35 LED 1
6 HD3 PIN3 36 LED 2
7 N/C 37 LED 3
8 N/C 38 LED 4
9 S1 - 8 39 LED 5
10 S1 - 7 40 LED 6
11 S1 - 6 41 LED 7
12 S1 - 5 42 LED 8
13 S1 - 4 43 HD3 PIN19
14 S1 - 3 44 HD3 PIN20
15 S1 - 2 45 HD3 PIN21
16 S1 - 1 46 HD3 PIN22
17 HD3 PIN4 47 HD3 PIN23
18 HD3 PIN5 48 HD3 PIN24
19 HD3 PIN6 49 HD3 PIN25
20 N/C 50 HD3 PIN26
21 N/C 51 HD3 PIN27
22 HD3 PIN7 52 HD3 PIN28
23 HD3 PIN8 53 N/C
24 HD3 PIN9 54 N/C
25 HD3 PIN10 55 N/C
26 N/C 56 N/C
27 HD3 PIN11 57 +5 V
28 HD3 PIN12 58 +5 V
29 HD3 PIN13 59 GND
30 HD3 PIN14 60 GND
TABLE 4
P3 CPLD P3 CPLD
PIN PIN PIN PIN
1 UNREG DC 31 25
2 GND 32 27
3 +5 V 33 28
4 GND 34 29
5 +5 V 35 30
6 GND 36 31
7 N/C 37 33
8 N/C 38 34
9 N/C 39 35
10 N/C 40 36
11 N/C 41 37
12 1 42 39
13 84 43 40
14 2 44 41
15 4 45 44
16 5 46 45
17 6 47 46
18 8 48 48
19 9 49 49
20 10 50 50
21 11 51 51
22 12 52 52
23 15 53 54
24 16 54 55
25 17 55 56
26 18 56 57
27 20 57 +5 V
28 21 58 GND
29 22 59 +5 V
30 24 60 GND
TABLE 5
The switches and LEDs of the PLDT-2 trainer board can be used with external circuitry. A simple TTL
experiment is given in 5.1 below. Three simple PLD experiments are given in 5.2, 5.3, and 5.4 below.
OBJECTIVE
To examine a simple combinatorial circuit built with a TTL chip. The switches of the PLDT-2 will be
used to generate input while the LEDs of the PLDT-2 will be used to show output.
PARTS
1. Solderless Breadboard
2. 74LS00 TTL Quad-2 Integrated Circuit
3. PLDT-2 with power module
PROCEDURE
A) Use Boolean Algebra to get an equation for Q from the following circuit:
Q = __________________________________________________
B) Using the equation, fill in the truth table on the next page (just fill in the column labeled Q).
C) Build the circuit. (NOTE: solderless breadboard & PLDT-2 must have common +5 & GND)
Check off each step as you complete it.
Connect the power module to the PLDT-2 and plug the power module into a 110 VAC outlet.
Assuming a switch at H is a logic 1 and a lit LED is a logic 1, fill in the column labeled LED on the truth
table on the next page.
SW 1 SW 2 SW 3 SW 4 Q LED
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
The objective of this experiment is to gain familiarity with the use of Altera Max+Plus software by
designing and implementing a simple gate circuit.
AND gates and OR gates are two fundamental building blocks of digital circuits. Both AND and OR
gates can have two or more inputs, but only one output. The input / output behavior of a gate is shown by
a truth table and is written as a Boolean equation as shown below.
Gate Characteristics:
A B X
0 0 0
0 1 0
1 0 0
1 1 1
The OR Gate
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
PROCEDURE:
1. Create a new directory on your C: drive (call it ALLABS, or you name it). You will save all your
experiment files in this directory since they will be too big for a floppy.
2. Start the Software by clicking on the following: Start Programs Altera Max+Plus II..
13. After finishing the process of assigning pin numbers, schematic should look like:
17. Run the program on your PLDT-2 board and fill in the following truth-tables by using the
switches for inputs and the LEDs for output.
A B C X=ABC A B C Y=A+B+C
0 0 0 0 0 0
0 0 1 0 0 1
0 1 0 0 1 0
0 1 1 0 1 1
1 0 0 1 0 0
1 0 1 1 0 1
1 1 0 1 1 0
1 1 1 1 1 1
The objective of this experiment is to gain familiarity with the use of Altera software by designing and
implementing an asynchronous counter using JK flip-flops (FFs).
In an asynchronous counter, the output of each FF serves as the CLK input signal for the next FF. The
name asynchronous comes from the fact that all the FFs do not change states at the same time. After each
clock, change "ripples down" the chain of FFs, which is why they also are called ripple counters.
The clock pulses applied to CLKIN are generated by the PULSE switch.
C B A NUMBER OF
PULSES
0 0 0 0
0 0 1 1
0 1 0 2
0 1 1 3
1 0 0 4
1 0 1 5
1 1 0 6
1 1 1 7
PROCEDURE:
Using this same technique as described in previous experiment create new project ASY_COU
Give this same name for graphics file. Create the circuit based on the picture below:
TESTING :
Using jumper wires connect pin 2 block HD4 to any switch S5 This switch will simulate the clock
Using jumper wire connect the pin 1 block HD4 to any free switch S5, This switch will simulate RESET.
LED1,2 and 3 will monitor outputs A,B and C.
Fill out:
Truth-Table for 3-bit Asynchronous Counter