ESE 437: Sensors and Instrumentation

Slides:



Advertisements
Similar presentations
//HDL Example 8-2 // //RTL description of design example (Fig.8-9) module Example_RTL (S,CLK,Clr,E,F,A);
Advertisements

Verilog in transistor level using Microwind
CPSC 321 Computer Architecture Andreas Klappenecker
CDA 3100 Recitation Week 11.
The Verilog Hardware Description Language
Verilog Overview. University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Synchronous Sequential Logic
EE 361 Fall 2003University of Hawaii1 Hardware Design Tips EE 361 University of Hawaii.
Verilog Modules for Common Digital Functions
Table 7.1 Verilog Operators.
Hardware Description Language (HDL)
Anurag Dwivedi.  Verilog- Hardware Description Language  Modules  Combinational circuits  assign statement  Control statements  Sequential circuits.
CSE 201 Computer Logic Design * * * * * * * Verilog Modeling
//HDL Example 5-1 // //Description of D latch (See Fig.5-6) module D_latch (Q,D,control); output Q; input.
Verilog. 2 Behavioral Description initial:  is executed once at the beginning. always:  is repeated until the end of simulation.
FSM Revisit Synchronous sequential circuit can be drawn like below  These are called FSMs  Super-important in digital circuit design FSM is composed.
//HDL Example 6-1 // //Behavioral description of //Universal shift register // Fig. 6-7 and Table 6-3 module shftreg.
 HDLs – Verilog and Very High Speed Integrated Circuit (VHSIC) HDL  „ Widely used in logic design  „ Describe hardware  „ Document logic functions.
FSM examples.
Pulse-Width Modulated DAC
OUTLINE Introduction Basics of the Verilog Language Gate-level modeling Data-flow modeling Behavioral modeling Task and function.
Verilog Sequential Circuits Ibrahim Korpeoglu. Verilog can be used to describe storage elements and sequential circuits as well. So far continuous assignment.
Ring Counter Discussion 11.3 Example 32.
Arbitrary Waveform Discussion 12.2 Example 34. Recall Divide-by-8 Counter Use q2, q1, q0 as inputs to a combinational circuit to produce an arbitrary.
Counters Discussion 12.1 Example 33. Counters 3-Bit, Divide-by-8 Counter 3-Bit Behavioral Counter in Verilog Modulo-5 Counter An N-Bit Counter.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
Advanced Verilog EECS 270 v10/23/06.
Registers and Shift Registers Discussion D8.2. D Flip-Flop X 0 Q 0 ~Q 0 D CLK Q ~Q D gets latched to Q on the rising edge of the clock. Positive.
FSMs in Verilog and other random things 9/27/02. FSM structure CLK STATE Next State Logic Inputs Output Logic Outputs.
D Flip-Flops in Verilog Discussion 10.3 Example 27.
University of Jordan Computer Engineering Department CPE 439: Computer Design Lab.
Sequential Logic in Verilog
Introduction Verilog is a HARDWARE DESCRIPTION LANGUAGE (HDL) A hardware description language is a language or means used to describe or model a digital.
Chapter 11: System Design Methodology Digital System Designs and Practices Using Verilog HDL and 2008, John Wiley11-1 Ders 8: FSM Gerçekleme ve.
ECE/CS 352 Digital System Fundamentals© 2001 C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapters 3 and 4: Verilog – Part 2 Charles R.
Traffic Lights Discussion D8.3a. Recall Divide-by-8 Counter Use Q2, Q1, Q0 as inputs to a combinational circuit to produce an arbitrary waveform. s0 0.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
Chapter 6: Hierarchical Structural Modeling Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 6-1 Chapter 6: Hierarchical.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapters 4 – Part4: Verilog – Part 2.
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 10: Data-Converter Example Spring 2009 W.
Introduction to FPGAs Getting Started with Xilinx.
Overview Logistics Last lecture Today HW5 due today
Hardware Description Languages: Verilog
An Introduction to Verilog: Transitioning from VHDL
Supplement on Verilog FF circuit examples
Supplement on Verilog for Algorithm State Machine Chart
Reg and Wire:.
Verilog Introduction Fall
Advance Skills TYWu.
Supplement on Verilog Sequential circuit examples: FSM
Hardware Description Languages: Verilog
TODAY’S OUTLINE Procedural Assignments Verilog Coding Guidelines
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Pulse-Width Modulation (PWM)
Analog-to-Digital Converters
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
Verilog.
COE 202 Introduction to Verilog
6. Registers and Counters
Supplement on Verilog Sequential circuit examples: FSM
Register-Transfer Level Components in Verilog
The Verilog Hardware Description Language
An overview of the Verilog HDL.
The Verilog Hardware Description Language
Verilog Synthesis & FSMs
Introduction to Digital IC Design
Dept of ECM Verilog HDL Verilog Evolution Verilog Attributes The verilog language Verilog Evolution  Verilog was designed in early 1984 by Gateway Design.
Lecture 7: Verilog Part II
Presentation transcript:

ESE 437: Sensors and Instrumentation Introduction to Verilog

Hardware Description Language

Verilog HDL - Module

Verilog HDL - Module

Verilog HDL - Module

Verilog HDL - Module

Verilog HDL - Module

Verilog HDL - Constant

Verilog HDL – Parameters

Verilog HDL – Parameters

Non-blocking Assignments

Blocking Assignments

iClick Question In the following example, what is the values of register D? A) D=A B) D=B C) D=C

Verilog HDL – Operators

Verilog HDL – Operators

Verilog HDL – Operators

Verilog HDL – Operators

Verilog HDL – Operators

Verilog HDL – Assignments

Verilog Example Implement a circular shift Bit_0 will get the value from bit_7 Bit_1 will get the value from bit_2 Bit_2 will get the value from bit_3… module circular_shift (input_reg, output_reg,clk) output [7:0] output_reg; input [7:0] input_reg; input clk; always @(posedge clk) output_reg[1:7] = input_reg[0:6]; output_reg[0] = inout_reg[7]; endmodule

Verilog Example Implement a circular shift Bit_0 will get the value from bit_7 Bit_1 will get the value from bit_2 Bit_2 will get the value from bit_3… module circular_shift (input_reg, output_reg,clk) output [7:0] output_reg; input [7:0] input_reg; input clk; always @(posedge clk) output_reg = {input_reg[6:0], inout_reg[7]}; endmodule

Verilog HDL – Assignments

Verilog HDL – Always

Verilog HDL – Always

Are these examples correct?

Parallel load register

Verilog HDL – If Instruction

Verilog HDL Example

Verilog HDL – Case Instruction

Verilog HDL Example

Verilog HDL – Module Instantiation

Verilog HDL – Module Instantiation

Verilog HDL – Examples

Verilog HDL – Examples

Verilog HDL – Example

Verilog HDL – Example

Verilog HDL – Example

Verilog HDL – Example

Verilog HDL – Example // state declarizations reg [3:0] state; localparam STATE_INIT = 3'd0; localparam STATE_TX = 3'd1; localparam STATE_RX = 3'd2; localparam STATE_CALC = 3'd3; localparam STATE_IDLE = 3'd4; always @ (posedge clock) begin case(state) begin STATE_INIT : begin state <= STATE_TX; end STATE_TX : begin if (conditional) begin state <= STATE_RX; end else begin state <= STATE_TX; end end STATE_RX : begin // do something else end STATE_CALC : begin // do something else end endcase end

Verilog HDL Example