I need to build a waveform from the following code:
module HW7P1 (A1, A0, B1, B0, O);
input A1, A0, B1, B0;
output O;
assign O = (!A1 & B1) | (!A1 & !A0 & B0) | (!A0 & B1 & B0);
endmodule
module counter (clr, clk, OC);
input clr, clk;
output reg [3:0] OC;
initial begin
OC = 0;
end
always @(posedge clk) begin
if (clr == 0)
OC = 0;
else
OC = OC + 1;
end
endmodule
module test_bench ();
wire HW7P1A1, HW7P1A0, HW7P1B1, HW7P1B0, HW7P1O;
wire clr, clk;
wire [3:0] counterO;
reg osc;
initial begin
osc = 0;
end
always begin
#10 osc = ~osc;
end
assign clr=1;
assign clk=osc;
counter C1(clr, clk, counterO);
assign HW7P1A1 = counterO[3];
assign HW7P1A0 = counterO[2];
assign HW7P1B1 = counterO[1];
assign HW7P1B0 = counterO[0];
HW7P1 P1(HW7P1A1, HW7P1A0, HW7P1B1, HW7P1B0, HW7P1O);
endmodule
I'd like to use EDA playground to do this since I don't have Verilog simulation software installed on my computer. However, when I select the "open EPWave after run" option, nothing seems to happen after I hit run. Can someone please tell me what I'm doing wrong?