kureigu
Member level 2
- Joined
- Jan 14, 2013
- Messages
- 49
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Scotland
- Activity points
- 1,779
I was wondering if it was possible to set up a type in which I can address particular bits of an Unsigned signal using pre-defined names, like you might do with a type when setting up a state machine.
For example, If I had..
Is it possible to set something up to enable me to do my_sig(X) <= value; to assign a value to my_sig(0)? And similarly for bit 1 and 2 using Y and Z respectively?
I was hoping doing this would just make it easier for me to keep track of signals that apply to certain buses, but I want grouped.
For example, If I had..
Code:
signal my_sig: unsigned(0 to 2)
I was hoping doing this would just make it easier for me to keep track of signals that apply to certain buses, but I want grouped.