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,综合时报错 |
![QQ图片20161031110318.png QQ图片20161031110318.png](http://www.openhw.org/module/forum/data/attachment/forum/201610/31/110718yjk2y96ygr91yyrj.png)