EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

wire value set/change

elektroda.net NewsGroups Forum Index - Verilog Language - wire value set/change

bil050
Guest

Wed Jul 21, 2010 3:06 pm   



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,

WilliamGibb@gmail.com
Guest

Wed Jul 21, 2010 5:28 pm   



On Jul 21, 7:06 am, bil050 <irinali...@gmail.com> wrote:
Quote:
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?

elektroda.net NewsGroups Forum Index - Verilog Language - wire value set/change

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony