[DE0-Nano]

- added dip switches

git-svn-id: http://moon:8086/svn/vhdl/trunk@1379 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2017-01-28 10:08:56 +00:00
parent 7a62a6f245
commit 46e8e2d093
2 changed files with 9 additions and 4 deletions
@@ -62,7 +62,7 @@ ENTITY mips_sys IS
uart_rx : in unsigned(1 downto 0);
uart_tx : out unsigned(1 downto 0);
dip_sw : in unsigned(3 downto 0);
sys_leds : out unsigned(7 downto 0)
);
END mips_sys;
@@ -138,9 +138,10 @@ ARCHITECTURE behavior OF mips_sys IS
signal sys_rst_count : unsigned(7 downto 0) := (others => '1'); -- pre-init for POR
BEGIN
sys_nmi <= not sys_nmi_n;
sys_leds <= cpu_debug & gpo0(5 downto 0);
spi_ss_n <= not spi_ss;
sys_nmi <= not sys_nmi_n;
sys_leds <= cpu_debug & gpo0(5 downto 0);
spi_ss_n <= not spi_ss;
gpi0(11 downto 8) <= dip_sw;
sys_reset:
process(sys_clk)