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


Loading…
Cancel
Save