- added pin non-maskable interrupt (NMI).

Exception vector is reset vector at (X"BFC00000")


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@490 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-10-03 16:41:26 +00:00
parent c5027772aa
commit e7b85e0138
5 changed files with 21 additions and 6 deletions
+7 -5
View File
@@ -44,6 +44,7 @@ ARCHITECTURE behavior OF tb_mips_top IS
signal debug : unsigned(1 downto 0);
-- Master
signal nmi : STD_LOGIC := '0';
signal rst : STD_LOGIC := '1';
signal clk : STD_LOGIC := '0';
signal eb : STD_LOGIC := '1';
@@ -214,7 +215,8 @@ uut: entity work.mips_top
CYC_O => CYC_O,
STB_O => STB_O,
MRDY_O => MRDY_O,
INT => INT
INT => INT,
nmi => nmi
);
INT(1) <= int_uart;
INT(5) <= int_timer;
@@ -430,12 +432,12 @@ STIMULUS: process
wait for 3*CLK_PERIOD;
wait until rising_edge(clk);
rst <= '0';
wait for 50000*CLK_PERIOD;
wait for 250000*CLK_PERIOD;
wait until rising_edge(clk);
rst <= '0';
wait for 3*CLK_PERIOD;
nmi <= '1';
wait for 3000*CLK_PERIOD;
wait until rising_edge(clk);
rst <= '0';
nmi <= '0';
wait;