added verilog support

This commit is contained in:
ParkerTenBroeck 2026-03-13 13:28:26 -04:00
parent 5746846896
commit c3a3e89082
20 changed files with 633 additions and 88 deletions

19
examples/example.v Normal file
View file

@ -0,0 +1,19 @@
// Do not modify the following module interface.
module circuit (
input wire clk, // 500 Hz, period 2 ms
input wire [31:0] btn,
input wire [31:0] sw,
output reg [31:0] led = 32'h00000000,
output wire [31:0] segv,
output wire [31:0] segs
);
reg [31:0] counter = 32'h00000000;
assign segv = 32'h00000000;
assign segs = 32'h00000000;
always @(posedge clk) begin
counter <= counter + 32'd1;
led <= counter ^ sw ^ btn;
end
endmodule