Browse Source

wait for rising edge of reset before send stimuli data

master
T. Meissner 11 years ago
parent
commit
2a2aa23e21
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cbctdes/sim/verilog/tb_cbctdes.v

+ 2
- 1
cbctdes/sim/verilog/tb_cbctdes.v View File

@ -89,6 +89,7 @@ module tb_cbctdes;
initial initial
forever @(negedge reset) begin forever @(negedge reset) begin
index = 0; index = 0;
wait (reset);
while (index < 19) begin while (index < 19) begin
@(posedge clk) @(posedge clk)
if (ready) begin if (ready) begin
@ -131,7 +132,7 @@ module tb_cbctdes;
// checker process // checker process
always begin : checker always begin : checker
wait (reset)
wait (reset);
outdex = 0; outdex = 0;
// encryption tests // encryption tests


Loading…
Cancel
Save