Browse Source

change in error message

master
T. Meissner 12 years ago
parent
commit
fd799eeed1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      des/sim/verilog/tb_des.v

+ 2
- 1
des/sim/verilog/tb_des.v View File

@ -98,6 +98,7 @@ module tb_des;
begin
@(posedge clk)
// detected an error -> print error message
// increent error counter
if (dataout != data_output[outdex]) begin
$display ("error, output was %h - should have been %h", dataout, data_output[outdex]);
errors = errors + 1;
@ -106,7 +107,7 @@ module tb_des;
// simulation finished -> print messages and if an error was detected
$display ("#############");
if (errors) begin
$display ("test finished, there were %0d errors detected :(", errors);
$display ("test finished, %0d errors detected :(", errors);
end else begin
$display ("test finished, no errors detected :)");
end


Loading…
Cancel
Save