entity mos6502 is \r
port ( \r
pi_base_clk : in std_logic;\r
+ pi_cpu_en : in std_logic_vector (7 downto 0);\r
pi_rdy : in std_logic;\r
pi_rst_n : in std_logic;\r
pi_irq_n : in std_logic;\r
ref_cnt := 0;\r
\r
elsif (rising_edge(pi_base_clk)) then\r
-\r
+ if (pi_cpu_en(0) = '1') then\r
if (pi_rdy = '1') then\r
if (init_done = '0') then\r
if (global_step_cnt = 0) then\r
po_addr <= (others => 'Z');\r
pio_d_io <= (others => 'Z');\r
end if;--if (rdy = '1') then\r
+ end if;--if (pi_cpu_en(0) = '1') then\r
end if; --if (rst_n = '0') then\r
end process;\r
\r