我用华清的程序(实战训练13 SDRAM读写控制的实现与Modelsim仿真),为什么一次写和读总是160*16 用的是mt48lc
control_interface:
if (LOAD_REG1 == 1)
begin
SC_CL <= SADDR[1:0]; // CAS Latency
SC_RC <= SADDR[3:2]; // RC delay
SC_RRD <= SADDR[7:4]; // RRD delay
SC_PM <= SADDR[8]; // Page Mode
SC_BL <= SADDR[12:9]; // Burst length
End
Sdram_top:
always @ (STATE or w_page or r_page )//STATE or w_page or r_page or r_ba or w_ba
case(STATE)
PRECHARGE: addr = 'h
LOAD_MR: addr = 'h37;
LOAD_R2: addr = 'h
LOAD_R1: addr = 'h
PAGE_WRITE: addr = {2'b0,w_page,8'b0000_1111};//PAGE_WRITE
PAGE_READ: addr = {2'b0,r_page,8'b0000_1111};//8'b0000_1111是列地址
BT_W: addr = {2'b0,12'b0,8'b0000_1111};
CLOSE_PAGE_W: addr = {2'b0,12'b0,8'b0000_1111};
CLOSE_PAGE_R: addr = {2'b0,12'b0,8'b0000_1111};
BT: addr = {2'b0,12'b0,8'b0000_1111};
default: addr = 'h0;
谢谢