Decoder Mano Section 4.9 &4.12.

Slides:



Advertisements
Similar presentations
Digital System Design-II (CSEB312)
Advertisements

Xilinx 6.3 Tutorial Integrated Software Environment (ISE) Set up basic environment Select Gates or Modules to Be simulated (Insert Program Code) Run Waveform.
Verilog Section 3.10 Section 4.5. Keywords Keywords are predefined lowercase identifiers that define the language constructs – Key example of keywords:
Give qualifications of instructors: DAP
Verilog.
Verilog Overview. University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Princess Sumaya University
Verilog Modules for Common Digital Functions
CPEN Digital System Design
Functions and Functional Blocks
Verilog Intro: Part 1.
Combinational Logic with Verilog Materials taken from: Digital Design and Computer Architecture by David and Sarah Harris & The Essentials of Computer.
Figure 4.1. The function f (x1, x2, x3) =  m(0, 2, 4, 5, 6).
Semiconductor Memory Design. Organization of Memory Systems Driven only from outside Data flow in and out A cell is accessed for reading by selecting.
Half Adder Sec Sec. 4.5, Schedule 11/13MondayCourse intro, diagnostic test 21/15Wednesday Fundamentals of digital logic design (1) (signed.
Anurag Dwivedi.  Verilog- Hardware Description Language  Modules  Combinational circuits  assign statement  Control statements  Sequential circuits.
Full Adder Section 4.5 Spring, 2014 J.Ou. Schedule 62/3MondayBinary addition: full adder 72/5WednesdayBinary addition: full adder/four-bit adder L2/6ThursdayLab.
CSE 341 Verilog HDL An Introduction. Hardware Specification Languages Verilog  Similar syntax to C  Commonly used in  Industry (USA & Japan) VHDL 
7-Segment LED Display DD: Section Mano: Section 3.10.
1 COMP541 Combinational Logic and Design Montek Singh Jan 30, 2007.
Verilog Sequential Circuits Ibrahim Korpeoglu. Verilog can be used to describe storage elements and sequential circuits as well. So far continuous assignment.
University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Lecture # 12 University of Tehran
More Examples Dataflow/Behavioral Modeling Section 4.12.
Encoder Section Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.
Combinational Logic Chapter 4.
Morgan Kaufmann Publishers
Decoder Mano Section 4.9. Outline Decoder Applications Verilog.
Verilog Basics Nattha Jindapetch November Agenda Logic design review Verilog HDL basics LABs.
Introduction to FPGA AVI SINGH. Prerequisites Digital Circuit Design - Logic Gates, FlipFlops, Counters, Mux-Demux Familiarity with a procedural programming.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Combinational Circuit – Arithmetic Circuit
ECE 2372 Modern Digital System Design
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
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 Combinational Logic Design Digital Computer Logic Kashif Bashir
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 3: Structural Modeling Spring 2009 W. Rhett.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
ACOE361 – Digital Systems Design. Useful information Instructor: Lecturer K. Tatas Office hours: Mo5, Tu3, We6-8, Fri5 Prerequisites: ACOE201 (ACOE161)
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
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.
1 Fundamentals of Computer Science Combinational Circuits.
Random Number Generation Section 3.10 Section 4.12.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Multiplexers Section Topics Multiplexers – Definition – Examples – Verilog Modeling.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Verilog Intro: Part 1. Hardware Description Languages A Hardware Description Language (HDL) is a language used to describe a digital system, for example,
LECTURE V TEST BENCHES. As your projects become more complex and multiple modules are employed, it will no longer be possible to simulate them as we did.
1 University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
ACOE161 (Spring2007)MSI Devices1 Revision on MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5)
Full Adder Verilog(HO: wires/regs, always) Section 4.5 (Full adder)
EGR 2131 Unit 6 Combinational Building Blocks
Hardware Description Languages: Verilog
Discussion 2: More to discuss
ENG2410 Digital Design “Combinational Logic Design”
Combinational Logic Circuits
Verilog-HDL-3 by Dr. Amin Danial Asham.
Hardware Description Languages: Verilog
Reference: Chapter 3 Moris Mano 4th Edition
Overview Introduction Logic Gates Flip Flops Registers Counters
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Chapter 4 Combinational Logic
FIGURE 4.1 Block diagram of combinational circuit
COE 202: Digital Logic Design Combinational Circuits Part 3
The Verilog Hardware Description Language
Digital System Design Combinational Logic
Prof. Onur Mutlu ETH Zurich Spring March 2019
Presentation transcript:

