|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
本帖最后由 hongbutiao 于 2013-8-22 17:01 编辑
代码:
parameter linesize = 450;
integer i[0:63];
reg signed [15:0] SRAM [ramsize-1:0];
always @(posedge(clka) or posedge(rst))
begin
if (rst) begin
for(i[0]=linesize*2;i[0]<linesize*3;i[0]=i[0]+1)
SRAM[i[0]] = 16'd0;
end
end
问题如下:
ERROR:Xst:885 : For statement is only supported with a signal assignment to a constant in the initialization part.
ERROR:Xst:888 : For statement is only supported when the new step evaluation is an assignment to the signal used in the initialization part.
ERROR:Xst:850 : Unsupported construct.
ERROR:Xst:891 : For Statement is only supported when the new step evaluation is constant increment or decrement of the loop variable.
ERROR:Xst:872 : Unsupported target.
ERROR:Xst:850 : Unsupported construct.
求大神指点!!! |
|