Altera_Forum
Honored Contributor
17 years agoQuick VHDL question about splitting/joining std_logic_vectors
I have a memory block in my VHDL code and it has output std_logic_vectors that are 32 bit wide. I want to connect those to smaller std_logic_vectors and individual bits of std_logic in some cases.
Is there a quicker way of doing this than to assign them to a signal and then assign individual parts of that signal to my smaller signals using several lines of destination <= signal(31 downto 16) or similar?
WCONF: wheelconfig PORT MAP (
clk=>clk, addr=>addr(3 downto 0), -- Assign 4 lowest bits of global address bus
wren=>wc_wr,
data_in=>data_in,
data_out=>wheelconfig_read
data0=> -- Here lets say I have a vector of 16 bits, a vector of 8 bits, a vector of 4 bits and 4 invidual bits to assign.
);