what does the sim.

A

Attila Csosz

Guest
Hi,

Considering the following process:


... <other processes>, signals declared to bit

A: process
begin
N6 <= NOT ( Carry ) AFTER 18.5 ns;
...
wait;
end process A;

... <other processes>


What does the simulator after executed the "signal assignment"?

(1) Enroll a transaction in ( now+18.5ns ) and go to the next
instruction when simulation time = now (suspend and wake it in now), so
go directly to the next

(1) Enroll a transaction in ( now+18.5ns ) and go to the next
instruction when simulation time = now+18.5ns (suspend and wake it in
now+18.5ns)

(working on a simulator )


Thanks
Attila
 
Attila Csosz <csosz33@axelero.hu> wrote:
A: process
begin
N6 <= NOT ( Carry ) AFTER 18.5 ns;
...
wait;
end process A;
What does the simulator after executed the "signal assignment"?

(1) Enroll a transaction in ( now+18.5ns ) and go to the next
instruction when simulation time = now (suspend and wake it in now), so
go directly to the next

(1) Enroll a transaction in ( now+18.5ns ) and go to the next
instruction when simulation time = now+18.5ns (suspend and wake it in
now+18.5ns)
There is no suspend after the assignment.
If your code looks like
A<='1' after 5 ns;
B<=A after 10 ns;
...
wait;

The simulator will process each command until the wait statement.
In first line, the simulator will mark signal A to be updated in 5 ns
with '0'. In second line the simulator will mark B to be updated with
the old value of A after 10 ns;
All happens now. In 5ns and 10ns there will be some signals
assignment.

bye Thomas
 

Welcome to EDABoard.com

Sponsor

Back
Top