我想創建一個VHDL 5維數組,但我不確定如何設置和初始化位。如何:多維數組vhdl
這裏是我到目前爲止有:
type \1-line\ is array (4 - 1 downto 0) of unsigned (32 - 1 downto 0);
type square is array (4 - 1 downto 0) of \1-line\;
type cube is array (4 - 1 downto 0) of square;
type hypercube is array (4 - 1 downto 0) of cube;
type \5-cube\ is array (4 - 1 downto 0) of cube;
signal mega_array : \5-cube\;
begin
process (clock, reset) begin
if (reset == '1') then
mega_array <= '0';
end if;
end process;
end behv;
我剛用了一個for循環來初始化它們 – 2013-02-18 13:18:09