From d27f19b99a155bc9a758776426e16c39dfec1ff4 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Thu, 1 May 2025 00:01:51 +0100 Subject: tidy up smh-ac415 --- .../examples/04_touch/touch/touch.qpf | 30 ----------- .../examples/04_touch/touch/touch.qsf | 59 --------------------- .../examples/04_touch/touch/touch.qws | Bin 1846 -> 0 bytes .../smh-ac415-fpga/examples/04_touch/touch/touch.v | 38 ------------- ...56\236\351\252\214\347\216\260\350\261\241.txt" | 2 - 5 files changed, 129 deletions(-) delete mode 100644 fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qpf delete mode 100644 fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qsf delete mode 100644 fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qws delete mode 100644 fpga/smh-ac415-fpga/examples/04_touch/touch/touch.v delete mode 100644 "fpga/smh-ac415-fpga/examples/04_touch/\345\256\236\351\252\214\347\216\260\350\261\241.txt" (limited to 'fpga/smh-ac415-fpga/examples/04_touch') diff --git a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qpf b/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qpf deleted file mode 100644 index 6a3b058..0000000 --- a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qpf +++ /dev/null @@ -1,30 +0,0 @@ -# -------------------------------------------------------------------------- # -# -# Copyright (C) 1991-2013 Altera Corporation -# Your use of Altera 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 Altera Program License -# Subscription Agreement, Altera MegaCore Function License -# Agreement, or other applicable license agreement, including, -# without limitation, that your use is for the sole purpose of -# programming logic devices manufactured by Altera and sold by -# Altera or its authorized distributors. Please refer to the -# applicable agreement for further details. -# -# -------------------------------------------------------------------------- # -# -# Quartus II 64-Bit -# Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Full Version -# Date created = 02:54:06 June 02, 2023 -# -# -------------------------------------------------------------------------- # - -QUARTUS_VERSION = "13.0" -DATE = "02:54:06 June 02, 2023" - -# Revisions - -PROJECT_REVISION = "touch" diff --git a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qsf b/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qsf deleted file mode 100644 index 9bfa3c8..0000000 --- a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qsf +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------- # -# -# Copyright (C) 1991-2013 Altera Corporation -# Your use of Altera 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 Altera Program License -# Subscription Agreement, Altera MegaCore Function License -# Agreement, or other applicable license agreement, including, -# without limitation, that your use is for the sole purpose of -# programming logic devices manufactured by Altera and sold by -# Altera or its authorized distributors. Please refer to the -# applicable agreement for further details. -# -# -------------------------------------------------------------------------- # -# -# Quartus II 64-Bit -# Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Full Version -# Date created = 02:54:06 June 02, 2023 -# -# -------------------------------------------------------------------------- # -# -# Notes: -# -# 1) The default values for assignments are stored in the file: -# touch_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 II software -# and any changes you make may be lost or overwritten. -# -# -------------------------------------------------------------------------- # - - -set_global_assignment -name FAMILY "Cyclone IV E" -set_global_assignment -name DEVICE EP4CE15F23C8 -set_global_assignment -name TOP_LEVEL_ENTITY touch -set_global_assignment -name ORIGINAL_QUARTUS_VERSION "13.0 SP1" -set_global_assignment -name PROJECT_CREATION_TIME_DATE "02:54:06 JUNE 02, 2023" -set_global_assignment -name LAST_QUARTUS_VERSION "13.0 SP1" -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 touch.v -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_global_assignment -name STRATIX_DEVICE_IO_STANDARD "2.5 V" -set_location_assignment PIN_AB16 -to led -set_location_assignment PIN_T22 -to sys_clk -set_location_assignment PIN_U20 -to sys_rst_n -set_location_assignment PIN_G9 -to touch_key -set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top \ No newline at end of file diff --git a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qws b/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qws deleted file mode 100644 index 7232112..0000000 Binary files a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.qws and /dev/null differ diff --git a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.v b/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.v deleted file mode 100644 index dcf9d12..0000000 --- a/fpga/smh-ac415-fpga/examples/04_touch/touch/touch.v +++ /dev/null @@ -1,38 +0,0 @@ -`timescale 1ns/1ns - -module touch -( - input wire sys_clk , - input wire sys_rst_n , - input wire touch_key , - - output reg led -); - -wire touch_en ; - -//reg define -reg touch_key_dly1 ; -reg touch_key_dly2 ; - -assign touch_en = touch_key_dly2 & (~touch_key_dly1); - -always@(posedge sys_clk or negedge sys_rst_n) - if(sys_rst_n == 1'b0) - begin - touch_key_dly1 <= 1'b0; - touch_key_dly2 <= 1'b0; - end - else - begin - touch_key_dly1 <= touch_key; - touch_key_dly2 <= touch_key_dly1; - end - -always@(posedge sys_clk or negedge sys_rst_n) - if(sys_rst_n == 1'b0) - led <= 1'b1; - else if(touch_en == 1'b1) - led <= ~led; - -endmodule diff --git "a/fpga/smh-ac415-fpga/examples/04_touch/\345\256\236\351\252\214\347\216\260\350\261\241.txt" "b/fpga/smh-ac415-fpga/examples/04_touch/\345\256\236\351\252\214\347\216\260\350\261\241.txt" deleted file mode 100644 index 41b7e47..0000000 --- "a/fpga/smh-ac415-fpga/examples/04_touch/\345\256\236\351\252\214\347\216\260\350\261\241.txt" +++ /dev/null @@ -1,2 +0,0 @@ -现象:点按触摸按键,可以开关led灯。 -测试:可以测试触摸按键是否正常。 \ No newline at end of file -- cgit v1.2.3