fix: fix icache_tb not finishing correctly
authorTianrui Wei <tianrui@tianruiwei.com>
Tue, 1 Mar 2022 15:51:35 +0000 (23:51 +0800)
committerTianrui Wei <tianrui@tianruiwei.com>
Tue, 1 Mar 2022 15:54:24 +0000 (23:54 +0800)
Setting icache to be privileged and accessing physical memory directly.
And set big_endian to 0 to correspond to the testbench result.

Signed-off-by: Tianrui Wei <tianrui@tianruiwei.com>
icache_tb.vhdl

index 36d5b19a5b449c28cd7275accea5a0fb73f41a25..83a84b31f788c6fb294bfdad83012cd7799346be 100644 (file)
@@ -74,6 +74,9 @@ begin
         i_out.req <= '0';
         i_out.nia <= (others => '0');
         i_out.stop_mark <= '0';
+        i_out.priv_mode <= '1';
+        i_out.virt_mode <= '0';
+        i_out.big_endian <= '0';
 
         m_out.tlbld <= '0';
         m_out.tlbie <= '0';