瀏覽代碼

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 3 年之前
父節點
當前提交
7efe6c8d1c
共有 9 個文件被更改,包括 1446 次插入1314 次删除
  1. 449 367
      output_files/max80.fit.eqn
  2. 695 675
      output_files/max80.jam
  3. 二進制
      output_files/max80.jbc
  4. 二進制
      output_files/max80.jic
  5. 1 1
      output_files/max80.map
  6. 298 270
      output_files/max80.map.eqn
  7. 二進制
      output_files/max80.pof
  8. 二進制
      output_files/max80.sof
  9. 3 1
      sdram.sv

File diff suppressed because it is too large
+ 449 - 367
output_files/max80.fit.eqn


File diff suppressed because it is too large
+ 695 - 675
output_files/max80.jam


二進制
output_files/max80.jbc


二進制
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
 

File diff suppressed because it is too large
+ 298 - 270
output_files/max80.map.eqn


二進制
output_files/max80.pof


二進制
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.

Some files were not shown because too many files changed in this diff