Week 6, Multiplexer & Demultiplexer

Slides:



Advertisements
Similar presentations
Verilog Fundamentals Shubham Singh Junior Undergrad. Electrical Engineering.
Advertisements

CPSC 321 Computer Architecture Andreas Klappenecker
Verilog.
Simulation executable (simv)
Combinational Logic.
Register Transfer Level
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
 HDLs – Verilog and Very High Speed Integrated Circuit (VHSIC) HDL  „ Widely used in logic design  „ Describe hardware  „ Document logic functions.
CSE241 R1 Verilog.1Kahng & Cichy, UCSD ©2003 CSE241 VLSI Digital Circuits Winter 2003 Recitation 1: Verilog Introduction.
Digital System Design Verilog ® HDL Behavioral Modeling (1) Maziar Goudarzi.
Digital System Design EEE344 Lecture 3 Introduction to Verilog HDL Prepared by: Engr. Qazi Zia, Assistant Professor EED, COMSATS Attock1.
Introduction to FPGA AVI SINGH. Prerequisites Digital Circuit Design - Logic Gates, FlipFlops, Counters, Mux-Demux Familiarity with a procedural programming.
Chapter 4: Behavioral Modeling Digital System Designs and Practices Using Verilog HDL and 2008~2010, John Wiley 4-1 Ders – 4: Davranışsal Modelleme.
Tutorial 1 Combinational Logic Synthesis. Introduction to VHDL VHDL = Very high speed Hardware Description Language VHDL and Verilog are the industry.
ECE 551 Digital System Design & Synthesis Fall 2011 Midterm Exam Overview.
Array Synthesis in SystemC Hardware Compilation Authors: J. Ditmar and S. McKeever Oxford University Computing Laboratory, UK Conference: Field Programmable.
CH71 Chapter 7 Hardware Description Language (HDL) By Taweesak Reungpeerakul.
Module 1.2 Introduction to Verilog
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
Digital System Design Verilog ® HDL Introduction to Synthesis: Concepts and Flow Maziar Goudarzi.
Introduction to ASIC flow and Verilog HDL
Introduction to Verilog. Data Types A wire specifies a combinational signal. – Think of it as an actual wire. A reg (register) holds a value. – A reg.
Multiplexers Section Topics Multiplexers – Definition – Examples – Verilog Modeling.
Introduction to Verilog
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
OUTLINE Introduction Basics of the Verilog Language Gate-level modeling Data-flow modeling Behavioral modeling Task and function.
1 Introduction to Engineering Spring 2007 Lecture 18: Digital Tools 2.
Exp#5 & 6 Introduction to Verilog COE203 Digital Logic Laboratory Dr. Ahmad Almulhem KFUPM Spring 2009.
EMT 351/4 DIGITAL IC DESIGN Week # 1 EDA & HDL.
Structural Description
Hardware Description Languages: Verilog
EECE6017C - Lab 0 Introduction to Altera tools and Basic Digital Logic
Supplement on Verilog FF circuit examples
Adapted from Krste Asanovic
Introduction to Verilog
Discussion 2: More to discuss
Verilog Introduction Fall
EMT 351/4 DIGITAL IC DESIGN Week # Synthesis of Sequential Logic 10.
Topics Modeling with hardware description languages (HDLs).
KARTHIK.S Lecturer/ECE S.N.G.C.E
‘if-else’ & ‘case’ Statements
Verilog-HDL-3 by Dr. Amin Danial Asham.
Hardware Description Languages: Verilog
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Topics The logic design process..
Topics Modeling with hardware description languages (HDLs).
Introduction to Verilog
Behavioral Modeling in Verilog
Chapter 3: Dataflow Modeling
Introduction To Verilog-HDL
Week 5, Verilog & Full Adder
HDL Compiler Unsupport (Do NOT use in your verilog code)
SYNTHESIS OF SEQUENTIAL LOGIC
Lesson 4 Synchronous Design Architectures: Data Path and High-level Synthesis (part two) Sept EE37E Adv. Digital Electronics.
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
3-bit calculator using 7-segment LEDs
Introduction to Digital System and Microprocessor Design
332:437 Lecture 8 Verilog and Finite State Machines
Chapter 4: Behavioral Modeling
Week 10, Finite State Machine
Introduction to Digital System and Microprocessor Design
Introduction to Verilog
Introduction to Verilog
Introduction to Verilog
332:437 Lecture 8 Verilog and Finite State Machines
Digital Designs – What does it take
Introduction to Digital IC Design
Introduction to Verilog – Part-2 Procedural Statements
COE 202 Introduction to Verilog
Reconfigurable Computing (EN2911X, Fall07)
Presentation transcript:

Week 6, Multiplexer & Demultiplexer Introduction to Digital System and Microprocessor Design Inhwan Lee, Youngtaek Oh, Daehyun Ahn (inhwan301, koyt1126, daehyun.ahn)@postech.ac.kr Mar 27, 2018 1/12

Two method to write code Gate Level - Programming with only gates (+) Mostly synthesizable, which means if you pass simulation, it can be hardware. (-) Hard to make complicated hardware. RTL (Register Transfer Level) - Design a source code using abstraction, which models circuits as a flow of data signals between registers and logical operation (&, I) (+) Compilers do translation RTL to gate level (-) Sometimes hard to be a real hardware Last week: Gate Level Coding This week: RTL Coding 2/12

4x1 Multiplexer S0 S1 Y I0 1 I1 I2 I3 2-to-4 Decoder Y = I0S0’S1’+ I1S0S1’ + I2S0’S1 +I3S0S1 3/12

1x4 Demultiplexer S0 S1 D0 D1 D2 D3 I 1 2-to-4 Decoder D0= I S0’S1’ , D1= I S0S1’ , D2= I S0’S1 , D3= I S0 S1 4/12

‘Always’ Block in Verilog - Imperative code that can perform standard data manipulation tasks (if-else, case) - Processes run until they delay for a period of time or wait for a triggering event Syntax always @(condition) begin /*Block of code*/ end 5/12

‘if’ and ‘case’ command in Verilog if command if (expression1) true_statement1; else if (expression2) true_statement2; ... else false_statement; 6/12

‘if’ command example S0 S1 D0 D1 D2 D3 I 1 7/12

‘if’ and ‘case’ command in Verilog case (expression) item_1, … , item_n: statement1; item_n+1, … , item_m: statement2; … default: default_statement; endcase 8/12

‘case’ command example I 1 9/12

‘Assign’ command and conditional operator in Verilog Assign command connects RHS to LHS wire Conditional operator assign a = (expression) ? true_wire_value : false_wire_value ; Equal Expression (in this case, a is reg) always @(*) begin if (expression) a = true_wire_value; else a = false_wire_value; end 10/12

Goal Design 4x1 multiplexer using ‘always’ block and ‘if’ / ‘case’ command Design 1x4 demultiplexer using ‘assign’ command (Don’t use ‘always’) Implement each program into the kit 11/12

Pin Planning FPGA Signal Xilinx BUTTON_SW[0] AD10 BUTTON_SW[1] AC10 AA9 BUTTON_SW[3] Y9 BUTTON_SW[4] Y10 BUTTON_SW[5] AB9 FPGA Signal Xilinx LED_D(0) AB7 LED_D(1) AA7 LED_D(2) AF7 LED_D(3) AC7 LED_D(4) AD6 LED_D(5) AC6 LED_D(6) AF6 LED_D(7) AE6 12/12