- made GPIO 0 bidirectional (added GPIO_DIR register)

- removed GPIO 1
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@792 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2010-03-13 16:46:21 +00:00
parent db662f411f
commit fcce3dcf32
7 changed files with 1377 additions and 1378 deletions
+7 -9
View File
@@ -101,10 +101,8 @@ ARCHITECTURE behavior OF tb_mips_top IS
signal flash_d : unsigned(31 downto 0);
signal flash_page_mode_en : std_logic;
signal gpo0 : unsigned(31 downto 0);
signal gpo1 : unsigned(31 downto 0);
signal gpi0 : unsigned(31 downto 0) := (others => '0');
signal gpi1 : unsigned(31 downto 0) := (others => '0');
signal gpi_0 : unsigned(31 downto 0);
signal gpo_0 : unsigned(31 downto 0);
signal int_timer : std_logic;
signal int_uart : std_logic;
@@ -258,10 +256,8 @@ inst_gpio : entity work.gpio_wb
DAT_O => DAT_O_gpio,
INT_TIM_O => int_timer,
sys_gpo0 => gpo0,
sys_gpo1 => gpo1,
sys_gpi0 => gpi0,
sys_gpi1 => gpi1
sys_gpi_0 => gpi_0,
sys_gpo_0 => gpo_0
);
inst_flash_port : entity work.async_port_wb
@@ -444,7 +440,9 @@ STIMULUS: process
begin
gpi_0(23 downto 16) <= "00000000";
gpi_0(28 downto 24) <= "00000";
gpi_0(31) <= 'H';
wait for 3*CLK_PERIOD;
wait until rising_edge(clk);
rst <= '0';