|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
[img]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/0Z{U0VJ3K}1N]_MK0Q{RI[A.jpg[/img]
我这样写:
//通用写时序
`timescale 1ns/100ps
module Write_sq(clk,A_i,chsel_i,data_i,A,chsel,cs,IOW,data);
input clk;
input [2:0] A_i;
input chsel_i;
input [7:0] data_i;
output reg [2:0] A;
output reg chsel,cs,IOW;
output reg [7:0] data;
always@(posedge clk)
begin
A<=A_i;
#3 chsel<=chsel_i;
cs<=0;
#20 IOW<=0;
#10 data<=data_i;
#100 IOW<=1;
#5 cs<=1;
chsel<=~chsel;
#30 IOW<=1;
end
endmodule
在综合时实现警告:Delay is ignored for synthesis.
听说#10是不可综合的,请问怎样实现可综合的延时或者其他? |
|