Line 4... |
Line 4... |
-- # This version is intended for SIMULATION ONLY! #
|
-- # This version is intended for SIMULATION ONLY! #
|
-- # It implements the IMEM as pre-initialized RAM. #
|
-- # It implements the IMEM as pre-initialized RAM. #
|
-- # ********************************************************************************************* #
|
-- # ********************************************************************************************* #
|
-- # BSD 3-Clause License #
|
-- # BSD 3-Clause License #
|
-- # #
|
-- # #
|
-- # Copyright (c) 2021, Stephan Nolting. All rights reserved. #
|
-- # Copyright (c) 2022, Stephan Nolting. All rights reserved. #
|
-- # #
|
-- # #
|
-- # Redistribution and use in source and binary forms, with or without modification, are #
|
-- # Redistribution and use in source and binary forms, with or without modification, are #
|
-- # permitted provided that the following conditions are met: #
|
-- # permitted provided that the following conditions are met: #
|
-- # #
|
-- # #
|
-- # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
-- # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
Line 123... |
Line 123... |
-- -------------------------------------------------------------------------------------------
|
-- -------------------------------------------------------------------------------------------
|
bus_feedback: process(clk_i)
|
bus_feedback: process(clk_i)
|
begin
|
begin
|
if rising_edge(clk_i) then
|
if rising_edge(clk_i) then
|
rden <= acc_en and rden_i;
|
rden <= acc_en and rden_i;
|
|
err_o <= '0';
|
ack_o <= acc_en and (rden_i or wren_i);
|
ack_o <= acc_en and (rden_i or wren_i);
|
end if;
|
end if;
|
end process bus_feedback;
|
end process bus_feedback;
|
|
|
-- output gate --
|
-- output gate --
|