what does the sim.

A

Attila Csosz

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
 
T

Thomas Stanka

Attila Csosz said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top