Change instructions and testbench to test nested loops
This commit is contained in:
parent
73d1db32c7
commit
e27c8a4505
|
@ -20,8 +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"010", b"101", b"001", b"111", others => "000");
|
||||||
signal memory : imem := (b"010", b"110", b"010", 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
|
||||||
|
|
|
@ -35,7 +35,7 @@ begin
|
||||||
debug => debug,
|
debug => debug,
|
||||||
led => led);
|
led => led);
|
||||||
|
|
||||||
sw <= "00110011";
|
sw <= "00001011";
|
||||||
|
|
||||||
-- Clock process definitions
|
-- Clock process definitions
|
||||||
clk_process : process
|
clk_process : process
|
||||||
|
|
Loading…
Reference in New Issue