求大神解答一下unexpected token的问题
时间:10-02
整理:3721RD
点击:
localparam TB_IDLE = 4'b0010;
localparam TB_WRITE = 4'b0110;
localparam TB_READ = 4'b0111;
localparam TB_WAIT = 4'b0101;
........
TB_READ:
begin
burst_cnt <= BURST_LEN_div2 - 1;
if (app_af_not_afull_r)
begin
wr_addr_en <= 1'b1;
wr_data_en <= 1'b0;
// if finished with all 8 reads, proceed to next 8 writes
if (state_cnt == 4'd7)
begin
state <= TB_WRITE;
state_cnt <= 4'd0;
end
else
state_cnt <= state_cnt + 1;
end
else begin
state <= TB_WAIT;
end
TB_WAIT:
begin
if (app_af_not_afull_r)
if (app_wdf_not_afull_r && app_af_not_afull_r)
state <= TB_WRITE;
else
state <= TB_READ;
else
state <= TB_WAIT;
end
就状态机中加了一个状态TB_WAIT,综合时报错
localparam TB_WRITE = 4'b0110;
localparam TB_READ = 4'b0111;
localparam TB_WAIT = 4'b0101;
........
TB_READ:
begin
burst_cnt <= BURST_LEN_div2 - 1;
if (app_af_not_afull_r)
begin
wr_addr_en <= 1'b1;
wr_data_en <= 1'b0;
// if finished with all 8 reads, proceed to next 8 writes
if (state_cnt == 4'd7)
begin
state <= TB_WRITE;
state_cnt <= 4'd0;
end
else
state_cnt <= state_cnt + 1;
end
else begin
state <= TB_WAIT;
end
TB_WAIT:
begin
if (app_af_not_afull_r)
if (app_wdf_not_afull_r && app_af_not_afull_r)
state <= TB_WRITE;
else
state <= TB_READ;
else
state <= TB_WAIT;
end
就状态机中加了一个状态TB_WAIT,综合时报错
求解答
自己数数,你的begin end数目都对不上
谢谢解答!还真是少了个end太感谢了!