barry
Advanced Member level 7
- Joined
- Mar 31, 2005
- Messages
- 6,575
- Helped
- 1,207
- Reputation
- 2,426
- Reaction score
- 1,437
- Trophy points
- 1,393
- Location
- California, USA
- Activity points
- 35,753
Maybe I'm trying to do something I can't, but it seems like I should be able to.
Here's a snippet:
This is part of a testbench I'm using in Active-HDL, and it doesn't like the assignment. The error I get says it wants a ";" before the "(3 downto 0)". If I eliminate the "(3 downto 0)", it compiles ok, but then fails at runtime (as would be expected).
Any thoughts, guys?
Here's a snippet:
Code:
signal big:std_logic_vector(15 downto 0);
signal little:std_logic_vector(3 downto 0);
.
.
.
little<=(big-x"0010")(3 downto 0);
This is part of a testbench I'm using in Active-HDL, and it doesn't like the assignment. The error I get says it wants a ";" before the "(3 downto 0)". If I eliminate the "(3 downto 0)", it compiles ok, but then fails at runtime (as would be expected).
Any thoughts, guys?