我想更改数组中的一些元素,但可以弄清楚如何去做。
这一行:sig3(1) <= (11, 12);
给我一个错误
entity t1 is
end entity;
architecture testbench of t1 is
type type3 is array(1 to 2, 1 to 2) of integer;
signal sig3 : type3;
begin
process is
begin
-- sig3 <= ((11, 12), (13, 14)); -- this works
sig3(1) <= (11, 12); -- get error: "Incompatible types for assignment."
wait;
end process;
end architecture;