首页 > 代码库 > Verilog经典输入控制/激励信号模板1

Verilog经典输入控制/激励信号模板1

reg [3:0]i;            always @ ( posedge CLOCK or negedge RESET )            if( !RESET )                begin                    i <= 4d0;                    Start_Sig <= 1b0;                    WrData <= 8d0;                end                           else                   case( i )                                             0:                          if( Done_Sig ) begin Start_Sig <= 1b0; i <= i + 1b1; end                         else begin WrData <= 8d8; Start_Sig <= 1b1; end                                                  1:                         if( Done_Sig ) begin Start_Sig <= 1b0; i <= i + 1b1; end                         else begin WrData <= 8d9; Start_Sig <= 1b1; end                                                  2:                         if( Done_Sig ) begin Start_Sig <= 1b0; i <= i + 1b1; end                         else begin WrData <= 8d10; Start_Sig <= 1b1; end                                                  3:                         begin i <= i; end                                       endcase 

 

Verilog经典输入控制/激励信号模板1