vivkr
|
Hi,
I am trying to create a macromodel for a decoder with 12 bits of control and 4096 outputs.
I was trying to create this using AHDL or Verilog-A but run into trouble with indexing of the signal array. It seems that I can only specify a numeric constant for the signal array. However, this seems to defeat the purpose of using indexed arrays of signals.
I would just like to be able to assert 1 out of the 4096 signals high based on the result of a calculation, and hence my array index element is not constant but a variable.
Has anyone tried such a thing in AHDL or Verilog-A?
|