- 1
- 2
- 3
- 4
- 5
Cyclone2 FPGA读写FLASH SST39VF1601 实验Verilog逻辑源码Quar
资料介绍
Cyclone2 FPGA读写FLASH SST39VF1601 实验Verilog逻辑源码Quartus工程文件
module FLASH_TEST (
//input
input sys_clk , //system clock;
input sys_rst_n , //system reset, low is active;
//output
inout [15:0] FLASH_DQ ,
output reg [20:0] FLASH_ADDR ,
output reg FLASH_CE ,
output reg FLASH_OE ,
output reg FLASH_WE ,
output reg FLASH_RST ,
output reg [ 7:0] LED
);
//Reg define
reg [3:0] div_cnt ;
reg flash_clk ;
reg [31:0] wait_cnt ;
reg [5:0] ctrl_cnt ;
reg [15:0] flash_data_lck ;
reg [15:0] flash_din ;
//Wire define
//************************************************************************************
//** Main Program
//**
//************************************************************************************
// counter used for div osc clk to flash ctrl clk 50M/16 , one flash ctrl clk cycle is 330ns
always @(posedge sys_clk or negedge sys_rst_n) begin
if (sys_rst_n ==1'b0)
div_cnt <= 4'b0;
else
div_cnt <= div_cnt + 4'b1;
end
//gen flash_clk
always @(posedge sys_clk or negedge sys_rst_n) begin
if (sys_rst_n ==1'b0)
flash_clk <= 1'b0 ;
else if ( div_cnt <= 4'd7 )
flash_clk <= 1'b1 ;
else
flash_clk <= 1'b0 ;
end
// flash ctrl signal gen
// read FLASH devid need 5 step :
// ctrl_cnt 10 - 13 is write oxaa in addr 0x5555
// ctrl_cnt 14 - 17 is write ox55 in addr 0x2aaa
// ctrl_cnt 18 - 21 is write ox90 in addr 0x5555
// ctrl_cnt 22 -30 is wait time for TIDA
// ctrl_cnt 31 -34 is read manId in addr 0
// ctrl_cnt 35 -38 is read devid in addr
部分文件列表
文件名 | 大小 |
FLASH/ | |
FLASH/FLASH_TEST.asm.rpt | 8KB |
FLASH/FLASH_TEST.cdf | |
FLASH/FLASH_TEST.done | |
FLASH/FLASH_TEST.fit.rpt | |
FLASH/FLASH_TEST.fit.smsg | 1KB |
FLASH/FLASH_TEST.fit.summary | 1KB |
FLASH/FLASH_TEST.flow.rpt | |
FLASH/FLASH_TEST.jdi | 4KB |
FLASH/FLASH_TEST.map.rpt | |
FLASH/FLASH_TEST.map.summary | |
... |
最新上传
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic下载 打赏310.00元 3天前
用户:w178191520
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏310.00元 3天前
用户:gsy幸运
-
21ic下载 打赏210.00元 3天前
用户:zhengdai
-
21ic下载 打赏210.00元 3天前
用户:jh0355
-
21ic下载 打赏210.00元 3天前
用户:jh03551
-
21ic下载 打赏210.00元 3天前
用户:xzxbybd
-
21ic下载 打赏70.00元 3天前
用户:铁蛋锅
-
21ic下载 打赏60.00元 3天前
用户:sun2152
-
21ic下载 打赏60.00元 3天前
用户:xuzhen1
-
21ic下载 打赏60.00元 3天前
用户:liqiang9090
-
21ic下载 打赏20.00元 3天前
用户:w1966891335
-
21ic下载 打赏30.00元 3天前
用户:玉落彼岸
-
21ic下载 打赏15.00元 3天前
用户:x15580286248
-
21ic下载 打赏15.00元 3天前
用户:kk1957135547
-
21ic下载 打赏15.00元 3天前
用户:w993263495
-
21ic下载 打赏30.00元 3天前
用户:SkyEagle88
-
21ic下载 打赏25.00元 3天前
用户:hp860629
-
21ic下载 打赏5.00元 3天前
用户:dong2223333
-
21ic下载 打赏10.00元 3天前
用户:dxb3320
-
21ic下载 打赏10.00元 3天前
用户:DXB193394
-
21ic下载 打赏10.00元 3天前
用户:westup
-
21ic小能手 打赏15.00元 3天前
-
21ic小能手 打赏20.00元 3天前
-
21ic小能手 打赏8.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
资料:高频功率放大器设计
-
21ic小能手 打赏5.00元 3天前
资料:基于PID的双轮平衡车
-
21ic小能手 打赏10.00元 3天前
-
21ic下载 打赏310.00元 3天前
用户:w178191520
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏310.00元 3天前
用户:zhengdai
-
21ic下载 打赏220.00元 3天前
用户:gsy幸运
-
21ic下载 打赏220.00元 3天前
用户:jh0355
全部评论(0)