Skip to content

Commit

Permalink
Proper don't care comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Jan 4, 2024
1 parent 1d4af0b commit 9cd4a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Fault/Simulation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ enum Simulator {
for (i = 0; i< \(outputLength);i = i + 1) begin
\(tdi) = 0;
__scanInSerial__[i] = __tdo_pad_out__;
if (__scanInSerial__[i] !== __goldenOutput__[i]) begin
if (__scanInSerial__[i] !=? __goldenOutput__[i]) begin
$display("@%0d:\\t\\tExpected %0b, Got %0b", i, __goldenOutput__[i], __scanInSerial__[i]);
__error__ = __error__ + 1;
end
Expand All @@ -808,7 +808,7 @@ enum Simulator {
\(tms) = 0; // run-test-idle
#(`CLOCK_PERIOD) ;
if(__scanInSerial__ !== __goldenOutput__) begin
if(__scanInSerial__ !=? __goldenOutput__) begin
$display("Test vector simulation failed: %0d bits mismatched", __error__);
$display("Expected:\\t%0b", __goldenOutput__);
$display("Got:\\t\\t%0b", __scanInSerial__);
Expand Down

0 comments on commit 9cd4a4e

Please sign in to comment.