LECTURE VI USER DEFINED PRIMITIVES GATE-LEVEL MODELING.

Slides:



Advertisements
Similar presentations
Chapter 3 Gate-Level Minimization
Advertisements

Verilog Section 3.10 Section 4.5. Keywords Keywords are predefined lowercase identifiers that define the language constructs – Key example of keywords:
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Verilog.
The Verilog Hardware Description Language
Digital Circuits.
ELEN 468 Lecture 21 ELEN 468 Advanced Logic Design Lecture 2 Hardware Modeling.
Fig. 4-1, p Fig. 4-2, p. 109 Fig. 4-3, p. 110.
Verilog Intro: Part 1.
Figure 4.1. The function f (x1, x2, x3) =  m(0, 2, 4, 5, 6).
16/04/20151 Hardware Descriptive Languages these notes are taken from Mano’s book It can represent: Truth Table Boolean Expression Diagrams of gates and.
Anurag Dwivedi.  Verilog- Hardware Description Language  Modules  Combinational circuits  assign statement  Control statements  Sequential circuits.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapters 4 – Part3: Verilog – Part 1.
P.464. Table 13-1, p.465 Fig. 13-1, p.466 Fig. 13-2, p.467.
Fig. 11-1, p p. 360 Fig. 11-2, p. 361 Fig. 11-3, p. 361.
Lecture 1 Design Hierarchy Chapter 1. Digital System Design Flow 1.Register-Transfer Levl (RTL) – e.g. VHDL/Verilog 2.Gate Level Design 3.Circuit Level.

Table 6-1, p Fig. 6-1, p. 162 p. 163 Fig. 6-2, p. 164.
Introduction to Verilog (Behavioral Modeling). Agenda Gate Delays and User-Defined Primitives Behavioral Modeling Design Examples Hands-on Practice.
ENEE 408C Lab Capstone Project: Digital System Design Verilog Tutorial Class Web Site:
ECE 353 Computer Systems Lab I Verilog Hardware Description Language.
ELEN 468 Lecture 51 ELEN 468 Advanced Logic Design Lecture 5 User-Defined Primitives.
Hardware Description Language HDL. 2 Hardware Description Language HDL  Describes circuits and systems in text. −As a software program.  Can be processed.
ELEN 468 Advanced Logic Design
ECE 2372 Modern Digital System Design
ECE/CS 352 Digital Systems Fundamentals
COE 405 Introduction to Logic Design with Verilog
Tutorial 1 Combinational Logic Synthesis. Introduction to VHDL VHDL = Very high speed Hardware Description Language VHDL and Verilog are the industry.
CS 3850 Lecture 3 The Verilog Language. 3.1 Lexical Conventions The lexical conventions are close to the programming language C++. Comments are designated.
CPEN Digital System Design
Module 2.1 Gate-Level/Structural Modeling UNIT 2: Modeling in Verilog.
Gates and Logic Dr John Cowell phones off (please)
Chapter 5: Tasks, Functions, and UDPs Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 5-1 Ders - 5 : Görevler,
Module 1.2 Introduction to Verilog
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
LECTURE VII SECTION 4.12 PART 1 MODELS OF COMBINATIONAL CIRCUITS.
LECTURE III INTRODUCTION TO HDL/VERILOG. HDL: Hardware Description Languages (Verilog for this class) are a way in which digital circuits can be described.
ELEE 4303 Digital II Introduction to Verilog. ELEE 4303 Digital II Learning Objectives Get familiar with background of HDLs Basic concepts of Verilog.
Introduction to ASIC flow and Verilog HDL
HDL Model Combinational circuits. module halfadder(s, cout, a, b); input a, b; output s, cout; xor g1(s, a, b); and g2(cout, a, b); endmodule.
Multiplexers Section Topics Multiplexers – Definition – Examples – Verilog Modeling.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
Lecture #10 Page 1 Lecture #10 Agenda 1.VHDL : Concurrent Signal Assignments 2.Decoders using Structural VHDL Announcements 1.HW #4 due 2.HW #5 assigned.
CO5023 Building Circuits from Truth Tables. Build the following… Let’s say we want a circuit which acts as described by the following truth table: We.
Chapter 5: Tasks, Functions, and UDPs Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 5-1 Chapter 5: Tasks, Functions,
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.
IKI b-Analysis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at.
Sequential circuit analysis1 Sequential Circuit Analysis Last time we started talking about latches and flip-flops, which are basic one-bit memory units.
1 A hardware description language is a computer language that is used to describe hardware. Two HDLs are widely used Verilog HDL VHDL (Very High Speed.
Introduction to Verilog COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
TODAY’S OUTLINE Introduction to Verilog Verilog coding format
Combinational Logic Design
Reg and Wire:.
Discussion 2: More to discuss
Verilog-HDL-1 by Dr. Amin Danial Asham.
HDL Programming Fundamentals
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
ELEN 468 Advanced Logic Design
Chapter 5: Tasks, Functions, and UDPs
Hardware Descriptive Languages these notes are taken from Mano’s book
مدار منطقی Logic Circuits
Introduction to Verilog
FIGURE 4.1 Block diagram of combinational circuit
Hardware Descriptive Languages these notes are taken from Mano’s book
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Combinational Circuits
Chapters 4 – Part3: Verilog – Part 1
The Verilog Hardware Description Language
Digital Circuits.
COE 202 Introduction to Verilog
Presentation transcript:

LECTURE VI USER DEFINED PRIMITIVES GATE-LEVEL MODELING

A useful tool in Verilog is UDP (User Defined Primitive). This primitive actually defines a combinational circuit whose function is described in Sum of Products form tabular form. It can have multiple inputs but only one output. It begins with the keyword primitive followed by its name and the ports used. Note: the output port must be listed first. The output of the circuit being defined is then specified using the keyword ouput The inputs are defined next using the keyword input Next comes the truth table for the circuit beginning with the keyword table Be sure to account for every possible combination of the inputs within the table Conclude the table with the keyword endtable Conclude the User Defined Primitive module with the keyword endprimitive

Example of a UDP:

The UDP is not a module in and of itself so in order for it to be used, a module must be written in which it is instantiated. Please note that the ports in this module are used to pass information to and from the UDP and, therefore, must be named differently than those in the UDP. Also remember that Verilog is case sensitive.

The circuit that this module demonstrates is shown here and on page 118, Fig 3.37

This represents the simulation with three different inputs for a,b,c,d.