On Aug 25, 11:24*am, Brian Drummond wrote:
> alias myreg : std_logic_vector(7 downto 0) is myreg_2 & myreg_1;
Brian, I don't think you can do this. What then happens
if you attempt to assign to myreg??? Remember that "&"
is simply a function that returns a result.
OTOH there may be some way to do it using aggregates.
Where is Jim Lewis when you need him?
alias myreg : std_logic_vector(7 downto 0) is
(7 => myreg_2(5)
,6 => myreg_2(4)
, .... ad nauseam ....
,2 => myreg_2(0)
,1 => myreg_1(1)
,0 => myreg_1(0) );
Even if it works (which I doubt) it's pretty nasty!
--
Jonathan Bromley