Procházet zdrojové kódy

sdram: fix op_cycle counter overflow

A burst write cycle takes 24 cycles, and st_init takes 22, so op_cycle
would overflow for those operations. Fix.

Ideally the width of this counter should be explicitly computed.
H. Peter Anvin před 3 roky
rodič
revize
7efe6c8d1c
9 změnil soubory, kde provedl 1446 přidání a 1314 odebrání
  1. 449 367
      output_files/max80.fit.eqn
  2. 695 675
      output_files/max80.jam
  3. binární
      output_files/max80.jbc
  4. binární
      output_files/max80.jic
  5. 1 1
      output_files/max80.map
  6. 298 270
      output_files/max80.map.eqn
  7. binární
      output_files/max80.pof
  8. binární
      output_files/max80.sof
  9. 3 1
      sdram.sv

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 449 - 367
output_files/max80.fit.eqn


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 695 - 675
output_files/max80.jam


binární
output_files/max80.jbc


binární
output_files/max80.jic


+ 1 - 1
output_files/max80.map

@@ -10,7 +10,7 @@ Quad-Serial configuration device dummy clock cycle: 8
 
 Notes:
 
-- Data checksum for this conversion is 0xF75F29AE
+- Data checksum for this conversion is 0xF75F281E
 
 - All the addresses in this file are byte addresses
 

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 298 - 270
output_files/max80.map.eqn


binární
output_files/max80.pof


binární
output_files/max80.sof


+ 3 - 1
sdram.sv

@@ -196,7 +196,9 @@ module sdram (
    // State machine and counters
    reg [t_ref:0]	    rfsh_ctr;  // Refresh timer
    reg [t_p:t_ref]	    init_ctr;  // Reset to init counter
-   reg [burst:0]	    op_cycle;  // Cycles into the current operation
+
+   // XXX: compute the necessary width of this field elsewhere
+   reg [4:0]	            op_cycle;	// Cycles into the current operation
 
    // The actual values are unimportant; the compiler will optimize
    // the state machine implementation for us.

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů