Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process(sysclk)
- begin
- if rising_edge(sysclk) then
- if INTENA = '1' and cpu_r_w = '0' then
- cpu_datain_intreq <= '1';
- int2ena <= '1';
- end if;
- if INTREQ = '1' and cpu_r_w = '0' and cpu_dataout(15) = '0' then
- cpu_datain_intreq <= '0';
- end if;
- if INTREQ = '1' and int2ena = '1' and IDE_IRQ = '1' then
- cpu_datain_intreq <= '1';
- end if;
- end if;
- end process;
- cpu_datain_cpu(14 downto 0) <= cpu_datain(14 downto 0);
- cpu_datain_cpu(15) <= cpu_datain_intreq when INTREQ = '1' or INTENA = '1' else cpu_datain(15);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement