aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/regressions/issue0145/top.v
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/regressions/issue0145/top.v')
-rw-r--r--ice40/regressions/issue0145/top.v29
1 files changed, 29 insertions, 0 deletions
diff --git a/ice40/regressions/issue0145/top.v b/ice40/regressions/issue0145/top.v
new file mode 100644
index 0000000..6a09a53
--- /dev/null
+++ b/ice40/regressions/issue0145/top.v
@@ -0,0 +1,29 @@
+module top (
+ input CLK_OSC100,
+ output LED1
+);
+
+wire clk;
+
+(* BEL="X16/Y33/pll_3" *)
+SB_PLL40_PAD #(
+ .FEEDBACK_PATH("SIMPLE"),
+ .DIVR(4'b0100),
+ .DIVF(7'b0101111),
+ .DIVQ(3'b101),
+ .FILTER_RANGE(3'b010)
+) pll (
+ .RESETB(1'b1),
+ .BYPASS(1'b0),
+ .PACKAGEPIN(CLK_OSC100),
+ .PLLOUTCORE(clk)
+);
+
+reg [24:0] count;
+assign LED1 = count[24];
+
+always @(posedge clk) begin
+ count <= count + 1;
+end
+
+endmodule