steven852
Advanced Member level 4
Hi,
I have an indexing question in Verilog. For instance, a set of parameters are defined as
paramter [7:0] COMM0 = 8'h00,
COMM1 = 8'h01,
COMM2 = 8'h02,
COMM3 = 8'h03,
COMM4 = 8'h05,
COMM5 = 8'h07;
can I later on use COMM[ADDR}? ADDR is a 3-bit input. I guess I can't. If not, what is the simplest way to make such indexing?
Thanks
I have an indexing question in Verilog. For instance, a set of parameters are defined as
paramter [7:0] COMM0 = 8'h00,
COMM1 = 8'h01,
COMM2 = 8'h02,
COMM3 = 8'h03,
COMM4 = 8'h05,
COMM5 = 8'h07;
can I later on use COMM[ADDR}? ADDR is a 3-bit input. I guess I can't. If not, what is the simplest way to make such indexing?
Thanks