M
mrfirmware
Guest
I can't seem to find any mention of this in the LRM but I have to
believe you can do C-like array init. at declaration time. Can someone
steer me straight on this? I'd like to do something like this:
typedef bit [10:0] some_hw_reg_t;
some_hw_reg_t hw_reg[] = { 'h11, 'h12, 'h14, 'h20 };
but of course { term, term, ... } is concatenation not initaization.
So is there a way? How?
Thanks,
- Mark
believe you can do C-like array init. at declaration time. Can someone
steer me straight on this? I'd like to do something like this:
typedef bit [10:0] some_hw_reg_t;
some_hw_reg_t hw_reg[] = { 'h11, 'h12, 'h14, 'h20 };
but of course { term, term, ... } is concatenation not initaization.
So is there a way? How?
Thanks,
- Mark