- added timer inrterrupt

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@411 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-03-27 11:16:54 +00:00
parent 5a3f3d4cbe
commit 2761d5926b
4 changed files with 107 additions and 18 deletions
+4 -1
View File
@@ -243,6 +243,7 @@ ARCHITECTURE behavior OF mips_sys IS
ADDR_I : in unsigned(31 downto 0);
DAT_I : in unsigned(31 downto 0);
DAT_O : out unsigned(31 downto 0);
INT_TIM_O : out STD_LOGIC;
sys_gpo0 : out unsigned(31 downto 0);
sys_gpo1 : out unsigned(31 downto 0);
@@ -307,6 +308,7 @@ ARCHITECTURE behavior OF mips_sys IS
signal clk270 : std_logic;
signal clk270var : std_logic;
signal rst_in : std_logic;
signal int_timer : std_logic;
signal int_uart_rx : std_logic;
signal locked : std_logic;
signal usb_addr : unsigned(31 downto 0);
@@ -480,7 +482,7 @@ int_sample:
process(clk)
begin
if rising_edge(clk) then
int <= "00" & INT_O_ac97 & sys_usb_int & int_uart_rx & sys_btn(4);
INT <= int_timer & '0' & INT_O_ac97 & sys_usb_int & int_uart_rx & sys_btn(4);
end if;
end process;
@@ -635,6 +637,7 @@ inst_gpio_wb : gpio_wb
ADDR_I => ADDR_O,
DAT_I => MDAT_O,
DAT_O => SDAT_O_gpio,
INT_TIM_O => int_timer,
sys_gpo0 => gpo0,
sys_gpo1 => gpo1,