Decoder Mano Section 4.9 &4.12

Schedule 10 2/17 Monday Decoder 11 2/19 Wednesday Encoder (hw3 is assigned) L 2/20 Thursday Decoder Experiment 12 2/24 MUX/Three state (data flow versus behavioral) 13 2/26 Catch-up (hw3 is due) 2/27 Random number generator 14 3/3 Test 1

Outline Feedback Applications Memory Decoder Verilog Modeling

Feedback on the labs Tutorial Finish the labs before you leave. emacs/vi tutorial at the course webpage. Verilog tutorial Always start from the textbook (There is usually a section on Verilog at the end of each chapter) Supplement the textbook with the tutorial from ASIC. Use the existing sample code as a starting point. Finish the labs before you leave.

Example (1): A Year Year’s Eve Display

Example (2): Binary to Octal Conversion Convert binary information from n input lines to 2n unique output lines. This particular circuit take a binary number and convert it to an octal number.

Hardware Implementation

Example (3): Organization of Memory Systems

AND and NOR Decoders One of which is activated. Each is a combination leading to a “1” Take an n-bit address. Produce 2n outputs, One of which is activated. (NOR Decoder)

A 2-to-4 decoder with Enable (typo, should be a 0)

Example (4): Demultiplexer A Demux is a circuit that receives information from a single line and directs it to one of 2n possible output lines.

Use a 2-to-4 decoder as a Demux Treat A and B as the selector bits. i.e. A and B select which bit should receive informraiton. E is treated as the data line. (typo, should be a 0)

Example (5): Implement a Full Adder with a Decoder

Example (6): Build a Bigger Decoders Use w to enable either top or bottom decoder.

Verilog Modeling

Outline 2-to-4 decoder 3-to-8 decoder Decode24a.v: uses assign statements 3-to-8 decoder Build from a two 2-to-4 decoder

A 2-to-4 decoder with Enable Program body: D0=~((~A)&(~B)&(~E)) D1=~((~A)&(B)&(~E)) D2=~((A)&(~B)&(~E)) D3=~((A)&(B)&(~E)) Inputs: A,B, E Outputs: D0, D1, D2, D3 (typo, should be a 0)

decode24a.v wire is declared in a more “compact” way. Instead of D0,D1,D2,D3.

Decode24a_tb.v Start from full_adder_tb.v Print out D as a 4 bit number.

3-to-8 decoder in verilog Module: decode38a.v Inputs: x,y,w wires: x,y,w outputs: D0 to D7 wires:D0 to D7 wire: wb Program body: call on two instances of decode24a I1 wb I2

3-to-8 decoder in verilog wb I2

3-to-8 decoder in verilog wb I2

Test Bench for decode38a,.v

Optional Slides

Basic SRAM and VTC A wordline is used to select the cell Bitlines are used to perform read and write operations on the cell

Cross Coupled Configuration The cell can only flip its internal state when one of its internal cross VS. During a read op, we must not disturb its current state. During a write op, we must force the internal voltage to swing past VS to change a state.

3-to-8 decoder in verilog

3-to-8 decode Input bits

Use a Test Bench to Generate output Initial statements execute once starting from time 0. $monitor: display variable whenever a value changes. $time display the simulation time

Run functional Simulation

Results