Advanced Digital Circuits ECET 146 Week 5 Professor Iskandar Hack ET 221G, 481-5733 Me as I typed this slides.

Slides:



Advertisements
Similar presentations
Finite State Machines (FSMs)
Advertisements

Lecture 23: Registers and Counters (2)
Analysis of Clocked Sequential Circuits
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Advanced Digital Circuits ECET 146 Week 4 Professor Iskandar Hack ET 221B,
Advanced Digital Circuits ECET 146 Week 9 Professor Iskandar Hack ET 221B,
ECE 353 Computer Systems Lab II VHDL AND LABORATORY TOOLS TUTORIAL Professors Maciej Ciesielski & T. Baird Soules.
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
Counter Circuits and VHDL State Machines
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design
CS61C L21 State Elements : Circuits that Remember (1) Spring 2007 © UCB 161 Exabytes In 2006  In 2006 we created, captured, and replicated 161 exabytes.
CS61C L21 State Elements : Circuits that Remember (1) Garcia, Fall 2006 © UCB One Laptop per Child  The OLPC project has been making news recently with.
ENEE 408C Lab Capstone Project: Digital System Design Fall 2005 Sequential Circuit Design.
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
CS61C L15 Synchronous Digital Systems (1) Beamer, Summer 2007 © UCB Scott Beamer, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture.
CS 61C L15 State & Blocks (1) A Carle, Summer 2006 © UCB inst.eecs.berkeley.edu/~cs61c/su06 CS61C : Machine Structures Lecture #15: State 2 and Blocks.
KU College of Engineering Elec 204: Digital Systems Design
Lecture 21 Overview Counters Sequential logic design.
Counting with Sequential Logic Experiment 8. Experiment 7 Questions 1. Determine the propagation delay (in number of gates) from each input to each output.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Advanced Digital Circuits ECET 146 Week 1 Professor Iskandar Hack ET 205B,
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Advanced Digital Circuits ECET 146 Week 3 Professor Iskandar Hack ET 221B,
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
Advanced Digital Circuits ECET 146 Week 7 Professor Iskandar Hack ET 221B,
Registers CPE 49 RMUTI KOTAT.
Advanced Digital Circuits ECET 146 Week 4 Professor Iskandar Hack ET 221G,
Advanced Digital Circuits ECET 146 Week 5 Professor Iskandar Hack ET 221B,
Advanced Digital Circuits ECET 146 Week 2 Professor Iskandar Hack ET 221B,
Lab 3 : Multiplier Overview.
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
1 CSE370, Lecture 19 Lecture 19 u Logistics n Lab 8 this week to be done in pairs íFind a partner before your lab period íOtherwise you will have to wait.
Creating your Home Directory During Labs you will need to save all your work in a folder called CP120 (or PC120) in your Home Directory (drive I:) To get.
Advanced Digital Circuits ECET 146 Week 9 Professor Iskandar Hack ET 221G,
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Advanced Digital Circuits ECET 146 Week 6 Professor Iskandar Hack ET 221G, Me as I typed this slides.
Computer Organization & Programming Chapter 5 Synchronous Components.
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay 2 The D FlipFlop The RS flipflop stores one bit of information.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
2. Graphic Editor 를 이용하여 Logic Gate 만들기 1 컴퓨터 구조 실습 안내서.
Teaching Digital Logic courses with Altera Technology
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
State Machine Design State Machine Design Digital Electronics
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
EET 1131 Unit 4 Programmable Logic Devices
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Registers and Counters
Flip Flops Lecture 10 CAP
cs316 section 2: Intro to Logisim + State Machines
ECET 230 Innovative Education--snaptutorial.com
Instructor: Alexander Stoytchev
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Finite State Machines.
Counters.
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
ECE 352 Digital System Fundamentals
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
EGR 2131 Unit 12 Synchronous Sequential Circuits
Instructor: Michael Greenbaum
Advanced Computer Architecture Lecture 3
Presentation transcript:

Advanced Digital Circuits ECET 146 Week 5 Professor Iskandar Hack ET 221G, Me as I typed this slides

This Week’s Goals Introduction to the concept of Hierarchical Design Techniques Designing a circuit with multiple projects Designing an counter in AHDL

Hierarchical Design Techniques Also called Top-Down Design A design technique that allows a project to be broken into a series of smaller projects Each subdesign is developed and tested separately The overall design is then assembled using either Text Design Techniques or by connecting the subdesigns in the graphical editor (preferred method for this course)

Design a four-bit full adder using Hierarchal Techniques Create a project for One-Bit Half Adder Enter Design Compile Create Default symbol simulate project HA Create a project for One-Bit Full adder Repeat steps from above Create a new project fourbitadd in Graphical Editor Insert a half adder and three full adders, and connect as done in ECET 11 Simulate full design These circuits can be found on pages in ECET 111 textbook

Enter Design for Half Adder Half Adder Simulation of HA

Remember steps from earlier lectures Enter the design using Input Output XOR AND2 Name the pins Save file as ha.gdf Set project to current file Save and Compile (don’t worry about set device or pins since we’re not going to build the subdesign in hardware) Draw Waveforms for Simulation and Simulate

Create Default Symbol This step creates a schematic symbol that can be used in other designs

Default Symbol for Half Adder

Full Adder Repeat process for the Full Adder that you did for the Half Adder

Simulation for Full Adder

Default Symbol for Full Adder

Draw Four-Bit Adder Open Graphical Editor and add the symbols ha and 4-fa’s and connect them as shown with inputs and outputs similar as shown on page 238 in Kleitz Note – All files MUST be in the same directory on the drive!!! Do not put ha, fa and fourbitadder in different directories.

Fourbitadder drawing

Save, Compile, Define Device and Pins After drawing the fourbitadder save it as a new file (fourbitadder.gdf) Set Project to current file Save and Compile Set Device as before to EPM74128SLC84-7 Define input pins and output pins

Pin Assignments

Draw Waveforms for Simulation As before you’ll open the waveform editor and add the nodes from the SNF

Group Inputs and Outputs Group the inputs and outputs to make verification easy

Change Group Values to Verify Circuit Select part of A[] and B[] and assign them random values to see if the circuit actually adds the output

Completed Simulation Waveform Remember that I chose random values for A[0..3] and B[0..3] to test the circuit

Simulate Save the file as fourbitadder.scf and simulate Glitches because of propagation delays

Lab 4 Implement an 8-Bit adder as discussed in this lab Simulate the design Do not Build the circuit, just turn copies of the HA, FA and eightbitadder GDF files and simulation

Introduction to Finite State Machines We will only discuss synchronous Finite State Machines (FSM’s) Synchronous FSM’s will change state only on a rising or falling clock edge The simplest Finite State Machine (FSM ) is a counter Every FSM has an input at a minimum a clock and reset A simple counter the counts from 0 to 5 and repeats has 6 unique states, which I’ll call s0, s1, s2, s3, s4 and s5 A simple counter will change state every clock cycle

A Simple Bubble Graph for Counter

Block Diagram for FSM State Transition Table Clock Reset Other Inputs Current State Next State Outputs

Defining State Machines in AHDL Define Subdesign with Inputs and Outputs as before Add the state machine definition in the variable section Use a table to specify the state transitions Use a 2 nd table to specify the output for each state

AHDL Simple Counter Design Subdesign with I/O specified Tell Altera to set Up State Machine Define how to go from Current State to Next State Define what the outputs are for Each state

Save, Set Project and Compile Repeat steps as done earlier projects Save as projname.tdf Set Project to Current File Save and Compile Define Device and Pins (note Pin 2 is used for clock and Pin 1 for Reset)

Verify Pin Outs in Report File ** PIN/LOCATION/CHIP ASSIGNMENTS ** Actual User Assignments Assignments (if different) Node Name clk count0 count1 count2 reset

Simulate Open Waveform Editor and add nodes from SCF as before The only inputs are reset and clk in this project Take the reset high for ½ clock cycle and use the clock function to define the clock

Simulation Waveform Note the State is Displayed – Very Important for Troubleshooting projects later

Lab 4b Design a counter in AHDL that will count the sequence 0,1,3,4,5,6,7,2,0,1,3,… Simulate the Design and turn in the a copy of the TDF file and Simulation You do not need to build this circuit