#include #include #include "Vthruwire.h" #include "verilated.h" int main(int argc, char **argv) { Verilated::commandArgs(argc, argv); Vthruwire *tb = new Vthruwire; for(int k=0; k<20; k++){ tb->i_sw = k&1; tb->eval(); printf("k = %2d, ", k); printf("sw = %d, ", tb->i_sw); printf("led = %d\n", tb->o_led); } }