SlideShare ist ein Scribd-Unternehmen logo
1 von 20
REGISTER TRANSFER LEVEL MODEL
Dr. MURTHY YAYAVARAM Ph.D
Lecture-2 : Digital Design Using Verilog-
For Absolute Beginners
What is RTL?
• Students who are learning the HDLs like Verilog
come across the term RTL modelling regularly.
• Many of them will have a simple doubt . Actually
what is this RTL ?
• What is its relevance in the Verilog Course?
• Let us now try to understand this basic concept.
• I think, many of you have got an idea, about the
meaning of Design and the role of Verilog in Digital
Design.
15 June 2020 2yayavaram@yahoo.com
contd
• To understand this RTL, let us recall that there are
two types of digital circuits and they are
Combinational and Sequential
• When compared to the combinational circuits, the
sequential circuits are little bit complex.
• A Digital systems is a sequential logic system with
flip-flops and Gates.
• Normally these circuits are specified or analysed by
state tables.
15 June 2020 3yayavaram@yahoo.com
contd
• As long as the digital system is simple, there will
not be any problem in the design using state tables.
• But as the digital system becomes complex, the
state table method become cumbersome.(For
example a Microprocessor)
• So, a modular approach is opted. i.e the complex
system is partitioned into modular subsystems,
each of which performs some function.
• These sub-systems also known as modules.
• Modules are constructed using digital devices like
registers, multiplexers , decoders, alu and control
logic.15 June 2020 4yayavaram@yahoo.com
contd
• These various modules are interconnected with
data paths and control signals to form a digital
systems.
• So, a digital system can be best defined by a set of
registers and the operations that are performed on
the binary information stored in them.
• These operations are load, shift,count and clear etc.
• The information flow and processing performed on
the data stored in the registers are referred as
Registered Transfer Operations
15 June 2020 5yayavaram@yahoo.com
Example
15 June 2020 6yayavaram@yahoo.com
contd
• So, a digital system is denoted at the register
Transfer Level and specified by the following
features.
(i).The set of registers in the system.
(ii).The operations that are performed on the data
stored in the registers.
(iii).The control that supervises the sequence of
operations in the system.
15 June 2020 7yayavaram@yahoo.com
What is a Register?
• A register is a set of flip-flops that stores binary
information and has the capability of performing one
or more elementary operations.
• A register can load new information or shift the
information left or right .
• Similarly a ‘counter’ is also a register that
increments a number by a fixed value(say by 1).
• A flip-flop is a one bit register (latch) that can be set,
cleared or complemented.
15 June 2020 8yayavaram@yahoo.com
contd
• Next is the control. In a digital system the
operations discussed earlier are controlled by
‘timing signals’ which sequence the operations in a
prescribed manner.
• Certain conditions that depend on results of previous
operations may determine the sequence of future
operations.
• The output of control logic are binary variables
which initiates the various operations in the systems
registers.
15 June 2020 9yayavaram@yahoo.com
Example
• Let us consider a simple case : R2  R1 .It denotes
the transfer of contents of register R1 into the
register R2. i.e the replacement of the contents of R2
by the contents of R1
• The important point to be noted here is, the
contents of the source are not changed after
transfer i.e it is only copied.
• Now, coming to the control, the controller in digital
system is a finite state machine, whose outputs are
the control signals that governs the register
operations.15 June 2020 10yayavaram@yahoo.com
contd
• There are two types of Finite state machines .One is
Synchronous and the other is Asynchronous.
• In a synchronous machine , the operations are
synchronized by the system clock.
• A statement that specifies a register transfer
operation ,implies that a data path ( a set of circuit
connections) is available from the outputs of the
source register to inputs of the destination register
and that the destination register has a parallel load
capacity.
15 June 2020 11yayavaram@yahoo.com
contd
• Of course , data can be transferred serially also
between registers , by repeatedly shifting their
contents along a single wire one bit at a time.
• Normally the register transfer operations are
expected only under a predetermined condition not
at every clock cycle.
• A conditional statement controlling a register
transfer operation is symbolized with an if..then
statement.
15 June 2020 12yayavaram@yahoo.com
contd
• Ex: If (T1 =1 ) then (R2 ←R1)
where T1 is a control signal generated in the
control section.
• It is to be noted that here the clock is not
included as a variable .
• But it is assumed that all the transfers occur at
clock edge transition.
( a transition from 0 to 1 or from 1 to 0)
15 June 2020 13yayavaram@yahoo.com
contd
• Although a control condition such as T1 may
become true before the clock transition, but the
actual transfer does not occur until the clock
transition does.
• A ‘comma’ may be used to separate two or more
operations that are executed concurrently.(at the
same time).
Ex: If (T3=1) then (R2←R1, R1←R2)
15 June 2020 14yayavaram@yahoo.com
contd
• This statement specifies an operation that exchanges
the contents of two registers and both these registers
are triggered by the same clock edge, provided that
T3=1.
• This simultaneous operation is possible with
registers that have negative edge triggered flip-flops
controlled by a common clock.
• Ex: R1 ← R1 + R2 : Add R1 to R2 and transfer
the contents to R1
15 June 2020 15yayavaram@yahoo.com
contd
• R3 ← R3 + 1 : Increment R3 by 1(Up counter)
• R4 ← shr R4 : Shift R4 right
• R5 ← 0 : clear R5 to 0.
• The type of operations that most commonly used in
Digital systems can be classified into four types.
• Transfer operations ,which transfer (copy)data from
one register to another register.
• Arithmetic operations ,which perform arithmetic on
data in registers.
15 June 2020 16yayavaram@yahoo.com
contd
• Logic operations ,which perform bit manipulations
of nonnumeric data in Registers(Logical AND).
• Shift operations, which shift data between registers.
• The transfer operation does not change the
information content of the data being moved from
the source register to destination register.
• The other three operations change the information
content during the transfer.
15 June 2020 17yayavaram@yahoo.com
RTL Verilog Example
• In Verilog, RTL operations use a combination of
behavioural and data flow constructs and are
employed to specify the register operations and the
combinational logic functions implemented by
hardware.
• Register transfers are specified by means of
procedural assignment statements within an edge –
sensitive cyclic behaviour.
15 June 2020 18yayavaram@yahoo.com
contd
• Combinational circuit functions are specified at RTL
level by means continuous assignment statements or
by procedural assignment statements within a level –
sensitive cyclic behaviour.
• The symbol used to designate a register transfer is
either an equal sign(=) or an arrow(<=).
• The “always” keyword is used to indicate the
execution of associated block statements repeatedly
for the time of simulation.
15 June 2020 19yayavaram@yahoo.com
contd
• The @ operator and the event control expression
preceding the block of statements , synchronize the
execution of the statements to the clock event.
• Ex: (i). assign S = A+B ;//continuous assignment
(ii).always @(A,B) //level sensitive cyclic
S= A+B;// combinational logic for addition.
(iii). always @ (negedge clock)
begin
R1 = R1+ R2;//blocking procedural
R3 = R1; //register transfer operation
end
15 June 2020 20yayavaram@yahoo.com

