Académique Documents
Professionnel Documents
Culture Documents
Statements
By:
Dr. Gaganpreet Kaur
Behavioral Modeling
primary construct used for behavioral
modeling- Process.
statements written inside a process are
sequential though process statement in itself
is concurrent statement.
BEGIN
Sequential statements1;
Sequential statement 2;
Sequential statement n;
or combined form
Examples:
WAIT ON A,B;
CASE expression IS
WHEN choice1 => Statements;.
WHEN choice2 => Statements;
LOOP
EXIT or EXIT [LOOP LABEL] or EXIT WHEN condition;
END LOOP;
Continued.
NEXT statement
Skip a set of sequential statements or a loop
iteration.
all the statements after NEXT inside the
loop are skipped and processing jumps to
next iteration ,if any .
LOOP
Statement1;
NEXT or NEXT WHEN condition;
Statement2;
.
END LOOP;
Continued.
NULL
no action statement used when after certain
condition is met no action is required to be
performed
in CASE statement when for a particular
choice no action is to be taken NULL
statement is used.
Sequential VHDL code
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
ENTITY my_ff IS
PORT (D,clk,reset:in std_logic; Q:out std_logic);
END my_ff;
ARCHITECTURE synch OF my_ff IS
begin
process (clk,reset)
begin
if reset='1' then
Q <='0';
elsif clk='1' and clk'EVENT then
Q<=D;
end if;
end process;
end synch;
Explanation
The source code shown implements a D flip flop
that is rising edge triggered and uses
asynchronous reset