P
Peter
Guest
Hi,
I have always used a WHEN-ELSE statement to read back data from e.g. a
register bank. Example:
dout <= reg1 when adr = X"00"
else reg2 when adr = X"01"
...
...
...
else (others => '0';
In my last design I have run into timing problems, where the access
time is rather slow. My question is:
Would a CASE statement in general, lead to a faster - or a better
balanced - design?
The drawback with the CASE statement is of course that it has to be
used inside a process with an extensive sensitivity list.
Thanks in advance.
/Peter
I have always used a WHEN-ELSE statement to read back data from e.g. a
register bank. Example:
dout <= reg1 when adr = X"00"
else reg2 when adr = X"01"
...
...
...
else (others => '0';
In my last design I have run into timing problems, where the access
time is rather slow. My question is:
Would a CASE statement in general, lead to a faster - or a better
balanced - design?
The drawback with the CASE statement is of course that it has to be
used inside a process with an extensive sensitivity list.
Thanks in advance.
/Peter