mirror of
https://github.com/MiSTer-devel/MemTest_MiSTer.git
synced 2026-05-24 03:04:13 +00:00
Including more frequencies around the lower clock speeds (#15)
* Including more low frequencies - hopefully to help debug issues with N64 on Mister Pi boards * Including even more frequencies (625 is 62.5MHz, the SDRAM clock for N64). Included Excel spreadsheet with frequency calculations * Changing the parameters for 62.5MHz to more closely follow the PLL MegaWizard's recommendation for this frequency * Updating all clock frequencies to match the output of the PLL MegaWizard
This commit is contained in:
BIN
PLL calculations.xlsx
Normal file
BIN
PLL calculations.xlsx
Normal file
Binary file not shown.
@@ -13,7 +13,7 @@ set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
|
||||
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
|
||||
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
|
||||
|
||||
set_global_assignment -name LAST_QUARTUS_VERSION "17.0.2 Standard Edition"
|
||||
set_global_assignment -name LAST_QUARTUS_VERSION "17.0.2 Lite Edition"
|
||||
|
||||
set_global_assignment -name GENERATE_RBF_FILE ON
|
||||
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
|
||||
|
||||
36
memtest.sv
36
memtest.sv
@@ -256,7 +256,7 @@ pll_cfg pll_cfg
|
||||
reg recfg = 0;
|
||||
reg pll_reset = 0;
|
||||
|
||||
wire [31:0] cfg_param[152] =
|
||||
wire [31:0] cfg_param[256] =
|
||||
'{ // M K C
|
||||
'h167, 'h00808, 'hB33332DD, 'h20302,
|
||||
'h160, 'h00808, 'h00000001, 'h20302,
|
||||
@@ -295,7 +295,33 @@ wire [31:0] cfg_param[152] =
|
||||
'h100, 'h00404, 'h00000001, 'h00202,
|
||||
'h90, 'h00707, 'h66666666, 'h00404,
|
||||
'h80, 'h00707, 'h66666666, 'h20504,
|
||||
'h70, 'h00707, 'h00000001, 'h00505
|
||||
'h70, 'h00707, 'h00000001, 'h00505,
|
||||
'h69, 'h00404, 'h47AE147B, 'h00303,
|
||||
'h68, 'h00404, 'h28F5C28F, 'h00303,
|
||||
'h67, 'h00505, 'hB851EB85, 'h00404,
|
||||
'h66, 'h00505, 'h8F5C28F6, 'h00404,
|
||||
'h65, 'h20706, 'h00000001, 'h00505,
|
||||
'h64, 'h00606, 'hCCCCCCCD, 'h00505,
|
||||
'h63, 'h00606, 'h9999999A, 'h00505,
|
||||
'h625, 'h00404, 'hC0000000, 'h20403,
|
||||
'h62, 'h00606, 'h66666666, 'h00505,
|
||||
'h61, 'h00606, 'h33333333, 'h00505,
|
||||
'h60, 'h00404, 'h66666611, 'h20403,
|
||||
'h59, 'h00404, 'h428F5C29, 'h20403,
|
||||
'h58, 'h00404, 'h1EB851EC, 'h20403,
|
||||
'h57, 'h20504, 'h1EB851EC, 'h00404,
|
||||
'h56, 'h00505, 'h147AE148, 'h20504,
|
||||
'h55, 'h00404, 'hCCCCCCCD, 'h00404,
|
||||
'h54, 'h00404, 'hA3D709E8, 'h00404,
|
||||
'h53, 'h00404, 'h7AE14758, 'h00404,
|
||||
'h52, 'h00404, 'h51EB851F, 'h00404,
|
||||
'h51, 'h00404, 'h28F5C239, 'h00404,
|
||||
'h50, 'h00404, 'h00000001, 'h00404,
|
||||
'h49, 'h00404, 'hD1EB851F, 'h20504,
|
||||
'h48, 'h00404, 'hA3D709E8, 'h20504,
|
||||
'h47, 'h00404, 'h75C28F06, 'h20504,
|
||||
'h46, 'h00404, 'h47AE147B, 'h20504,
|
||||
'h45, 'h00404, 'h1999999A, 'h20504
|
||||
};
|
||||
|
||||
reg [5:0] pos = 0;
|
||||
@@ -339,7 +365,7 @@ always @(posedge CLK_50M) begin
|
||||
// N
|
||||
3: begin
|
||||
mgmt_address <= 3;
|
||||
mgmt_writedata <= 'h10000;
|
||||
mgmt_writedata <= 'h10000; //N-counter is bypassed
|
||||
mgmt_write <= 1;
|
||||
end
|
||||
|
||||
@@ -418,7 +444,7 @@ always @(posedge CLK_50M) begin
|
||||
pos <= pos - 1'd1;
|
||||
auto <= 0;
|
||||
end
|
||||
if((ps2_key[7:0] == 'h72 || (~old_joy[2] && joystick_0[2])) && pos < 37) begin
|
||||
if((ps2_key[7:0] == 'h72 || (~old_joy[2] && joystick_0[2])) && pos < 63) begin
|
||||
recfg <= 1;
|
||||
pos <= pos + 1'd1;
|
||||
auto <= 0;
|
||||
@@ -439,7 +465,7 @@ always @(posedge CLK_50M) begin
|
||||
end
|
||||
end
|
||||
|
||||
if(auto && (failcount && passcount) && !recfg && pos < 37) begin
|
||||
if(auto && (failcount && passcount) && !recfg && pos < 63) begin
|
||||
recfg <= 1;
|
||||
pos <= pos + 1'd1;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user