Digital Systems with Lab ENGIN 241 Lab 4

Similar documents
LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Chapter 7 Memory and Programmable Logic

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Gates, Circuits, and Boolean Algebra

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

ANALOG & DIGITAL ELECTRONICS

Upon completion of unit 1.1, students will be able to

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Analog & Digital Electronics Course No: PH-218

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Counters and Decoders

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

The components. E3: Digital electronics. Goals:

3 The TTL NAND Gate. Fig. 3.1 Multiple Input Emitter Structure of TTL

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

Digital Electronics Detailed Outline

CHAPTER 11: Flip Flops

A Digital Timer Implementation using 7 Segment Displays

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Memory Basics. SRAM/DRAM Basics

Lecture 5: Gate Logic Logic Optimization

DM74LS47 BCD to 7-Segment Decoder/Driver with Open-Collector Outputs

ASYNCHRONOUS COUNTERS

Content Map For Career & Technology

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Chapter 2 Logic Gates and Introduction to Computer Architecture

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Programming Logic controllers

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Seven-Segment LED Displays

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

Hexadecimal and Numeric Indicators. Technical Data

Interfacing To Alphanumeric Displays

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Introduction to Digital System Design

HCF4028B BCD TO DECIMAL DECODER

Figure 8-1 Four Possible Results of Adding Two Bits

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

BINARY CODED DECIMAL: B.C.D.

Chapter 6 TRANSISTOR-TRANSISTOR LOGIC. 3-emitter transistor.

CD4001BC/CD4011BC Quad 2-Input NOR Buffered B Series Gate Quad 2-Input NAND Buffered B Series Gate

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

Lecture 8: Synchronous Digital Systems

Electronics Merit Badge Class 3. 1/30/2014 Electronics Merit Badge Class 3 1

74AC191 Up/Down Counter with Preset and Ripple Clock

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

MICROPROCESSOR AND MICROCOMPUTER BASICS

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

DEPARTMENT OF INFORMATION TECHNLOGY

Basic Logic Gates Richard E. Haskell

ENGI 241 Experiment 5 Basic Logic Gates

Memory. The memory types currently in common usage are:

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Controlling a Dot Matrix LED Display with a Microcontroller

Operating Manual Ver.1.1

CpE358/CS381. Switching Theory and Logical Design. Class 4

Part Number Description Packages available

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

3-Digit Counter and Display

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Lecture-3 MEMORY: Development of Memory:

1-Mbit (128K x 8) Static RAM

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Lab 1: Full Adder 0.0

Contents COUNTER. Unit III- Counters

MSFET MICROSENS Miniature ph Sensor Module

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

LOW POWER SCHOTTKY. GUARANTEED OPERATING RANGES ORDERING INFORMATION PLASTIC N SUFFIX CASE 648 SOIC D SUFFIX CASE 751B

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

Combinational Logic Design Process

Multiplexers Two Types + Verilog

Designing Digital Circuits a modern approach. Jonathan Turner

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Two-level logic using NAND gates

Aims and Objectives. E 3.05 Digital System Design. Course Syllabus. Course Syllabus (1) Programmable Logic

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

74AC138 74ACT138 1-of-8 Decoder/Demultiplexer

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Introduction to Programmable Logic Devices. John Coughlan RAL Technology Department Detector & Electronics Division

GLOLAB Two Wire Stepper Motor Positioner

GAL-ASM-Starterkit. taskit GmbH Seelenbinderstr Berlin (Germany) Telefon +49(0)30 / Fax +49(0)30 /

Digital Systems. Syllabus 8/18/2010 1

Physics 623 Transistor Characteristics and Single Transistor Amplifier Sept. 13, 2006

Semiconductor MSM82C43

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

Copyright Peter R. Rony All rights reserved.

Transcription:

Digital Systems with Lab ENGIN 241 Lab 4 Dr. Honggang Zhang Engineering Department University of Massachusetts Boston

Lab 4 Objectives Introduce programmable logic CAD (Computer Aided Design) tools for using programmable logic Introduce programming hardware

Lab 4 Implement a Hexadecimal to seven segment display decoder Use Active-HDL to specify design Program into a GAL Interfacing with seven segment display

