endmodule To use the above module, you would instantiate it in your top-level Verilog file or in a testbench. Here’s a simple testbench example: