T
Travis
Guest
Pardon me if this is a trivial question but my VHDL experience is
limited and rusty (sorry, I'm verilog). I'm modifying a pre-existing
unit that manages access to a giant register bank. This is handled
with a huge case statement and I need to modify the case statement to
support a new subset of addresses. These addresses correspond to a big
contiguous block of data and so I was hoping I could use a loop to
simplify the coding. Essentially what I'm looking for is the ability
to do the equivalent of the following:
case addr is
...
for i in 0 to count-1 loop
when (new_base_addr + i) =>
dataout <= new_reg(i);
end loop
...
end case
I've tried a standard for loop and a for-generate loop but neither will
synthesize (using the Xilinx Synthesis Tool). If anybody can show me
how to do this without manually entering every individual case that
would be awesome. Thanks.
- Travis
limited and rusty (sorry, I'm verilog). I'm modifying a pre-existing
unit that manages access to a giant register bank. This is handled
with a huge case statement and I need to modify the case statement to
support a new subset of addresses. These addresses correspond to a big
contiguous block of data and so I was hoping I could use a loop to
simplify the coding. Essentially what I'm looking for is the ability
to do the equivalent of the following:
case addr is
...
for i in 0 to count-1 loop
when (new_base_addr + i) =>
dataout <= new_reg(i);
end loop
...
end case
I've tried a standard for loop and a for-generate loop but neither will
synthesize (using the Xilinx Synthesis Tool). If anybody can show me
how to do this without manually entering every individual case that
would be awesome. Thanks.
- Travis