data/full_repos/permissive/493019833/test/testcase/firrtl/DspComplexExamplesTester/sbt/DspComplexExamplesTester.v
data/verilator_xmls/738de3be-4801-4c41-a910-d3f5ca3e0100.xml
module DspComplexExamplesTester(
  input   clock,
  input   reset
);
  wire [4:0] dut_io_inByJ_real;
  wire [4:0] dut_io_inByJ_imag;
  wire [4:0] dut_io_inByJShortcut_real;
  wire  _T_6 = ~reset;
  DspComplexExamples dut (
    .io_inByJ_real(dut_io_inByJ_real),
    .io_inByJ_imag(dut_io_inByJ_imag),
    .io_inByJShortcut_real(dut_io_inByJShortcut_real)
  );
  always @(posedge clock) begin
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~reset) begin
          $fwrite(32'h80000002,"inByJ.real: %d\n",dut_io_inByJ_real);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJ.imag: %d\n",dut_io_inByJ_imag);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJShortcut.real: %d\n",dut_io_inByJShortcut_real);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJShortcut.imag: %d\n",5'sh7);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_real) == 5'sh4 | reset)) begin
          $fwrite(32'h80000002,"Assertion failed\n    at DspComplexSpec.scala:39 assert(dut.io.inByJ.real === 4.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_real) == 5'sh4 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_imag) == 5'sh7 | reset)) begin
          $fwrite(32'h80000002,"Assertion failed\n    at DspComplexSpec.scala:40 assert(dut.io.inByJ.imag === 7.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_imag) == 5'sh7 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJShortcut_real) == 5'sh4 | reset)) begin
          $fwrite(32'h80000002,
            "Assertion failed\n    at DspComplexSpec.scala:42 assert(dut.io.inByJShortcut.real === 4.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJShortcut_real) == 5'sh4 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (_T_6) begin
          $finish;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
  end
endmodule
module DspComplexExamplesTester(
  input   clock,
  input   reset
);

  wire [4:0] dut_io_inByJ_real;
  wire [4:0] dut_io_inByJ_imag;
  wire [4:0] dut_io_inByJShortcut_real;
  wire  _T_6 = ~reset;
  DspComplexExamples dut (
    .io_inByJ_real(dut_io_inByJ_real),
    .io_inByJ_imag(dut_io_inByJ_imag),
    .io_inByJShortcut_real(dut_io_inByJShortcut_real)
  );
  always @(posedge clock) begin
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~reset) begin
          $fwrite(32'h80000002,"inByJ.real: %d\n",dut_io_inByJ_real);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJ.imag: %d\n",dut_io_inByJ_imag);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJShortcut.real: %d\n",dut_io_inByJShortcut_real);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (_T_6) begin
          $fwrite(32'h80000002,"inByJShortcut.imag: %d\n",5'sh7);
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_real) == 5'sh4 | reset)) begin
          $fwrite(32'h80000002,"Assertion failed\n    at DspComplexSpec.scala:39 assert(dut.io.inByJ.real === 4.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_real) == 5'sh4 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_imag) == 5'sh7 | reset)) begin
          $fwrite(32'h80000002,"Assertion failed\n    at DspComplexSpec.scala:40 assert(dut.io.inByJ.imag === 7.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJ_imag) == 5'sh7 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef PRINTF_COND
      if (`PRINTF_COND) begin
    `endif
        if (~($signed(dut_io_inByJShortcut_real) == 5'sh4 | reset)) begin
          $fwrite(32'h80000002,
            "Assertion failed\n    at DspComplexSpec.scala:42 assert(dut.io.inByJShortcut.real === 4.S)\n");
        end
    `ifdef PRINTF_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (~($signed(dut_io_inByJShortcut_real) == 5'sh4 | reset)) begin
          $fatal;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
    `ifndef SYNTHESIS
    `ifdef STOP_COND
      if (`STOP_COND) begin
    `endif
        if (_T_6) begin
          $finish;
        end
    `ifdef STOP_COND
      end
    `endif
    `endif
  end
endmodule