Line 51... |
Line 51... |
port (
|
port (
|
-- global control --
|
-- global control --
|
clk_i : in std_ulogic; -- global clock, rising edge
|
clk_i : in std_ulogic; -- global clock, rising edge
|
rstn_i : in std_ulogic; -- global reset, low-active, async
|
rstn_i : in std_ulogic; -- global reset, low-active, async
|
clear_i : in std_ulogic; -- cache clear
|
clear_i : in std_ulogic; -- cache clear
|
|
miss_o : out std_ulogic; -- cache miss
|
-- host controller interface --
|
-- host controller interface --
|
host_addr_i : in std_ulogic_vector(data_width_c-1 downto 0); -- bus access address
|
host_addr_i : in std_ulogic_vector(data_width_c-1 downto 0); -- bus access address
|
host_rdata_o : out std_ulogic_vector(data_width_c-1 downto 0); -- bus read data
|
host_rdata_o : out std_ulogic_vector(data_width_c-1 downto 0); -- bus read data
|
host_wdata_i : in std_ulogic_vector(data_width_c-1 downto 0); -- bus write data
|
host_wdata_i : in std_ulogic_vector(data_width_c-1 downto 0); -- bus write data
|
host_ben_i : in std_ulogic_vector(03 downto 0); -- byte enable
|
host_ben_i : in std_ulogic_vector(03 downto 0); -- byte enable
|
Line 283... |
Line 284... |
ctrl.state_nxt <= S_IDLE;
|
ctrl.state_nxt <= S_IDLE;
|
|
|
end case;
|
end case;
|
end process ctrl_engine_fsm_comb;
|
end process ctrl_engine_fsm_comb;
|
|
|
|
-- signal cache miss to CPU --
|
|
miss_o <= '1' when (ctrl.state = S_CACHE_MISS) else '0';
|
|
|
|
|
-- Cache Memory ---------------------------------------------------------------------------
|
-- Cache Memory ---------------------------------------------------------------------------
|
-- -------------------------------------------------------------------------------------------
|
-- -------------------------------------------------------------------------------------------
|
neorv32_icache_memory_inst: neorv32_icache_memory
|
neorv32_icache_memory_inst: neorv32_icache_memory
|
generic map (
|
generic map (
|