diff options
author | rodri <rgl@antares-labs.eu> | 2021-06-05 12:01:24 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-06-05 12:01:24 +0000 |
commit | 633a02454fd60da2e5a89fcc8ce82cb31044e0ac (patch) | |
tree | e9dd0abfef45ddaefdff01bcd586ceff9819332b /src/blink2 | |
download | fpgatoys-master.tar.gz fpgatoys-master.tar.bz2 fpgatoys-master.zip |
Diffstat (limited to 'src/blink2')
-rw-r--r-- | src/blink2/blink.qsf | 56 | ||||
-rw-r--r-- | src/blink2/blink.v | 18 |
2 files changed, 74 insertions, 0 deletions
diff --git a/src/blink2/blink.qsf b/src/blink2/blink.qsf new file mode 100644 index 0000000..67eaa80 --- /dev/null +++ b/src/blink2/blink.qsf @@ -0,0 +1,56 @@ +# -------------------------------------------------------------------------- #
+#
+# Copyright (C) 2018 Intel Corporation. All rights reserved.
+# Your use of Intel Corporation's design tools, logic functions
+# and other software and tools, and its AMPP partner logic
+# functions, and any output files from any of the foregoing
+# (including device programming or simulation files), and any
+# associated documentation or information are expressly subject
+# to the terms and conditions of the Intel Program License
+# Subscription Agreement, the Intel Quartus Prime License Agreement,
+# the Intel FPGA IP License Agreement, or other applicable license
+# agreement, including, without limitation, that your use is for
+# the sole purpose of programming logic devices manufactured by
+# Intel and sold by Intel or its authorized distributors. Please
+# refer to the applicable agreement for further details.
+#
+# -------------------------------------------------------------------------- #
+#
+# Quartus Prime
+# Version 18.0.0 Build 614 04/24/2018 SJ Lite Edition
+# Date created = 10:56:13 July 08, 2018
+#
+# -------------------------------------------------------------------------- #
+#
+# Notes:
+#
+# 1) The default values for assignments are stored in the file:
+# blink_assignment_defaults.qdf
+# If this file doesn't exist, see file:
+# assignment_defaults.qdf
+#
+# 2) Altera recommends that you do not modify this file. This
+# file is updated automatically by the Quartus Prime software
+# and any changes you make may be lost or overwritten.
+#
+# -------------------------------------------------------------------------- #
+
+
+set_global_assignment -name FAMILY "Cyclone IV E"
+set_global_assignment -name DEVICE EP4CE6E22C8
+set_global_assignment -name TOP_LEVEL_ENTITY blink
+set_global_assignment -name ORIGINAL_QUARTUS_VERSION 18.0.0
+set_global_assignment -name PROJECT_CREATION_TIME_DATE "10:56:13 JULY 08, 2018"
+set_global_assignment -name LAST_QUARTUS_VERSION "18.0.0 Lite Edition"
+set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
+set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
+set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
+set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
+set_global_assignment -name NOMINAL_CORE_SUPPLY_VOLTAGE 1.2V
+set_global_assignment -name VERILOG_FILE blink.v
+set_location_assignment PIN_23 -to clk
+set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
+set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
+set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
+set_location_assignment PIN_84 -to led
+set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
\ No newline at end of file diff --git a/src/blink2/blink.v b/src/blink2/blink.v new file mode 100644 index 0000000..8f0d4b8 --- /dev/null +++ b/src/blink2/blink.v @@ -0,0 +1,18 @@ +module blink(
+ input wire clk,
+ output wire led
+);
+
+reg [31:0] cnt;
+
+initial begin
+ cnt <= 32'h00000000;
+end
+
+always @(posedge clk) begin
+ cnt <= cnt + 1;
+end
+
+assign led = cnt[26];
+
+endmodule
\ No newline at end of file |