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 `define depth 512 `define width 32 `define memory_name ram `depth x `width Is there a way to do it in Verilog ?