ECEN 248 Lab 9: Design of a Traffic Light Controller

Slides:



Advertisements
Similar presentations
VHDL 5 FINITE STATE MACHINES (FSM) Some pictures are obtained from FPGA Express VHDL Reference Manual, it is accessible from the machines in the lab at.
Advertisements

Counters Discussion D8.3.
Traffic light contoller using FSM
FSM Revisit Synchronous sequential circuit can be drawn like below  These are called FSMs  Super-important in digital circuit design FSM is composed.
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
DISCUSSION CSE 140L 3 rd November 2010 Vikram Murali.
LAB 3 – Review of the Assignment. -- Clarifications Vikram Murali. TA : CSE 140L Prof. CK Cheng.
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design 8.5 Finite State Machine.
ENEE 408C Lab Capstone Project: Digital System Design Fall 2005 Sequential Circuit Design.
ECEN 248 Lab 6: De-Bouncing, Counters & LCD Display Control

Sequential Logic in Verilog
1 COMP541 State Machines Montek Singh Feb 8, 2012.
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Advanced Digital Circuits ECET 146 Week 7 Professor Iskandar Hack ET 221B,
EE434 ASIC & Digital Systems
Lecture 18 More Moore/Mealy machines.
Register Transfer Level & Design with ASM
Lecture 5. Sequential Logic 2 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
IX - Sequential Logic Technology © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Sequential logic implementation Implementation  random logic.
IX - Sequential Logic TechnologyContemporary Logic Design1 Ch 9. Sequential Logic Technologies.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Finite State Machine. Clock Clock cycle Sequential circuit Digital logic systems can be classified as combinational or sequential. – Combinational circuits.
EMT 351/4 DIGITAL IC DESIGN Verilog Behavioral Modeling  Finite State Machine -Moore & Mealy Machine -State Encoding Techniques.
Pusat Pengajian Kejuruteraan Mikroelektronik EMT 351/4 DIGITAL IC DESIGN Verilog Behavioural Modeling (Part 4) Week #
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Exp#7 Finite State Machine Design in Verilog COE203 Digital Logic Laboratory Dr. Ahmad Almulhem KFUPM Spring 2009.
Finite State Machines Mealy machine inputs Outputs next state function
Project 2: Ultra Traffic Light Controller
Lecture 4. Sequential Logic #2
Figure 8.1. The general form of a sequential circuit.
Lecture L5.1 Mealy and Moore Machines
AS Computer Studies Finite State Machines 1.
1.3 Finite State Machines.
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
4-Integrating Peripherals in Embedded Systems
Revision Name __________ Student number______
4-Integrating Peripherals in Embedded Systems
COMP541 Sequential Logic – 2: Finite State Machines
ELEC 1041 Digital Electronics Tutorial: Word Problems
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
VHDL 5 FINITE STATE MACHINES (FSM)
Traffic light programming challenges
Hakim Weatherspoon CS 3410 Computer Science Cornell University
Raspberry Pi with Pibrella
COMP541 State Machines Montek Singh Feb 4, 2010.
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
CSE 370 – Winter Sequential Logic-2 - 1
EE4OI4 Engineering Design
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Topics Verilog styles for sequential machines. Flip-flops and latches.
Sequential logic implementation
Instructor: Alexander Stoytchev
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
Lecture 4: Continuation of SystemVerilog
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
332:437 Lecture 9 Verilog Example
332:437 Lecture 9 Verilog Example
CSE 140 Lecture 9 Sequential Networks
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
Finite State Machine Continued
332:437 Lecture 9 Verilog Example
Digital System Design ASMD based Design
Lecture 4: Finite State Machines
Presentation transcript:

ECEN 248 Lab 9: Design of a Traffic Light Controller Dept. of Electrical and Computer Engineering names

How to generate timing delays The experimental board provides with the 50MHz clock signal Generate a 1Hz clock signal using 50MHz clock signal Use counter as the frequency divider /* clk is the 50MHz clock signal, d is the counter, cout is the 1Hz clock signal */ always @(posedge clk) begin if (d==26'd25000000) begin cout <= 1'b1; d<=d+26'd1;end else if (d==26‘50000000) begin cout <=1'b0; d<=26'd0;end else d <= d +26'd1; end ???x1?? = 25e6=25000000 ???x2?? = 50e6=50000000

FSM Finite State Machine (FSM) Mealy machine Moore machine States Transition: depends on inputs Mealy machine Using current state and current inputs to create output Getting new output when the transition happens More responsive Moore machine Using ONLY current state to create output Getting new output when reaching new state

Traffic lights

If there are pedestrians or cars waiting to cross highway If there are no pedestrians or cars waiting to cross highway Night mode

LCD Display Configuration Note: You can encode the light status (e.g., 1: GREEN, 2: RED,3: YELLOW, 4:STOP) in the top module. Then, use case statement to decode the light status in the display module.

Top-level block diagram CLK: Global clock signal Reset: Global reset signal, which comes from a push button Ped_H: Pedestrian push button at the highway crossing Ped_F: Pedestrian push button at the farm-road crossing No_Car: It represents if the sensor detects a car on the far road. Generated by an external on/off switch

Deadlines Today Work on Lab 9 2 weeks later Lab 9 Post-Lab due