icache: Reformat icache
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 25 Sep 2019 06:50:24 +0000 (16:50 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Oct 2019 03:46:38 +0000 (14:46 +1100)
No code change

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
icache.vhdl

index 2565219b52c172c10dd2053b9bd47f7d4907ade5..eddcdea4f5af3535a6be73f831f03b71357635ca 100644 (file)
@@ -140,33 +140,33 @@ begin
             r.w.we  <= '0';
 
             case r.state is
-                when IDLE =>
-                    if read_miss = true then
-                        r.state <= WAIT_ACK;
-                        r.store_word <= 0;
-                        r.store_index <= read_index;
-
-                        tags(read_index) <= read_tag;
-                        tags_valid(read_index) <= '0';
-
-                        r.w.adr <= i_in.addr(63 downto OFFSET_BITS) & (OFFSET_BITS-1 downto 0 => '0');
-                        r.w.cyc <= '1';
-                        r.w.stb <= '1';
-                    end if;
-                when WAIT_ACK =>
-                    if wishbone_in.ack = '1' then
-                        cachelines(r.store_index)((r.store_word+1)*64-1 downto ((r.store_word)*64)) <= wishbone_in.dat;
-                        r.store_word <= r.store_word + 1;
-
-                        if r.store_word = (LINE_SIZE_DW-1) then
-                            r.state <= IDLE;
-                            tags_valid(r.store_index) <= '1';
-                            r.w.cyc <= '0';
-                            r.w.stb <= '0';
-                        else
-                            r.w.adr(OFFSET_BITS-1 downto 3) <= std_ulogic_vector(to_unsigned(r.store_word+1, OFFSET_BITS-3));
-                        end if;
-                    end if;
+           when IDLE =>
+               if read_miss = true then
+                   r.state <= WAIT_ACK;
+                   r.store_word <= 0;
+                   r.store_index <= read_index;
+
+                   tags(read_index) <= read_tag;
+                   tags_valid(read_index) <= '0';
+
+                   r.w.adr <= i_in.addr(63 downto OFFSET_BITS) & (OFFSET_BITS-1 downto 0 => '0');
+                   r.w.cyc <= '1';
+                   r.w.stb <= '1';
+               end if;
+           when WAIT_ACK =>
+               if wishbone_in.ack = '1' then
+                   cachelines(r.store_index)((r.store_word+1)*64-1 downto ((r.store_word)*64)) <= wishbone_in.dat;
+                   r.store_word <= r.store_word + 1;
+
+                   if r.store_word = (LINE_SIZE_DW-1) then
+                       r.state <= IDLE;
+                       tags_valid(r.store_index) <= '1';
+                       r.w.cyc <= '0';
+                       r.w.stb <= '0';
+                   else
+                       r.w.adr(OFFSET_BITS-1 downto 3) <= std_ulogic_vector(to_unsigned(r.store_word+1, OFFSET_BITS-3));
+                   end if;
+               end if;
             end case;
         end if;
     end process;