Weitere ähnliche Inhalte

Was ist angesagt?

Logic synthesis,flootplan&placement
Logic synthesis,flootplan&placementLogic synthesis,flootplan&placement
Logic synthesis,flootplan&placementshaik sharief
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices PldsGaditek
 
Trends and challenges in vlsi
Trends and challenges in vlsiTrends and challenges in vlsi
Trends and challenges in vlsilabishettybhanu
 
System partitioning in VLSI and its considerations
System partitioning in VLSI and its considerationsSystem partitioning in VLSI and its considerations
System partitioning in VLSI and its considerationsSubash John
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adderdragonpradeep
 
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...Arti Parab Academics
 
Placement in VLSI Design
Placement in VLSI DesignPlacement in VLSI Design
Placement in VLSI DesignTeam-VLSI-ITMU
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logicGaditek
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Soc architecture and design
Soc architecture and designSoc architecture and design
Soc architecture and designSatya Harish
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehtaUsha Mehta
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 IntroductionDr. Pankaj Zope
 

Was ist angesagt? (20)

Logic synthesis,flootplan&placement
Logic synthesis,flootplan&placementLogic synthesis,flootplan&placement
Logic synthesis,flootplan&placement
 
Cpld fpga
Cpld fpgaCpld fpga
Cpld fpga
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices Plds
 
Logic Synthesis
Logic SynthesisLogic Synthesis
Logic Synthesis
 
Trends and challenges in vlsi
Trends and challenges in vlsiTrends and challenges in vlsi
Trends and challenges in vlsi
 
Introduction to FPGAs
Introduction to FPGAsIntroduction to FPGAs
Introduction to FPGAs
 
System partitioning in VLSI and its considerations
System partitioning in VLSI and its considerationsSystem partitioning in VLSI and its considerations
System partitioning in VLSI and its considerations
 
ARM Fundamentals
ARM FundamentalsARM Fundamentals
ARM Fundamentals
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adder
 
