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

verilog and runtime directive around continuous assignment

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Verilog Language - verilog and runtime directive around continuous assignment

sense
Guest

Fri Dec 09, 2011 12:08 am   



Hi all,

I have a continuous assingment in verilog which I want to exclude in a
simulation under certain condition. Having a `ifdef `endif around the
code requires me to recompile and I cannot have a testplusarg around a
continuous assignment.

Any way to work around this problem?

Sagar

glen herrmannsfeldt
Guest

Fri Dec 09, 2011 12:36 am   



sense <sagar.1986_at_gmail.com> wrote:

Quote:
I have a continuous assingment in verilog which I want to exclude in a
simulation under certain condition. Having a `ifdef `endif around the
code requires me to recompile and I cannot have a testplusarg around a
continuous assignment.

What do you want it to be when it isn't assigned?

Quote:
Any way to work around this problem?

How about

assign x = (condition) ? value : 8'hz;

That is, tristate based on condition. Though zero might
be a better choice.

-- glen

elektroda.net NewsGroups Forum Index - Verilog Language - verilog and runtime directive around continuous assignment

Ask a question - edaboard.com

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