Extended VHDL - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Extended VHDL

Description:

var := input1 input2; end process; Not synthesizable. Immediate updatable. Types. Example ... All process can be described by state machines. Mathematically complete ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 10
Provided by: philipv8
Category:
Tags: vhdl | extended | input1

less

Transcript and Presenter's Notes

Title: Extended VHDL


1
Extended VHDL
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Variables
  • Example
  • process(inputs)
  • variable var std_logic_vector(7 downto 0)
  • Begin
  • --logic
  • var input1 input2
  • end process
  • Not synthesizable
  • Immediate updatable
  • Types
  • Example
  • type myType is record
  • en std_logic
  • min std_logic_vector(7 downto 0)
  • max std_logic_vector(7 downto 0)
  • end record
  • signal r myType
  • r.en lt 1
  • r.max lt r.min

1
2
Pipeline
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Synchronous design
  • Asynchronous logic between synchronous latches

2
3
2 process method
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Synchronous and asynchronous process
  • Synchronous only copying signals
  • Asynchronous all other logic

3
4
2 process structure
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration

sequential process(clk) begin if (clk'event
and clk'1') then r lt r_in end if end
process
combinational process(data_in, r) variable tmp
myType begin --logic e.g. tmp.en
1 r_in lt tmp --outputs e.g. output lt
r.en end process
type myType is record --all latched signals end
record signal r, r_in myType
4
5
2 process advantages
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Only two processes
  • Easy to simulate and synthesize
  • Easy to understand design
  • No effect on implemented logic
  • Easy to change design

5
6
State machine introduction
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • All process can be described by state machines
  • Mathematically complete
  • State machines can greatly simplify some
    processes
  • Easy to understand, adapt

6
7
State machines
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Moore outputs depend on current state
  • Mealy outputs depend on current state AND inputs

7
8
State machine example
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration

architecture arch of design is type state is
(p0,p1,,p9) signal toestand
state begin process(clk) begin if (clk'EVENT
and clk'1') then case toestand is when p0
gt output lt "0000" toestandltp1 w
hen p1 gt output lt "0001" if
(input1) then toestandltp2 else
toestandltp9 end if when others
gt end case end if end
process end arch
8
9
Demonstration
  • Extended VHDL
  • Pipeline
  • 2 process method
  • 2 process structure
  • 2 process advantages
  • State machine introduction
  • State machines
  • State machine example
  • Demon-stration
  • Demonstration VHDL projects

9
Write a Comment
User Comments (0)
About PowerShow.com