Professional Documents
Culture Documents
VHDL 5
VHDL 5
Attributes
Dr. Yann-Hang Lee
yhlee@asu.edu
Event-driven Simulation
Initialization
No future event
find the next event(s)
execute statements
exit generate future events
activated by the event(s)
Form
Sig_identifier <= val_expr1 after delay1
{ , val_expr_ after delay_ } ;
Inertial Delay
transient behavior ignored
convenient for simulation
usually OK in synchronous
ckts.
Inputs:
a <= ‘0’, ‘1’ after 4 ns;
b <= ‘1’, ‘0’ after 5 ns;
a
y <= a xor b after 4 ns;
Output Y is initially ‘1’ and
b will be scheduled:
‘0’ after 8 ns
‘1’ after 9 ns
Y 1st event is removed
4 5 8 9 when 2nd is created
and before it is done.
Inputs: -- again
a <= ‘0’, ‘1’ after 4 ns;
b <= ‘1’, ‘0’ after 5 ns;
a
y <= a xor b after 4 ns;
Output Y is initially ‘1’ and
b will be scheduled:
‘0’ after 8 ns
‘1’ after 9ns
Y 1st event is NOT
4 5 8 9 removed when 2nd is
created.
S’delayed(t)
a waveform all of its own,
delayed by t
S’stable(t)
a waveform all of its own,
type boolean
S’event
a function true only when
S changes value
S’last_event
time since last value
change
CSE 422 page 13