wire value set/change

B

bil050

Guest
Hi,
I need to write code (in the stimulus)
which set the signal/wire (say x) first time to 0 [x = 0] and
(forever) any other time to 1 [x=1]
How can I do it?
Thanks,
 
On Jul 21, 7:06 am, bil050 <irinali...@gmail.com> wrote:
Hi,
I need to write code (in the stimulus)
which set the signal/wire (say x) first time to 0 [x = 0] and
(forever) any other time to 1 [x=1]
How can I do it?
Thanks,
so you want a signal to have the initial condition of zero (@ time 0)
and have the value 1 at all other times?

Define DELAY 0.1 // set appropriate delay

Initial
begin
x=0;
#DELAY
x=1;
end

Is that what your looking for?
 

Welcome to EDABoard.com

Sponsor

Back
Top