`timescale 1ns / 1ps `default_nettype none module adder_tb(); parameter BUS_WIDTH = 8; parameter COUNT_EXPONENT = 3; //for 16 iputs logic [7:0] vals_in[7:0]; logic [10:0] sum_out; big_adder uut ( .vals_in(vals_in), .sum_out(sum_out)); //initial block...this is our test simulation initial begin $dumpfile("adder.vcd"); //file to store value change dump (vcd) $dumpvars(0,adder_tb); //store everything at the current level and below $display("Starting Sim"); //print nice message at start for (int i=0; i<8; i = i+1)begin vals_in[i] = i; end #10; $display("Sum of all values is %d!",sum_out); vals_in[0] = 10; $display("Adding ten more."); #10; $display("Sum of all values is %d!",sum_out); $display("Finishing Sim"); //print nice message at end $finish; end endmodule `default_nettype wire