mirror of
https://github.com/WangXuan95/FPGA-SDcard-Reader.git
synced 2025-01-13 20:02:53 +08:00
update comment
This commit is contained in:
parent
91f20a1b17
commit
d271ffb1af
@ -10,15 +10,15 @@
|
||||
//--------------------------------------------------------------------------------------------------------
|
||||
|
||||
module sd_file_reader #(
|
||||
parameter FILE_NAME_LEN = 11 , // length of FILE_NAME (in bytes). Since the length of "example.txt" is 11, so here is 11.
|
||||
parameter [52*8-1:0] FILE_NAME = "example.txt", // file name to read, ignore Upper and Lower Case
|
||||
// For example, if you want to read a file named "HeLLo123.txt", this parameter can be "hello123.TXT", "HELLO123.txt" or "HEllo123.Txt"
|
||||
parameter [2:0] CLK_DIV = 3'd2, // when clk = 0~ 25MHz , set CLK_DIV = 3'd1,
|
||||
// when clk = 25~ 50MHz , set CLK_DIV = 3'd2,
|
||||
// when clk = 50~100MHz , set CLK_DIV = 3'd3,
|
||||
// when clk = 100~200MHz , set CLK_DIV = 3'd4,
|
||||
// ......
|
||||
parameter SIMULATE = 0
|
||||
parameter FILE_NAME_LEN = 11 , // length of FILE_NAME (in bytes). Since the length of "example.txt" is 11, so here is 11.
|
||||
parameter [52*8-1:0] FILE_NAME = "example.txt", // file name to read, ignore upper and lower case
|
||||
// For example, if you want to read a file named "HeLLo123.txt", this parameter can be "hello123.TXT", "HELLO123.txt" or "HEllo123.Txt"
|
||||
parameter [2:0] CLK_DIV = 3'd2, // when clk = 0~ 25MHz , set CLK_DIV = 3'd1,
|
||||
// when clk = 25~ 50MHz , set CLK_DIV = 3'd2,
|
||||
// when clk = 50~100MHz , set CLK_DIV = 3'd3,
|
||||
// when clk = 100~200MHz , set CLK_DIV = 3'd4,
|
||||
// ......
|
||||
parameter SIMULATE = 0 // 0:normal use. 1:only for simulation
|
||||
) (
|
||||
// rstn active-low, 1:working, 0:reset
|
||||
input wire rstn,
|
||||
|
Loading…
x
Reference in New Issue
Block a user