diff --git a/hdl/top/sf2-test/sf2_test.vhd b/hdl/top/sf2-test/sf2_test.vhd index 911cd93ab280c3e754ad7aa90a2a3f1c09aa8d49..bed17f16c7be081a27da7e06e92f36133b1a32e6 100644 --- a/hdl/top/sf2-test/sf2_test.vhd +++ b/hdl/top/sf2-test/sf2_test.vhd @@ -125,7 +125,7 @@ begin if rising_edge(clk_100) then if rst_n = '0' then led1_o <= '1'; - led2_o <= '1'; + led2_o <= '0'; else led1_o <= counter (25); led2_o <= counter (23); @@ -136,7 +136,7 @@ begin iram_addr <= iahb_addr (IRAM_LOG_SIZE + 2 - 1 downto 2); iram_data <= ahb_rdata; - proc_uart: process (clk_100) + proc_init: process (clk_100) begin if rising_edge(clk_100) then iahb_start <= '0'; @@ -150,7 +150,7 @@ begin case state is when INIT_DELAY => iahb_addr <= (others => '0'); - if counter = x"000_0010" then + if counter = x"0c0_0000" then state <= READ_NVM; counter <= (others => '0'); else @@ -171,6 +171,7 @@ begin end if; end if; when DONE => + counter <= counter + 1; cpu_rst_n <= '1'; end case; end if; diff --git a/hdl/top/sf2-test/uart.vhd b/hdl/top/sf2-test/uart.vhd index 4c9c92599b203f5def1a820cc37700af4eb4c26c..c08220c55942ce505581dc319e68573017c8ba81 100644 --- a/hdl/top/sf2-test/uart.vhd +++ b/hdl/top/sf2-test/uart.vhd @@ -9,8 +9,6 @@ library ieee; use ieee.std_logic_1164.all; -library smartfusion2; -use smartfusion2.all; ---------------------------------------------------------------------- -- uart entity declaration ----------------------------------------------------------------------