yosys4gal/testcases/olmc_test.v
annoyatron255 8c695d0fb3
Cleanup
2024-04-04 12:02:51 -05:00

16 lines
262 B
Verilog

module olmc_test (clk, A, B, AND, NAND, REG_AND, REG_NAND);
input clk, A, B;
output AND, NAND;
output reg REG_AND, REG_NAND;
assign AND = A && B;
assign NAND = !(A && B);
always @ (posedge clk) begin
REG_AND <= A && B;
REG_NAND <= !(A && B);
end
endmodule