Debian Codegraph @

tests/ice40/regressions/issue0151/top.v

raw
1 module top (
2 input wire in_n,
3 output wire out
4 );
5
6 wire clk;
7
8 SB_GB_IO #(
9 .PIN_TYPE(6'b000000),
10 .IO_STANDARD("SB_LVDS_INPUT")
11 ) differential_clock_input (
12 .PACKAGE_PIN(in_n),
13 .GLOBAL_BUFFER_OUTPUT(clk)
14 );
15
16 assign out = cntr;
17 reg cntr = 1'd0;
18
19 always @(posedge clk) begin
20 cntr <= !cntr;
21 end
22
23 endmodule