Verilog.

Slides:



Advertisements
Similar presentations
Verilog HDL -Introduction
Advertisements

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.
Verilog in transistor level using Microwind
CPSC 321 Computer Architecture Andreas Klappenecker
//HDL Example 4-10 // //Gate-level description of circuit of Fig. 4-2 module analysis (A,B,C,F1,F2); input.
The Verilog Hardware Description Language
Verilog Descriptions of Digital Systems
Verilog Modules for Common Digital Functions
CPEN Digital System Design
Figure 4.1. The function f (x1, x2, x3) =  m(0, 2, 4, 5, 6).
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapters 4 – Part3: Verilog – Part 1.
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value Z:high-impedance.
1 Pertemuan 9 Verilog HDL Matakuliah: H0362/Very Large Scale Integrated Circuits Tahun: 2005 Versi: versi/01.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Lecture 2: Hardware Modeling with Verilog HDL

ELEN 468 Lecture 111 ELEN 468 Advanced Logic Design Lecture 11 Switch Level Models.
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value Z:high-impedance.
OUTLINE Introduction Basics of the Verilog Language Gate-level modeling Data-flow modeling Behavioral modeling Task and function.
ENEE 408C Lab Capstone Project: Digital System Design Verilog Tutorial Class Web Site:
ECE 353 Computer Systems Lab I Verilog Hardware Description Language.
ENEE 408C Lab Capstone Project: Digital System Design Verilog Tutorial Class Web Site:
Multiplexers Module M6.1 Section 6.4. Multiplexers A 4-to-1 MUX TTL Multiplexer A 2-to-1 MUX.
2-to-1 Multiplexer: if Statement Discussion D7.1 Example 4.
Multiplexers Lecture L6.6v Section 6.2. Multiplexers A Digital Switch A 2-to-1 MUX A 4-to-1 MUX A Quad 2-to-1 MUX The Verilog if…else Statement TTL Multiplexer.
Quad 2-to-1 Multiplexer Discussion D7.4 Example 7.
OUTLINE Introduction Basics of the Verilog Language Gate-level modeling Data-flow modeling Behavioral modeling Task and function.
ELEN468 Lecture 31 ELEN 468 Advanced Logic Design Lecture 3 Simulation and Testbench.
Mantıksal Tasarım – BBM231 M. Önder Efe
Combinational Logic Chapter 4.
Verilog Basics Nattha Jindapetch November Agenda Logic design review Verilog HDL basics LABs.
Programmable Logic Architecture Verilog HDL FPGA Design Jason Tseng Week 2-3.
Outline Decoder Encoder Mux. Decoder Accepts a value and decodes it Output corresponds to value of n inputs Consists of: Inputs (n) Outputs (2 n, numbered.
INTRODUCTION TO VERILOG HDL Presented by m.vinoth.
ECE/CS 352 Digital Systems Fundamentals
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Unit 5 Synchronous And Asynchronous Sequential Circuits
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
Introduction Verilog is a HARDWARE DESCRIPTION LANGUAGE (HDL) A hardware description language is a language or means used to describe or model a digital.
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 3: Structural Modeling Spring 2009 W. Rhett.
Programmable Logic Architecture Verilog HDL FPGA Design Jason Tseng Week 4.
Chapter 2: Structural Modeling Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 2-1 Ders – 2: Yapısal Modelleme.
1 CSE-308 Digital System Design (DSD) N-W.F.P. University of Engineering & Technology, Peshawar.
GATE-LEVEL MODELING (Source: a Verilog HDL Primer by J. Bhasker)
ELEN 468 Lecture 111 ELEN 468 Advanced Logic Design Lecture 11 Switch Level Models.
Outline MSI Parts as a Decoder Multiplexer Three State Buffer MSI Parts as a Multiplexer Realization of Switching Functions Using Multiplexers.
LECTURE VII SECTION 4.12 PART 1 MODELS OF COMBINATIONAL CIRCUITS.
Tri state Buffers. Tri state buffer I/PO/P Strobe.
Chapter 2: Structural Modeling Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 2-1 Chapter 2a: Structural Modeling.
Multiplexers Section Topics Multiplexers – Definition – Examples – Verilog Modeling.
Introduction to Verilog
Digital Design Lecture 8 Combinatorial Logic (Continued)
SystemVerilog for Verification
Verilog Introduction Fall
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Chapter 4 Combinational Logic
Behavioral Modeling in Verilog
Chapter 2a: Structural Modeling
Combinatorial Logic Design Practices
OUTLINE Introduction Basics of the Verilog Language
Logic Values 0:logic 0 / false 1:logic 1 / true X:unknown logic value
FIGURE 4.1 Block diagram of combinational circuit
Instructor: Alexander Stoytchev
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
Chapters 4 – Part3: Verilog – Part 1
//HDL Example 7-1 // //Read and write operations of memory. //Memory size is 64 words of 4 bits each. module.
Verilog HDL Basic Syntax
Presentation transcript:

Verilog

4-Value Logic Four values: 0, 1, x, z. x: unknown value z: high impedance and 1 x z input not 1 x z or 1 x z

Vectors output [0:3] D; wire [7:0] SUM; indexing: slicing: D[3]

Decoder Gate-level description nands and nots are grouped. //HDL Example 4-1 //---------------------------------------- //Gate-level description of a 2-to-4-line decoder //Figure 4-19 module decoder_gl (A,B,E,D); input A,B,E; output [0:3] D; wire Anot,Bnot,Enot; not n1 (Anot,A), n2 (Bnot,B), n3 (Enot,E); nand n4 (D[0],Anot,Bnot,Enot), n5 (D[1],Anot,B,Enot), n6 (D[2],A,Bnot,Enot), n7 (D[3],A,B,Enot); endmodule Gate-level description nands and nots are grouped.

Buffers gateName (output, input, control); bufif1 (OUT, A, control); notif0 (Y, B, enable);

Multiplexer tri: types of nets: Correct? a net which has the capability of being driven by several drivers. types of nets: wire, tri, supply1, supply0, wand, wor. OUT module muxtri (A, B, select, OUT); input A, B, select; output OUT; tri OUT; bufif1 (OUT, A, select); bufuf0 (OUT, B, select); endmodule; Correct?