Lab 4 You will need to define the functionality of the BCD to 7-segment display decoder. BCD binary coded decimal The Common Anode Display (CAD) all the anode connections of the LED s are joined together to logic 1 and the individual segments are illuminated by connecting the individual Cathode terminals to a LOW, logic 0 signal.

Lab 4 You will need to use two 7406 chips to drive the 7-segment display The 7406 has open collector outputs allowing it to drive LEDs and LED displays

Lab 4 Decoder inputs: W, X, Y, Z (Binary) Decoder outputs: A-G (Hex) Define a truth table containing 11 columns For each row define which LEDs on the 7- segment display need to be turned ON

Truth Table X1 X2 X3 X4 a b c d e f g 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 1 0 0 1........... 1 1 1 1 0 0 0 1 1 1 0 Keep in mind that the following HEX values could look the same on the 7-segment display: B = 8, D = 0 (make sure to use lower case letters to distinguish between them)

Lab 4 Preliminary Work Items 1 to 4 should be submitted to the instructor no later than 5pm on March 1, 2017. 1. Determine the truth table for the system show in Figure 1(a). Write down your truth table. 2. Plot the functions (A to G) on K-maps and write down the minimized Boolean equation for each. 3. Generate a VHDL program, define the input and output pins, and enter the equations for the outputs. Compile and simulate your design. Write down your VHDL program, and show a screen capture of your simulation in Active-HDL. 4. Compile your design once you verify the simulated outputs. Submit the JEDEC (.jed) file before the lab begins next week. Email your JEDEC file to the instructor. 5. Derive chip implementation circuit diagram and a wire list for the final circuit. 6. Wire your circuit in preparation for the lab. Put a picture of your circuit into your prelab-report. (It is ok if the PLD chip has not been programmed yet).

Lab 4 Work You will: Burn your GAL22v10 Connect the full circuit Verify your implemented circuit

Programmable Logic A family of components that contains arrays of logic elements (AND, OR, INVERT, LATCH, FLIP- FLOP) that may be configured into any logical function that the component supports. Classes of programmable logic devices: ASICs, FPGAs, PLAs, PROMs, PALs, GALs, and complex PLDs. 10

Basic architecture of user programmable device Contains a pre-defined general architecture in which a user can program a design into the device using a set of development tools. Normally consists of one or more arrays of AND and OR terms for implementing logic functions. Many also contain combinations of flip-flops and latches which may be used as storage elements for inputs and outputs of a device. 11

Programmable Logic Devices (PLD) ROM read only memory Can implement any function Programmable forms PROM, EPROM, EEPROM PLA programmable logic array PAL programmable array logic GAL generic array logic FPGA field programmable gate array

PROMs Programmable Read Only Memories. Consists of a fixed number of AND array terms that feeds a programmable OR array. Mainly used for decoding specific input combinations into output functions, such as memory mapping in microprocessor environments. 13

PAL -- Programmable Array Logic Implements equations specified as SOP Circuits include arrays of fuses or switches that set sum and product terms

PALs -- Programmable Array Logic Consists of programmable AND terms feeding fixed OR terms. All inputs to the array can be ANDed together, but specific AND terms are dedicated to specific OR terms. Most widely used type of user programmable device. Mainly used to replace multiple TTL logic functions commonly referred to as glue logic. 15

AC F 1= AC + AB + BC F BC + AF + 2 = 1 ACD PAL

PLAs -- Programmable Logic Arrays. Contain both programmable AND and OR terms which allow any AND term to feed any OR term. PLAs probably have the greatest flexibility with regard to logic functionality. They typically have feedback from the OR array back into the AND array which may be used to implement asynchronous state machines. 17

Complex PLDs Complex Programmable Logic Devices. Considered very large PALs that have some characteristics of PLAs. The basic architecture is very much like a PAL 18

FPGAs -- Field Programmable Gate Arrays Electrically programmable gate array ICs that contain multiple levels of logic. FPGAs feature high gate densities, high performance, a large number of user-definable inputs and outputs, a flexible interconnect scheme, and a gate-array-like design environment. 19

