-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblink_fix.v
More file actions
24 lines (18 loc) · 998 Bytes
/
blink_fix.v
File metadata and controls
24 lines (18 loc) · 998 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
`default_nettype none
// ═══════════════════════════════════════════════════════════════════════════════
// SINGULARITY V100 — FIXED BLINK (no INV cells)
// ═══════════════════════════════════════════════════════════════════════════════
// Simple chaotic blink to verify LED is working
// φ² + 1/φ² = 3
module blink_fix (
input wire clk,
output wire led
);
// 24-bit counter for chaotic blink pattern
reg [23:0] counter;
always @(posedge clk) begin
counter <= counter + 1'b1;
end
// Chaotic LED: XOR of multiple counter bits
assign led = counter[23] ^ counter[19] ^ counter[15] ^ counter[11] ^ counter[7] ^ counter[3];
endmodule