Skip to content

$$ directives in board file Verilog are not ignored in code disabled by preprocessor test or /* */ #268

@FPGAEveryday

Description

@FPGAEveryday

I am not sure how hard this one is to fix, but if I have either of the following in my board file Verilog:

`ifdef SOMETHING_NOT_DEFINED
$$ SOME_VARIABLE = 16
`endif

or

/*
$$ SOME_VARIABLE = 16
*/

SOME_VARIABLE will still be defined to 16 for the Silice code. I had wired through support for two different parallel OLED displays in my board verilog file with one commented out - the commented out block was after and set some of the same variables, and they still got set even though it was commented out.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions