-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblink_minimal.v
More file actions
29 lines (23 loc) · 891 Bytes
/
blink_minimal.v
File metadata and controls
29 lines (23 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ============================================================================
// BLINK MINIMAL — Simplest possible blink test
//
// Uses direct clock division with minimal logic
// If this doesn't work, the clock itself is the problem
// ============================================================================
`default_nettype none
module blink_minimal (
input wire clk, // 50 MHz on U22
output wire t23, // Right LED D6
output wire r23 // Left LED D5
);
// Very simple counters - no BUFG needed for such slow division
reg [23:0] fast_div = 24'd0;
reg [25:0] slow_div = 26'd0;
always @(posedge clk) begin
fast_div <= fast_div + 1'b1;
slow_div <= slow_div + 1'b1;
end
// Direct connection - no inversion
assign t23 = fast_div[23]; // ~3 Hz blink
assign r23 = slow_div[25]; // ~0.75 Hz blink
endmodule