فهرست منبع

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. BIN
      output_files/max80.jbc
  4. BIN
      output_files/max80.jic
  5. 1 1
      output_files/max80.map
  6. 298 270
      output_files/max80.map.eqn
  7. BIN
      output_files/max80.pof
  8. BIN
      output_files/max80.sof
  9. 3 1
      sdram.sv

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 449 - 367
output_files/max80.fit.eqn


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 695 - 675
output_files/max80.jam


BIN
output_files/max80.jbc


BIN
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
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 298 - 270
output_files/max80.map.eqn


BIN
output_files/max80.pof


BIN
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.

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است