// -*- mode: C++; c-file-style: "cc-mode" -*- // // DESCRIPTION: Verilator: Verilog Test module // // This file ONLY is placed into the Public Domain, for any use, // without warranty, 2006 by Wilson Snyder. #include #include #include "Vt_multitop_sig.h" // Use cout to avoid issues with %d/%lx etc #define CHECK_RESULT(got, exp) \ if ((got) != (exp)) { \ std::cout<a__02Ein = 0; topp->b__02Ein = 0; topp->uniq_in = 0; topp->eval(); CHECK_RESULT(topp->a__02Eout, 1); CHECK_RESULT(topp->b__02Eout, 0); CHECK_RESULT(topp->uniq_out, 1); topp->a__02Ein = 1; topp->b__02Ein = 1; topp->uniq_in = 1; topp->eval(); CHECK_RESULT(topp->a__02Eout, 0); CHECK_RESULT(topp->b__02Eout, 1); CHECK_RESULT(topp->uniq_out, 0); } printf("*-* All Finished *-*\n"); }