X
Xin Xiao
Guest
Hi! I have a simple problem!
I am generating a few registers with this code
gen : for i in num_registers - 1 downto 0 generate
reg : Register
port map ( Clk => Clk,
Load => s_Load(i),
Din => BusW,
Dout => s_Out(i));
end generate;
The problem is that signal "s_Load(i)" should be
s_Load(i) <= Another_Signal(i) and Another_Signal2;
("s_Load" and "Another_Signal" are std_logic_vector and "Another_Signal2" is
std_logic.)
If i put
gen : for i in num_registers - 1 downto 0 generate
reg : Register
port map ( Clk => Clk,
Load => Another_Signal(i) and Another_Signal2,
it gives me an error.
How can I solve this?
I am generating a few registers with this code
gen : for i in num_registers - 1 downto 0 generate
reg : Register
port map ( Clk => Clk,
Load => s_Load(i),
Din => BusW,
Dout => s_Out(i));
end generate;
The problem is that signal "s_Load(i)" should be
s_Load(i) <= Another_Signal(i) and Another_Signal2;
("s_Load" and "Another_Signal" are std_logic_vector and "Another_Signal2" is
std_logic.)
If i put
gen : for i in num_registers - 1 downto 0 generate
reg : Register
port map ( Clk => Clk,
Load => Another_Signal(i) and Another_Signal2,
it gives me an error.
How can I solve this?