Fpga & VHDL
Fpga & VHDLFpga & VHDL
Fpga & VHDL
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
 
Placement in VLSI Design
Placement in VLSI DesignPlacement in VLSI Design
Placement in VLSI Design
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logic
 
Build your career in physical ASIC design
Build your career in physical ASIC designBuild your career in physical ASIC design
Build your career in physical ASIC design
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
Soc architecture and design
Soc architecture and designSoc architecture and design
Soc architecture and design
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehta
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 Introduction
 

Ähnlich wie RTL MODELING WITH VERILOG

COMP.CE.200_2022_11.pdf
COMP.CE.200_2022_11.pdfCOMP.CE.200_2022_11.pdf
COMP.CE.200_2022_11.pdfmohamadzare3
 
Concepts of Data Base Management Systems
Concepts of Data Base Management SystemsConcepts of Data Base Management Systems
Concepts of Data Base Management SystemsDinesh Devireddy
 
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdfcomputer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdfKunalSahu180994
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryKunal Anand
 
Transaction and serializability
Transaction and serializabilityTransaction and serializability
Transaction and serializabilityYogita Jain
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4Umang Gupta
 
PPT in register and micro operations in electronic
PPT in register and micro operations in electronicPPT in register and micro operations in electronic
PPT in register and micro operations in electronicaaravjamela
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONSDr. Ajay Kumar Singh
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and ArchitectureSwapnitaSrivastava1
 
CS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptxCS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptxAsst.prof M.Gokilavani
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTSrivignessh Pss
 
arithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptxarithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptxAshokRachapalli1
 

Ähnlich wie RTL MODELING WITH VERILOG (20)

COMP.CE.200_2022_11.pdf
COMP.CE.200_2022_11.pdfCOMP.CE.200_2022_11.pdf
COMP.CE.200_2022_11.pdf
 
transaction_processing.ppt
transaction_processing.ppttransaction_processing.ppt
transaction_processing.ppt
 
Transactions
TransactionsTransactions
Transactions
 
Concepts of Data Base Management Systems
Concepts of Data Base Management SystemsConcepts of Data Base Management Systems
Concepts of Data Base Management Systems
 
mano.ppt
mano.pptmano.ppt
mano.ppt
 
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdfcomputer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error Recovery
 
Transaction and serializability
Transaction and serializabilityTransaction and serializability
Transaction and serializability
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
 
unit06-dbms-new.ppt
unit06-dbms-new.pptunit06-dbms-new.ppt
unit06-dbms-new.ppt
 
Unit 4 dbms
Unit 4 dbmsUnit 4 dbms
Unit 4 dbms
 
PPT in register and micro operations in electronic
PPT in register and micro operations in electronicPPT in register and micro operations in electronic
PPT in register and micro operations in electronic
 
Transaction processing
Transaction processingTransaction processing
Transaction processing
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONS
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architecture
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
 
CS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptxCS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptx
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITT
 
Unit 06 dbms
Unit 06 dbmsUnit 06 dbms
Unit 06 dbms
 
arithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptxarithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptx
 

Mehr von Dr.YNM

Introduction to DSP.ppt
Introduction to DSP.pptIntroduction to DSP.ppt
Introduction to DSP.pptDr.YNM
 
Atmel.ppt
Atmel.pptAtmel.ppt
Atmel.pptDr.YNM
 
PIC Microcontrollers.ppt
PIC Microcontrollers.pptPIC Microcontrollers.ppt
PIC Microcontrollers.pptDr.YNM
 
Crystalstructure-.ppt
Crystalstructure-.pptCrystalstructure-.ppt
Crystalstructure-.pptDr.YNM
 
Basics of OS & RTOS.ppt
Basics of OS & RTOS.pptBasics of OS & RTOS.ppt
Basics of OS & RTOS.pptDr.YNM
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxDr.YNM
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.pptDr.YNM
 
Introduction to ASICs.pptx
Introduction to ASICs.pptxIntroduction to ASICs.pptx
Introduction to ASICs.pptxDr.YNM
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptDr.YNM
 
Basics of data communications.pptx
Basics of data communications.pptxBasics of data communications.pptx
Basics of data communications.pptxDr.YNM
 
CPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxCPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxDr.YNM
 
Transient response of RC , RL circuits with step input
Transient response of RC , RL circuits  with step inputTransient response of RC , RL circuits  with step input
Transient response of RC , RL circuits with step inputDr.YNM
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESDr.YNM
 
Lect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURELect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTUREDr.YNM
 
