- UID
- 811003
|
程序入下:
always @ (posedge clk or negedge rst_n)
begin
if(!rst_n)
for(i=0;i<=FIR_TAP-1;i=i+1)
shift_buf<=13'b0000_0000_00000;
else
if(count[2]==1'b1)
begin
for(j=0;j<FIR_TAP-1;j=j+1)
shift_buf[j+1]<=shift_buf[j];
shift_buf[0]<={fir_in_reg[IDATA_WIDTH-1],fir_in_reg};
end
end
给出的报错是:always construct error:more than one register in the event control of an always constuct is not used in the rest of the always construct
我翻了几本书都找不出关键所在,求大侠给指点一下~~~ |
|