mirror of https://github.com/YosysHQ/picorv32.git
Adjust delay time
This commit is contained in:
parent
0af97a8a94
commit
d114963f0e
|
@ -204,7 +204,7 @@ module spimemio (
|
||||||
|
|
||||||
reg [3:0] state;
|
reg [3:0] state;
|
||||||
|
|
||||||
reg [9:0] wakeup_ctr;
|
reg [11:0] wakeup_ctr;
|
||||||
|
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
xfer_resetn <= 1;
|
xfer_resetn <= 1;
|
||||||
|
@ -270,8 +270,9 @@ module spimemio (
|
||||||
// SPI flash chips that support power-down typically require
|
// SPI flash chips that support power-down typically require
|
||||||
// some time to wake up before they can respond to commands
|
// some time to wake up before they can respond to commands
|
||||||
// (e.g. 3us For W25Q128JVSIM)
|
// (e.g. 3us For W25Q128JVSIM)
|
||||||
// This counter wastes 1024 clock cyles
|
// (e.g. 30us For MT25QL128ABA1ESE-0SIT)
|
||||||
// This is 102.4us at 10MHz, and 5.12us at 200MHz
|
// This counter wastes 2^12 clock cyles
|
||||||
|
// I.E. 41us at 100MHz, and 410us at 10MHz
|
||||||
// This range should cover all conceivable use cases
|
// This range should cover all conceivable use cases
|
||||||
if(&wakeup_ctr) begin
|
if(&wakeup_ctr) begin
|
||||||
state <= 5;
|
state <= 5;
|
||||||
|
|
Loading…
Reference in New Issue