mirror of
https://github.com/UzixLS/TSConf_MiST.git
synced 2025-07-19 07:11:22 +03:00
tune sdram
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
// 25 26 27 28 29 30 31 20 21 22 23 24 25
|
||||
// cpu_strobe ________________________________________________________________/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\_______________________________________________________________
|
||||
// cpu_strobe ________________________________________________________________/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\__________________________________
|
||||
// cyc ‾‾‾‾\_____________________________________________________________________________________________________________/‾‾‾‾‾‾‾‾‾\____
|
||||
// clk_sys ____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾
|
||||
// 5.95ns
|
||||
//
|
||||
// REFRESH RASCAS
|
||||
// REFRESH RASCAS RASCAS
|
||||
// clk_sys ____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾
|
||||
// clk_ram ‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____
|
||||
// REFRSH
|
||||
// REFRSH REFRSH
|
||||
//
|
||||
// READ+NOP RAS CAS latch set do
|
||||
// clk_sys ____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾\____/‾‾‾‾
|
||||
@ -128,8 +128,8 @@ always @(posedge clk) begin
|
||||
|
||||
// Start - activate (port1) or refresh
|
||||
25: begin
|
||||
{SDRAM_BA,SDRAM_A,col} <= Ar1;
|
||||
if (rq1) begin
|
||||
{SDRAM_BA,SDRAM_A,col} <= Ar1;
|
||||
sdr_cmd <= SdrCmd_ac;
|
||||
end
|
||||
else if (rq2) begin
|
||||
@ -137,7 +137,6 @@ always @(posedge clk) begin
|
||||
end
|
||||
else begin
|
||||
sdr_cmd <= SdrCmd_re;
|
||||
state <= 19;
|
||||
end
|
||||
end
|
||||
|
||||
@ -157,8 +156,8 @@ always @(posedge clk) begin
|
||||
|
||||
// Start - activate (port2) or refresh
|
||||
28: begin
|
||||
{SDRAM_BA,SDRAM_A,col} <= Ar2;
|
||||
if (rq2) begin
|
||||
{SDRAM_BA,SDRAM_A,col} <= Ar2;
|
||||
sdr_cmd <= SdrCmd_ac;
|
||||
end
|
||||
end
|
||||
@ -182,6 +181,10 @@ always @(posedge clk) begin
|
||||
end
|
||||
end
|
||||
|
||||
if (!rq1 && !rq2) begin
|
||||
sdr_cmd <= SdrCmd_re;
|
||||
end
|
||||
|
||||
state <= 20;
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user