From 0806d1a134a6aec18bc2d50192023b8459a51754 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Mon, 4 Apr 2022 10:38:37 -0500 Subject: [PATCH] Updated the bootloader to use the flash card divider. This will allow wally to run at a faster speed than flash. --- pipelined/src/generic/flop/bram2p1r1w.sv | 11 ++++++----- tests/testsBP/fpga-test-sdc/copyFlash.c | 2 +- tests/testsBP/fpga-test-sdc/sdcDriver.c | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pipelined/src/generic/flop/bram2p1r1w.sv b/pipelined/src/generic/flop/bram2p1r1w.sv index 58038b8cc..c057de9aa 100644 --- a/pipelined/src/generic/flop/bram2p1r1w.sv +++ b/pipelined/src/generic/flop/bram2p1r1w.sv @@ -80,7 +80,7 @@ module bram2p1r1w initial begin if(PRELOAD_ENABLED) begin - RAM[0] = 64'h94e1819300002197; + RAM[0] = 64'h9581819300002197; RAM[1] = 64'h4281420141014081; RAM[2] = 64'h4481440143814301; RAM[3] = 64'h4681460145814501; @@ -104,7 +104,7 @@ module bram2p1r1w RAM[21] = 64'h0010029b01260613; RAM[22] = 64'h11010002806702fe; RAM[23] = 64'h84b2842ae426e822; - RAM[24] = 64'h892ee04aec064505; + RAM[24] = 64'h892ee04aec064511; RAM[25] = 64'h06e000ef07e000ef; RAM[26] = 64'h979334fd02905563; RAM[27] = 64'h07930177d4930204; @@ -120,9 +120,10 @@ module bram2p1r1w RAM[37] = 64'h05a1118737836749; RAM[38] = 64'hfed59be3fef5bc23; RAM[39] = 64'h1047278367498082; - RAM[40] = 64'h67c98082dfed8b85; - RAM[41] = 64'h0000808210a7a023; - end + RAM[40] = 64'h47858082dfed8b85; + RAM[41] = 64'h40a7853b4015551b; + RAM[42] = 64'h808210a7a02367c9; + end end // Port-A Operation diff --git a/tests/testsBP/fpga-test-sdc/copyFlash.c b/tests/testsBP/fpga-test-sdc/copyFlash.c index c5a6a4164..4165fe21c 100644 --- a/tests/testsBP/fpga-test-sdc/copyFlash.c +++ b/tests/testsBP/fpga-test-sdc/copyFlash.c @@ -27,7 +27,7 @@ void copyFlash(long int blockAddr, long int * Dst, int numBlocks) { - setSDCCLK(1); + setSDCCLK(4); // must be even, 1 gives no division. waitInitSDC(); int index; diff --git a/tests/testsBP/fpga-test-sdc/sdcDriver.c b/tests/testsBP/fpga-test-sdc/sdcDriver.c index 3c69b7d40..edbe0677d 100644 --- a/tests/testsBP/fpga-test-sdc/sdcDriver.c +++ b/tests/testsBP/fpga-test-sdc/sdcDriver.c @@ -62,6 +62,7 @@ volatile void waitInitSDC(){ } void setSDCCLK(int divider){ + divider = (1 - (divider >> 1)); volatile int * mailBoxCLK; mailBoxCLK = (int *) (SDC_MAIL_BOX + 0x0); *mailBoxCLK = divider;