SDVD/design/segment_display/display_anode_driver.sv
Waylon Cude 3b30a32045
All checks were successful
ci/woodpecker/push/test-workflow Pipeline was successful
Moved 7 segment display logic to subdirectory
Also fixed up the one type I found in the seconds display
2025-05-19 15:48:05 -07:00

12 lines
331 B
Systemverilog

// NOTE: This expects to be driven with a 100khz clock
module display_anode_driver(input logic clk, input logic reset, output logic [7:0] AN);
// This is just a shift register that drives each anode individually
always_ff @(posedge clk) begin
if (reset)
AN <= 1;
else
AN <= {AN[6:0], AN[7]};
end
endmodule