Programming Logic Devices They are programmed by either shorting or opening connections within a device array, thus connecting or disconnecting inputs to a gate. Most hardware programmers receive a fuse information file from a software development package in ASCII format. The ASCII file could either be in JEDEC format for PLDs or HEX format for PROMs. A JEDEC file contains fuse connections that are represented by an address followed by a series of 1 s and 0 s where a 1 indicates a disconnected state and a 0 indicates a connected state. A JEDEC file can also contain information that allows the hardware programmer the ability to perform a functional test on the device. 20

isplever_classic2_0 We use isplever from Lattice Semiconductor to generate JEDEC files from.vhd files. You can get isplever classic 2.0 base module from http://www.latticesemi.com/ispleverclassic. To get a license, you just need to create an account and provide your laptop's MAC address. 21

The GAL 22v10 Characteristics: 22 input / output signals 48 product terms 10 flip-flops single bit memories

Lab 4 You will need to define the functionality of the BCD to 7-segment display decoder. BCD binary coded decimal The Common Anode Display (CAD) all the anode connections of the LED s are joined together to logic 1 and the individual segments are illuminated by connecting the individual Cathode terminals to a LOW, logic 0 signal.

Open collector 7406

Most TTL circuits have a similar structure NAND and AND gates use multiple-emitter transistor or multiple diode junction inputs. NOR and OR gates use separate input transistors. The input will be the cathode of a P-N junction A HIGH input will turn off the junction. Only a leakage current is generated. A LOW input turns on the junction. Relatively large current is generated. Most TTL circuits have some type of totem-pole output configuration.

The basic TTL logic circuit is the NAND gate. Diode equivalent for Q 1. Basic TTL NAND gate.

TTL NAND gate LOW output

A TTL output acts as a current sink in the LOW state because it receives current from the input of the gate that it is driving. Transistor Q 4 of the driving gate is on and essentially shorts point X to ground. LOW voltage at X forwardbiases the emitter base junction of Q 1 & current flows back through Q 4.

A TTL output acts as a current sink in the LOW state because it receives current from the input of the gate that it is driving. Q 4 is performing a currentsinking action deriving its current from the input current (I IL ) of the load gate. Q 4 is often called the currentsinking transistor or pulldown transistor because it brings the output voltage down to its LOW state.

TTL NAND gate HIGH output

A TTL output acts as a current source in the HIGH state a small reverse-bias leakage current. Transistor Q 3 is supplying the input current (I IH ) required by Q 1 of the load gate. Q 3 is often called the currentsourcing or pull-up transistor.

The first line of TTL ICs was the 54/74 series from Texas Instruments introduced in 1964. Manufacturers use the same numbering system. Prefix indicates manufacturer. SN Texas Instruments. DM National Semiconductor. S Signetics. DM7402, SN7402, S7402 perform the same function. Data sheets contain electrical characteristics, switching characteristics, and recommended operating conditions.

Typical TTL series characteristics.

Fan-out refers to the load drive capability of an IC output A TTL output has a limit on how much current it can sink in the LOW state, or source in the HIGH state. Exceeding these currents will result in output voltage levels outside specified ranges. Determining fan out Add the I IH for all inputs connected to an output. Sum must be less than the output I OH specification. Add the I IL for all inputs connected to an output. Sum must be less than the output I OL specification.

TTL outputs modified this way are called open-collector outputs. CMOS outputs modified this way are called open-drain outputs.

Wired-AND operation using open-collector gates.

7406/7407 are the recommended due to their high I OL and V OH specifications. 7406 can sink up to 40mA in the LOW state, can handle output voltages up to 30V in the HIGH state. 7407 is an open-collector, non-inverting buffer with the same voltage and current ratings as a 7406.

A common use of open-collector/drain outputs is as a buffer/driver. Logic circuit designed to have a greater output current and/or voltage capability than an ordinary logic circuit. They allow a weaker output circuit to drive a heavy load. Clock rising edge triggerd J-K flip-flop An open-collector buffer/driver drives a highcurrent, high-voltage load.

Open-collector outputs are often used to drive indicator LEDs. An open-collector output can be used to drive an LED indicator. An open-drain CMOS output. D-Latch 7405 is an open-drain hex inverter with 25mA current sink capability.