7-Segment LED Display DD: Section 5.1-5.2 Mano: Section 3.10.

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

Verilog in transistor level using Microwind
Verilog.
Decoder Mano Section 4.9 &4.12.
Verilog Overview. University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Supplement on Verilog adder examples
Synchronous Sequential Logic
EE 361 Fall 2003University of Hawaii1 Hardware Design Tips EE 361 University of Hawaii.
Chapter 11 Verilog HDL Application-Specific Integrated Circuits Michael John Sebastian Smith Addison Wesley, 1997.
Table 7.1 Verilog Operators.
Verilog Intro: Part 1.
Hardware Description Language (HDL)
Full Adder Display. Topics A 1 bit adder with LED display Ripple Adder Signed/Unsigned Subtraction Hardware Implementation of 4-bit adder.
Multiplexer as a Universal Function Generator Lecture L6.7 Section 6.2.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Lecture 12 Latches Section Schedule 3/10MondayLatches (1) /12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring.
Lecture 12 Latches Section , Block Diagram of Sequential Circuit gates New output is dependent on the inputs and the preceding values.
 HDLs – Verilog and Very High Speed Integrated Circuit (VHSIC) HDL  „ Widely used in logic design  „ Describe hardware  „ Document logic functions.
Jack Ou, Ph.D. CES522 Engineering Science Sonoma State University
ENEE 408C Lab Capstone Project: Digital System Design Spring 2006 Class Web Site:
1 COMP541 Combinational Logic and Design Montek Singh Jan 30, 2007.
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value Z:high-impedance.
Verilog Sequential Circuits Ibrahim Korpeoglu. Verilog can be used to describe storage elements and sequential circuits as well. So far continuous assignment.
2-to-1 Multiplexer: if Statement Discussion D7.1 Example 4.
Advanced Verilog EECS 270 v10/23/06.
Computer Organization Lecture Set – 03 Introduction to Verilog Huei-Yung Lin.
Introduction to Verilog Multiplexers. Introduction to Verilog Verilog Hardware Description Language (Verilog HDL) released by Gateway Design Automation.
Quad 2-to-1 Multiplexer Discussion D7.4 Example 7.
Overview Logistics Last lecture Today HW5 due today
More Examples Dataflow/Behavioral Modeling Section 4.12.
each of these is an instantiation of “full_adder”
Decoder Mano Section 4.9. Outline Decoder Applications Verilog.
Sequential Logic in Verilog
Verilog Basics Nattha Jindapetch November Agenda Logic design review Verilog HDL basics LABs.
Verilog Intro: Part 2. Procedural Blocks There are two types of procedural blocks in Verilog. – initial for single-pass behavior: initial blocks execute.
Combinational Circuits
ECE 2372 Modern Digital System Design
Verilog HDL: A solution for Everybody By, Anil Kumar Ram Rakhyani
Verilog Language Concepts
CS 3850 Lecture 3 The Verilog Language. 3.1 Lexical Conventions The lexical conventions are close to the programming language C++. Comments are designated.
ENG241 Digital Design Week #4 Combinational Logic Design.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
1 Verilog Digital System Design Z. Navabi, 2006 Verilog Language Concepts.
Combinational Circuits by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Introduction to Combinational Verilog EECS270 rev 9/25/12.
Introduction to ASIC flow and Verilog HDL
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 4: Testing, Dataflow Modeling Spring 2009.
Multiplexers Section Topics Multiplexers – Definition – Examples – Verilog Modeling.
Verilog® HDL Behavioral Modeling (2)
Lecture No. 18 Combinational Functional Devices. Recap Decoder Decoder –3-to-8 Decoder –Cascading of Decoders 4-to-16 decoder –Implementing SOP & POS.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
Full Adder Verilog(HO: wires/regs, always) Section 4.5 (Full adder)
TOPIC : SEQUENTIAL AND PARALLEL BLOCKS Module 2.3 : Behavioral modeling in verilog.
Overview Logistics Last lecture Today HW5 due today
Reg and Wire:.
Verilog-HDL-3 by Dr. Amin Danial Asham.
Hardware Description Languages: Verilog
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Behavioral Modeling in Verilog
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value
COE 202 Introduction to Verilog
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value
Supplement on Verilog adder examples
The Verilog Hardware Description Language
Foundations for Datapath Design
Presentation transcript:

7-Segment LED Display DD: Section Mano: Section 3.10

Topics Using Using Case Staetment Wire Versus reg Mux Use Mux to display one bit at a time

always statement The sensitivity list contains a list of all signals that will affect the outputs generated by the always block.

* in the sensitivity list will automatically include all signals on the right side of your statements can be used when you want your elements to change their values as one or more of its inputs change. can be used with either non-blocking statement (if you want to execute statements in parallel) or blocking statement (if you want to execute statements sequentially)

Why using (Desirable) (incorrect!)

case (=, implies that blocking statements are used) the number preceding : indicates the value of the case parameter. ‘hA means “A” in hex numbers. 7’b means 7 binary numbers with a sequence equal to

default The default statement is necessary since Verilog actually defines four possible Values for each bit: 0 1 Z (high impedance) X (unknown value)

reg All outputs generated by the always block must be declared to be of type reg. Reg is used to suggest that the values behaves like a variable that might be stored in a register.

wire

Legal Uses of the wire

reg

Legal Uses of reg

When wire and reg are Interchangable

Test Bench for hex7seg_case.v

Multiplexer 2-to-1 mux 4-to-1 mux

2-to-1 mux A 2-input mux is controlled by a single control line s. If s=0, y=a and y=b if s=1.

Implementation

4-to-1 Mux

(Creating a 4 x 1 MUX from 2 x 1 MUX)

Multiplexing 7-Segment Displays Get values for an[3:0] from btn[3:0] so that only one LED is displayed. If s[1:0]=00, then x[3:0]. If s[1:0]=01, then x[7:4]. If s[1:0]=10, then x[11:8]. If s[1:0]=11, then x[15:12]. Use Quad 4-to-1 mux