P
Paul B
Hi all,
I'm trying to write a tight piece of code which will pick all the individual
signals out of an slv as I need them. So I have a vector whos bits are not
all used.
What I was thinking was:
(a, b, , c, , d, e, f) <= SLV_SIGNAL;
or
(a, b, open, c, open, d, e, f) <= SLV_SIGNAL;
where
signal a,b,c,d,e,f : std_logic;
signal SLV_SIGNAL : std_logic_vector;
Is there any compact way of doing this instead of writing:
a <= SLV_SIGNAL(7);
b <= SLV_SIGNAL(6);
c <= SLV_SIGNAL(4);
d <= SLV_SIGNAL(2);
e <= SLV_SIGNAL(1);
f <= SLV_SIGNAL(0);
TIA!
Paul
I'm trying to write a tight piece of code which will pick all the individual
signals out of an slv as I need them. So I have a vector whos bits are not
all used.
What I was thinking was:
(a, b, , c, , d, e, f) <= SLV_SIGNAL;
or
(a, b, open, c, open, d, e, f) <= SLV_SIGNAL;
where
signal a,b,c,d,e,f : std_logic;
signal SLV_SIGNAL : std_logic_vector;
Is there any compact way of doing this instead of writing:
a <= SLV_SIGNAL(7);
b <= SLV_SIGNAL(6);
c <= SLV_SIGNAL(4);
d <= SLV_SIGNAL(2);
e <= SLV_SIGNAL(1);
f <= SLV_SIGNAL(0);
TIA!
Paul