Digital System Design
1. Draw the logic circuits based on the following Verilog codes:
1) always @ begin
y = a;
y = y | b;
y = y & c;
end
2) always @(posedge clk) begin
y = a | b;
q0 <= y;
end
2. module eq (input wire a, b, output reg eq):
always @* #20
eq = (~a & ~bla & b);
endmodule
1) Convert to the Verilog code with Task statements
2) Convert to the Verilog code with Function statements