added files
This commit is contained in:
parent
90cf4ecc08
commit
e0e4278141
27
.gitignore
vendored
27
.gitignore
vendored
@ -105,3 +105,30 @@
|
||||
hw_handoff
|
||||
ipshared
|
||||
|
||||
# Временные папки Quartus
|
||||
db/
|
||||
incremental_db/
|
||||
greybox_tmp/
|
||||
hc_output/
|
||||
hps_isw_software/
|
||||
simulation/
|
||||
output_files/
|
||||
|
||||
# Промежуточные файлы
|
||||
*.bak
|
||||
*.orig
|
||||
*.rpt
|
||||
*.summary
|
||||
*.qws
|
||||
*.jdi
|
||||
*.pin
|
||||
*.done
|
||||
*.qdf
|
||||
*.sld
|
||||
|
||||
# Прошивки (если не нужны в репозитории)
|
||||
*.sof
|
||||
*.pof
|
||||
*.jic
|
||||
|
||||
|
||||
|
||||
10
.idea/.gitignore
generated
vendored
Normal file
10
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Ignored default folder with query files
|
||||
/queries/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
8
.idea/Quartus_blink.iml
generated
Normal file
8
.idea/Quartus_blink.iml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Quartus_blink.iml" filepath="$PROJECT_DIR$/.idea/Quartus_blink.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
23
blink.qarlog
Normal file
23
blink.qarlog
Normal file
@ -0,0 +1,23 @@
|
||||
Quartus II Archive log -- C:/altera/13.1/workflow/blink.qarlog
|
||||
|
||||
Archive: C:/altera/13.1/workflow/blink.qar
|
||||
Date: Tue Apr 28 17:50:03 2026
|
||||
Quartus II 64-Bit 13.1.0 Build 162 10/23/2013 SJ Web Edition
|
||||
|
||||
=========== Files Selected: ===========
|
||||
C:/altera/13.1/workflow/blink.qpf
|
||||
C:/altera/13.1/workflow/blink.qsf
|
||||
C:/altera/13.1/workflow/blink.sdc
|
||||
C:/altera/13.1/workflow/blink.v
|
||||
C:/altera/13.1/workflow/db/blink.cmp.hdb
|
||||
C:/altera/13.1/workflow/db/blink.db_info
|
||||
C:/altera/13.1/workflow/incremental_db/compiled_partitions/blink.db_info
|
||||
C:/altera/13.1/workflow/output_file.cof
|
||||
C:/altera/13.1/workflow/output_files/Chain1.cdf
|
||||
C:/altera/13.1/workflow/signalprobe_qsf.tcl
|
||||
C:/altera/13.1/workflow/tb_blink.v
|
||||
c:/altera/13.1/quartus/bin64/assignment_defaults.qdf
|
||||
======= Total: 12 files to archive =======
|
||||
|
||||
================ Status: ===============
|
||||
All files archived successfully.
|
||||
30
blink.qpf
Normal file
30
blink.qpf
Normal file
@ -0,0 +1,30 @@
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# 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.1.0 Build 162 10/23/2013 SJ Web Edition
|
||||
# Date created = 23:43:14 March 05, 2026
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
|
||||
QUARTUS_VERSION = "13.1"
|
||||
DATE = "23:43:14 March 05, 2026"
|
||||
|
||||
# Revisions
|
||||
|
||||
PROJECT_REVISION = "blink"
|
||||
64
blink.qsf
Normal file
64
blink.qsf
Normal file
@ -0,0 +1,64 @@
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# 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.1.0 Build 162 10/23/2013 SJ Web Edition
|
||||
# Date created = 23:43:14 March 05, 2026
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# 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 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 EP4CE6E22C8
|
||||
set_global_assignment -name TOP_LEVEL_ENTITY blink
|
||||
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 13.1
|
||||
set_global_assignment -name PROJECT_CREATION_TIME_DATE "23:43:14 MARCH 05, 2026"
|
||||
set_global_assignment -name LAST_QUARTUS_VERSION 13.1
|
||||
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 EDA_SIMULATION_TOOL "ModelSim-Altera (Verilog)"
|
||||
set_global_assignment -name EDA_OUTPUT_DATA_FORMAT "VERILOG HDL" -section_id eda_simulation
|
||||
set_global_assignment -name VERILOG_FILE blink.v
|
||||
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "2.5 V"
|
||||
set_location_assignment PIN_23 -to clk
|
||||
set_location_assignment PIN_87 -to led
|
||||
set_global_assignment -name SDC_FILE blink.sdc
|
||||
set_global_assignment -name CDF_FILE output_files/Chain1.cdf
|
||||
set_global_assignment -name VERILOG_FILE tb_blink.v
|
||||
set_global_assignment -name EDA_TIME_SCALE "1 ps" -section_id eda_simulation
|
||||
set_global_assignment -name POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW"
|
||||
set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)"
|
||||
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_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
|
||||
21
blink.v
Normal file
21
blink.v
Normal file
@ -0,0 +1,21 @@
|
||||
module blink(
|
||||
input clk,
|
||||
output reg led
|
||||
);
|
||||
|
||||
localparam MAX_COUNT = 50_000_000 - 1; // для 50 MHz → ~1 секунда
|
||||
|
||||
reg [26:0] cnt;// 2^26 = 67_108_864
|
||||
|
||||
always @(posedge clk)
|
||||
begin
|
||||
if(cnt >= MAX_COUNT)
|
||||
begin
|
||||
cnt <= 0;
|
||||
led <= ~led; // переключение LED
|
||||
end
|
||||
else
|
||||
cnt <= cnt + 1;
|
||||
end
|
||||
|
||||
endmodule
|
||||
0
blink_description.txt
Normal file
0
blink_description.txt
Normal file
22
output_file.cof
Normal file
22
output_file.cof
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
|
||||
<cof>
|
||||
<eprom_name>EPCS64</eprom_name>
|
||||
<flash_loader_device>EP4CE6</flash_loader_device>
|
||||
<output_filename>output_file.jic</output_filename>
|
||||
<n_pages>1</n_pages>
|
||||
<width>1</width>
|
||||
<mode>7</mode>
|
||||
<sof_data>
|
||||
<user_name>Page_0</user_name>
|
||||
<page_flags>1</page_flags>
|
||||
<bit0>
|
||||
<sof_filename>C:/altera/13.1/workflow/output_files/blink.sof</sof_filename>
|
||||
</bit0>
|
||||
</sof_data>
|
||||
<version>5</version>
|
||||
<create_cvp_file>0</create_cvp_file>
|
||||
<auto_create_rpd>0</auto_create_rpd>
|
||||
<options>
|
||||
<map_file>1</map_file>
|
||||
</options>
|
||||
</cof>
|
||||
11
output_file.map
Normal file
11
output_file.map
Normal file
@ -0,0 +1,11 @@
|
||||
BLOCK START ADDRESS END ADDRESS
|
||||
|
||||
Page_0 0x00000000 0x00059D8A
|
||||
|
||||
|
||||
|
||||
Notes:
|
||||
|
||||
- Data checksum for this conversion is 0x1A5EA7E1
|
||||
|
||||
- All the addresses in this file are byte addresses
|
||||
29
signalprobe_qsf.tcl
Normal file
29
signalprobe_qsf.tcl
Normal file
@ -0,0 +1,29 @@
|
||||
# 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.1.0 Build 162 10/23/2013 SJ Web Edition
|
||||
# File: signalprobe_qsf.tcl
|
||||
# Generated on: Mon Mar 09 21:03:20 2026
|
||||
|
||||
# Note: This file contains a Tcl script generated from the SignalProbe Gui.
|
||||
# You can use this script to restore SignalProbes after deleting the DB
|
||||
# folder; at the command line use "quartus_cdb -t signalprobe_qsf.tcl".
|
||||
|
||||
package require ::quartus::chip_planner
|
||||
package require ::quartus::project
|
||||
project_open blink -revision blink
|
||||
read_netlist
|
||||
set had_failure 0
|
||||
|
||||
44
tb_blink.v
Normal file
44
tb_blink.v
Normal file
@ -0,0 +1,44 @@
|
||||
`timescale 1ns/1ps
|
||||
|
||||
module tb_blink;
|
||||
|
||||
reg clk;
|
||||
wire led;
|
||||
|
||||
blink DUT(
|
||||
.clk(clk),
|
||||
.led(led)
|
||||
);
|
||||
|
||||
// Clock generator (50 MHz)
|
||||
always #10 clk = ~clk;
|
||||
|
||||
// Self checking logic
|
||||
integer error_count = 0;
|
||||
reg led_prev;
|
||||
|
||||
initial begin
|
||||
clk = 0;
|
||||
led_prev = 0;
|
||||
|
||||
#100000; // simulate time
|
||||
|
||||
if(error_count == 0)
|
||||
$display("SELF CHECK PASSED");
|
||||
else
|
||||
$display("SELF CHECK FAILED, errors = %d", error_count);
|
||||
|
||||
$stop;
|
||||
end
|
||||
|
||||
// Check LED toggle behavior
|
||||
always @(posedge clk)
|
||||
begin
|
||||
#1;
|
||||
if(led == led_prev)
|
||||
error_count = error_count + 1;
|
||||
|
||||
led_prev = led;
|
||||
end
|
||||
|
||||
endmodule
|
||||
Loading…
Reference in New Issue
Block a user