Jelajahi Sumber

Fixed L2 cache state machine issue which was only present in the previous commit.

bart 1 tahun lalu
induk
melakukan
f78729ea77
6 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. TEMPAT SAMPAH
      Quartus/FPGC.qws
  2. 3 3
      Quartus/modules/Memory/L2cache.v
  3. TEMPAT SAMPAH
      Quartus/output_files/output_file.jic
  4. TEMPAT SAMPAH
      Verilog/memory/code.bin
  5. 0 0
      Verilog/memory/spi.txt
  6. 3 3
      Verilog/modules/Memory/L2cache.v

TEMPAT SAMPAH
Quartus/FPGC.qws


+ 3 - 3
Quartus/modules/Memory/L2cache.v

@@ -188,7 +188,7 @@ begin
             begin
                 if (sdc_done)
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     sdc_addr_reg <= 24'd0;
                     sdc_we_reg <= 1'b0;
@@ -206,7 +206,7 @@ begin
                 // check cache. if hit, return cached item
                 if (cache_q[46] && sdc_addr_reg[23:index_size] == cache_q[45:32]) // valid and tag check
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     l2_done_reg <= 1'b1;
                     l2_q_reg <= cache_q[31:0];
@@ -224,7 +224,7 @@ begin
             begin
                 if (sdc_done)
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     // we received item from ram, now write to cache and return
                     sdc_addr_reg <= 24'd0;

TEMPAT SAMPAH
Quartus/output_files/output_file.jic


TEMPAT SAMPAH
Verilog/memory/code.bin


File diff ditekan karena terlalu besar
+ 0 - 0
Verilog/memory/spi.txt


+ 3 - 3
Verilog/modules/Memory/L2cache.v

@@ -188,7 +188,7 @@ begin
             begin
                 if (sdc_done)
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     sdc_addr_reg <= 24'd0;
                     sdc_we_reg <= 1'b0;
@@ -206,7 +206,7 @@ begin
                 // check cache. if hit, return cached item
                 if (cache_q[46] && sdc_addr_reg[23:index_size] == cache_q[45:32]) // valid and tag check
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     l2_done_reg <= 1'b1;
                     l2_q_reg <= cache_q[31:0];
@@ -224,7 +224,7 @@ begin
             begin
                 if (sdc_done)
                 begin
-                    state <= state_idle;
+                    state <= state_done_high;
 
                     // we received item from ram, now write to cache and return
                     sdc_addr_reg <= 24'd0;

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini