Fix unplanned unnesting bug
This commit is contained in:
parent
02136bd0b9
commit
78077c7b13
|
@ -58,7 +58,9 @@ begin
|
||||||
if instruction = "110" then
|
if instruction = "110" then
|
||||||
nested <= std_logic_vector(unsigned(nested) + 1);
|
nested <= std_logic_vector(unsigned(nested) + 1);
|
||||||
end if;
|
end if;
|
||||||
|
end if;
|
||||||
|
|
||||||
|
if state = '1' and skip_internal = '1' then
|
||||||
-- nested loop ended
|
-- nested loop ended
|
||||||
if instruction = "111" then
|
if instruction = "111" then
|
||||||
nested <= std_logic_vector(unsigned(nested) - 1);
|
nested <= std_logic_vector(unsigned(nested) - 1);
|
||||||
|
|
|
@ -20,7 +20,7 @@ end instructionMemory;
|
||||||
architecture arch of instructionMemory is
|
architecture arch of instructionMemory is
|
||||||
|
|
||||||
type imem is array(0 to 255) of std_logic_vector(2 downto 0);
|
type imem is array(0 to 255) of std_logic_vector(2 downto 0);
|
||||||
signal memory : imem := (b"010",b"110",b"000",b"011",b"110",b"101",b"011",b"000",b"011",b"110",b"011",b"000",b"011",b"110",b"011",b"000",b"011",b"110",b"011",b"111",b"001",b"111",b"001",b"111",b"001",b"111",b"001",b"111",others=>"000");
|
signal memory : imem := (b"010",b"001",b"010",b"000",b"011",b"001",b"011",b"000",b"110",b"011",b"111",b"011",b"110",b"011",b"101",b"111",others=>"000");
|
||||||
begin
|
begin
|
||||||
-- Process clk_read
|
-- Process clk_read
|
||||||
-- clk_read : process (clk) -- runs only, when clk changed
|
-- clk_read : process (clk) -- runs only, when clk changed
|
||||||
|
|
Loading…
Reference in New Issue