The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> AMS Simulators >> programming a decoder in AHDL,Verilog-A https://designers-guide.org/forum/YaBB.pl?num=1125566213 Message started by vivkr on Sep 1st, 2005, 2:16am |
Title: programming a decoder in AHDL,Verilog-A Post by vivkr on Sep 1st, 2005, 2:16am 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? |
Title: Re: programming a decoder in AHDL,Verilog-A Post by Geoffrey_Coram on Sep 1st, 2005, 8:45am It's a little clunky, but this works for me: Code:
|
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |