first commit

This commit is contained in:
2025-11-24 21:44:39 -05:00
commit 1b017953ee
22 changed files with 240604 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
module Seven_segment_timing (
input clock,
input clock_en,
output reg [1:0] sel,
output reg [3:0] an
);
initial begin
sel = 0;
an = 0;
end
always @(posedge clock) begin
an <= ~(4'b0001 << sel);
if(clock_en)
sel <= sel + 1;
end
endmodule