3 @The skeleton was generated by VUTGenerator@
4 =======================================
5 module_name: vut_fulladder
6 ---------------------------------------
9 ---------------------------------------
10 Description: <description>
11 =======================================
14 module vut_fulladder();
32 reg [7:0] mem_a
[0:2003];
33 reg [7:0] mem_b
[0:2003];
34 reg [7:0] mem_result
[0:2003];
35 reg mem_overflow
[0:2003];
47 initial $display("|VUT INFO| > Load memories... ");
49 initial $readmemh("a.mem",mem_a
);
50 initial $readmemh("b.mem",mem_b
);
51 initial $readmemh("result.mem",mem_result
);
52 initial $readmemh("overflow.mem",mem_overflow
);
55 $dumpfile ("waveform.vcd");
57 $display("|VUT INFO| > Init Simulation.");
70 tmp_result
= mem_result
[k
];
71 tmp_overflow
= mem_overflow
[k
];
73 $display("|VUT OK| > All the signals are right-right!\n\n By Rodrigo Peixoto\n");
81 if (result
!== tmp_result
) begin
82 $display("|VUT FAIL|> Error in result value at time %0dns!!!",$time);
85 if (overflow
!== tmp_overflow
) begin
86 $display("|VUT FAIL|> Error in overflow value at time %0dns!!!",$time);