Forum Discussion
Altera_Forum
Honored Contributor
17 years agoUse defines in Verilog
I have some problems using defines in Verilog. I want to define memory depth & width, and then to use these defines for the memory name. For example - memory name should be ram512x32 `def...
Altera_Forum
Honored Contributor
17 years agoThe problem in this case is assembling a continuous text string. Preprocessor define directive requires white spaces separating the arguments, that isn't suitable in this case. There may be an option to achieve your intention through "$" system functions, but I'm not used to it.