Lect 3 ARM PROCESSOR ARCHITECTURE
Lect 3  ARM PROCESSOR ARCHITECTURE Lect 3  ARM PROCESSOR ARCHITECTURE
Lect 3 ARM PROCESSOR ARCHITECTURE Dr.YNM
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4Dr.YNM
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architectureDr.YNM
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-IIIDr.YNM
 
LECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSLECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSDr.YNM
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture IIDr.YNM
 

Mehr von Dr.YNM (20)

Introduction to DSP.ppt
Introduction to DSP.pptIntroduction to DSP.ppt
Introduction to DSP.ppt
 
Atmel.ppt
Atmel.pptAtmel.ppt
Atmel.ppt
 
PIC Microcontrollers.ppt
PIC Microcontrollers.pptPIC Microcontrollers.ppt
PIC Microcontrollers.ppt
 
Crystalstructure-.ppt
Crystalstructure-.pptCrystalstructure-.ppt
Crystalstructure-.ppt
 
Basics of OS & RTOS.ppt
Basics of OS & RTOS.pptBasics of OS & RTOS.ppt
Basics of OS & RTOS.ppt
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptx
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Introduction to ASICs.pptx
Introduction to ASICs.pptxIntroduction to ASICs.pptx
Introduction to ASICs.pptx
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Basics of data communications.pptx
Basics of data communications.pptxBasics of data communications.pptx
Basics of data communications.pptx
 
CPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxCPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptx
 
Transient response of RC , RL circuits with step input
Transient response of RC , RL circuits  with step inputTransient response of RC , RL circuits  with step input
Transient response of RC , RL circuits with step input
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
 
Lect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURELect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURE
 
Lect 3 ARM PROCESSOR ARCHITECTURE
Lect 3  ARM PROCESSOR ARCHITECTURE Lect 3  ARM PROCESSOR ARCHITECTURE
Lect 3 ARM PROCESSOR ARCHITECTURE
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architecture
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-III
 
LECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSLECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORS
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 

Kürzlich hochgeladen

Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSsandhya757531
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 

Kürzlich hochgeladen (20)

Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 

RTL MODELING WITH VERILOG

  • 1. REGISTER TRANSFER LEVEL MODEL Dr. MURTHY YAYAVARAM Ph.D Lecture-2 : Digital Design Using Verilog- For Absolute Beginners
  • 2. What is RTL? • Students who are learning the HDLs like Verilog come across the term RTL modelling regularly. • Many of them will have a simple doubt . Actually what is this RTL ? • What is its relevance in the Verilog Course? • Let us now try to understand this basic concept. • I think, many of you have got an idea, about the meaning of Design and the role of Verilog in Digital Design. 15 June 2020 2yayavaram@yahoo.com
  • 3. contd • To understand this RTL, let us recall that there are two types of digital circuits and they are Combinational and Sequential • When compared to the combinational circuits, the sequential circuits are little bit complex. • A Digital systems is a sequential logic system with flip-flops and Gates. • Normally these circuits are specified or analysed by state tables. 15 June 2020 3yayavaram@yahoo.com
  • 4. contd • As long as the digital system is simple, there will not be any problem in the design using state tables. • But as the digital system becomes complex, the state table method become cumbersome.(For example a Microprocessor) • So, a modular approach is opted. i.e the complex system is partitioned into modular subsystems, each of which performs some function. • These sub-systems also known as modules. • Modules are constructed using digital devices like registers, multiplexers , decoders, alu and control logic.15 June 2020 4yayavaram@yahoo.com
  • 5. contd • These various modules are interconnected with data paths and control signals to form a digital systems. • So, a digital system can be best defined by a set of registers and the operations that are performed on the binary information stored in them. • These operations are load, shift,count and clear etc. • The information flow and processing performed on the data stored in the registers are referred as Registered Transfer Operations 15 June 2020 5yayavaram@yahoo.com
  • 6. Example 15 June 2020 6yayavaram@yahoo.com
  • 7. contd • So, a digital system is denoted at the register Transfer Level and specified by the following features. (i).The set of registers in the system. (ii).The operations that are performed on the data stored in the registers. (iii).The control that supervises the sequence of operations in the system. 15 June 2020 7yayavaram@yahoo.com
  • 8. What is a Register? • A register is a set of flip-flops that stores binary information and has the capability of performing one or more elementary operations. • A register can load new information or shift the information left or right . • Similarly a ‘counter’ is also a register that increments a number by a fixed value(say by 1). • A flip-flop is a one bit register (latch) that can be set, cleared or complemented. 15 June 2020 8yayavaram@yahoo.com
  • 9. contd • Next is the control. In a digital system the operations discussed earlier are controlled by ‘timing signals’ which sequence the operations in a prescribed manner. • Certain conditions that depend on results of previous operations may determine the sequence of future operations. • The output of control logic are binary variables which initiates the various operations in the systems registers. 15 June 2020 9yayavaram@yahoo.com
  • 10. Example • Let us consider a simple case : R2  R1 .It denotes the transfer of contents of register R1 into the register R2. i.e the replacement of the contents of R2 by the contents of R1 • The important point to be noted here is, the contents of the source are not changed after transfer i.e it is only copied. • Now, coming to the control, the controller in digital system is a finite state machine, whose outputs are the control signals that governs the register operations.15 June 2020 10yayavaram@yahoo.com
  • 11. contd • There are two types of Finite state machines .One is Synchronous and the other is Asynchronous. • In a synchronous machine , the operations are synchronized by the system clock. • A statement that specifies a register transfer operation ,implies that a data path ( a set of circuit connections) is available from the outputs of the source register to inputs of the destination register and that the destination register has a parallel load capacity. 15 June 2020 11yayavaram@yahoo.com
  • 12. contd • Of course , data can be transferred serially also between registers , by repeatedly shifting their contents along a single wire one bit at a time. • Normally the register transfer operations are expected only under a predetermined condition not at every clock cycle. • A conditional statement controlling a register transfer operation is symbolized with an if..then statement. 15 June 2020 12yayavaram@yahoo.com
  • 13. contd • Ex: If (T1 =1 ) then (R2 ←R1) where T1 is a control signal generated in the control section. • It is to be noted that here the clock is not included as a variable . • But it is assumed that all the transfers occur at clock edge transition. ( a transition from 0 to 1 or from 1 to 0) 15 June 2020 13yayavaram@yahoo.com
  • 14. contd • Although a control condition such as T1 may become true before the clock transition, but the actual transfer does not occur until the clock transition does. • A ‘comma’ may be used to separate two or more operations that are executed concurrently.(at the same time). Ex: If (T3=1) then (R2←R1, R1←R2) 15 June 2020 14yayavaram@yahoo.com
  • 15. contd • This statement specifies an operation that exchanges the contents of two registers and both these registers are triggered by the same clock edge, provided that T3=1. • This simultaneous operation is possible with registers that have negative edge triggered flip-flops controlled by a common clock. • Ex: R1 ← R1 + R2 : Add R1 to R2 and transfer the contents to R1 15 June 2020 15yayavaram@yahoo.com
  • 16. contd • R3 ← R3 + 1 : Increment R3 by 1(Up counter) • R4 ← shr R4 : Shift R4 right • R5 ← 0 : clear R5 to 0. • The type of operations that most commonly used in Digital systems can be classified into four types. • Transfer operations ,which transfer (copy)data from one register to another register. • Arithmetic operations ,which perform arithmetic on data in registers. 15 June 2020 16yayavaram@yahoo.com
  • 17. contd • Logic operations ,which perform bit manipulations of nonnumeric data in Registers(Logical AND). • Shift operations, which shift data between registers. • The transfer operation does not change the information content of the data being moved from the source register to destination register. • The other three operations change the information content during the transfer. 15 June 2020 17yayavaram@yahoo.com
  • 18. RTL Verilog Example • In Verilog, RTL operations use a combination of behavioural and data flow constructs and are employed to specify the register operations and the combinational logic functions implemented by hardware. • Register transfers are specified by means of procedural assignment statements within an edge – sensitive cyclic behaviour. 15 June 2020 18yayavaram@yahoo.com
  • 19. contd • Combinational circuit functions are specified at RTL level by means continuous assignment statements or by procedural assignment statements within a level – sensitive cyclic behaviour. • The symbol used to designate a register transfer is either an equal sign(=) or an arrow(<=). • The “always” keyword is used to indicate the execution of associated block statements repeatedly for the time of simulation. 15 June 2020 19yayavaram@yahoo.com
  • 20. contd • The @ operator and the event control expression preceding the block of statements , synchronize the execution of the statements to the clock event. • Ex: (i). assign S = A+B ;//continuous assignment (ii).always @(A,B) //level sensitive cyclic S= A+B;// combinational logic for addition. (iii). always @ (negedge clock) begin R1 = R1+ R2;//blocking procedural R3 = R1; //register transfer operation end 15 June 2020 20yayavaram@yahoo.com