Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Friedrich Beckmann
digitaltechnikpraktikum
Commits
e27b8e1b
Commit
e27b8e1b
authored
Mar 27, 2014
by
Friedrich Beckmann
Browse files
added scripted ledsw
parent
e7835729
Changes
3
Hide whitespace changes
Inline
Side-by-side
pnr/ledsw-manual/ledsw_pin_assignments.csv
0 → 100644
View file @
e27b8e1b
# Pin Assignment for ledsw
# Friedrich Beckmann, 27.3.2014
To,Location
SW[0],PIN_L22
SW[1],PIN_L21
SW[2],PIN_M22
SW[3],PIN_V12
SW[4],PIN_W12
SW[5],PIN_U12
SW[6],PIN_U11
SW[7],PIN_M2
SW[8],PIN_M1
SW[9],PIN_L2
LEDR[0],PIN_R20
LEDR[1],PIN_R19
LEDR[2],PIN_U19
LEDR[3],PIN_Y19
LEDR[4],PIN_T18
LEDR[5],PIN_V19
LEDR[6],PIN_Y18
LEDR[7],PIN_U18
LEDR[8],PIN_R18
LEDR[9],PIN_R17
pnr/ledsw-scripted/create_quartus_project_settings.tcl
0 → 100644
View file @
e27b8e1b
## ----------------------------------------------------------------------------
## Script : create_quartus_project_settings.tcl
## ----------------------------------------------------------------------------
## Author : Johann Faerber, F. Beckmann
## Company : University of Applied Sciences Augsburg
## ----------------------------------------------------------------------------
## Description: create a quartus project with default settings for device,
## unused pins, ...
## expects project name as command line parameter
## e.g.
## quartus_sh -t create_quartus_project_settings.tcl -projectname de1_mux2to1
## -family
"Cyclone II"
-device EP2C20F484C7
## ----------------------------------------------------------------------------
## Revisions : see end of file
## ----------------------------------------------------------------------------
#package require cmdline
# Load Quartus II Tcl Project package
package require ::quartus::project
# ----------------------------------------------------------------------------
# Verify required paramters
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Create project
# ----------------------------------------------------------------------------
project_new ledsw -overwrite
# ----------------------------------------------------------------------------
# Assign family, device, and top-level file
# ----------------------------------------------------------------------------
set_global_assignment -name FAMILY
"Cyclone II"
set_global_assignment -name DEVICE EP2C20F484C7
# ----------------------------------------------------------------------------
# Default settings
# ----------------------------------------------------------------------------
set_global_assignment -name USE_CONFIGURATION_DEVICE ON
set_global_assignment -name RESERVE_ALL_UNUSED_PINS
"AS INPUT TRI-STATED"
set_global_assignment -name VHDL_INPUT_VERSION VHDL_2008
# ----------------------------------------------------------------------------
# Design files
# ----------------------------------------------------------------------------
set_global_assignment -name VHDL_FILE ../../src/ledsw_rtl.vhd
# ----------------------------------------------------------------------------
# Pin Assignments
# ----------------------------------------------------------------------------
# set_location_assignment PIN_L1 -to CLOCK_50
set_location_assignment PIN_L22 -to SW
[
0
]
set_location_assignment PIN_L21 -to SW
[
1
]
set_location_assignment PIN_M22 -to SW
[
2
]
set_location_assignment PIN_V12 -to SW
[
3
]
set_location_assignment PIN_W12 -to SW
[
4
]
set_location_assignment PIN_U12 -to SW
[
5
]
set_location_assignment PIN_U11 -to SW
[
6
]
set_location_assignment PIN_M2 -to SW
[
7
]
set_location_assignment PIN_M1 -to SW
[
8
]
set_location_assignment PIN_L2 -to SW
[
9
]
set_location_assignment PIN_R20 -to LEDR
[
0
]
set_location_assignment PIN_R19 -to LEDR
[
1
]
set_location_assignment PIN_U19 -to LEDR
[
2
]
set_location_assignment PIN_Y19 -to LEDR
[
3
]
set_location_assignment PIN_T18 -to LEDR
[
4
]
set_location_assignment PIN_V19 -to LEDR
[
5
]
set_location_assignment PIN_Y18 -to LEDR
[
6
]
set_location_assignment PIN_U18 -to LEDR
[
7
]
set_location_assignment PIN_R18 -to LEDR
[
8
]
set_location_assignment PIN_R17 -to LEDR
[
9
]
# ----------------------------------------------------------------------------
# Close project
# ----------------------------------------------------------------------------
project_close
## ----------------------------------------------------------------------------
## Revisions:
## ----------
## $Id:$
## ----------------------------------------------------------------------------
pnr/ledsw-scripted/quartus_project_flow.tcl
0 → 100644
View file @
e27b8e1b
## ----------------------------------------------------------------------------
## Script : quartus_project_flow.tcl
## ----------------------------------------------------------------------------
## Author : Johann Faerber, F. Beckmann
## Company : University of Applied Sciences Augsburg
## ----------------------------------------------------------------------------
## Description: executes process steps in a quartus project
## depending on the parameter process
## expects project name as command line parameter
## e.g.
## quartus_sh -t quartus_project_flow.tcl -projectname de1_mux2to1
## -process compile
## ----------------------------------------------------------------------------
## Revisions : see end of file
## ----------------------------------------------------------------------------
# Load Quartus II Tcl Project package
package require ::quartus::project
# ----------------------------------------------------------------------------
# Open project
# ----------------------------------------------------------------------------
project_open ledsw
# ----------------------------------------------------------------------------
# Run specified design flow by parameter -process
# ----------------------------------------------------------------------------
load_package flow
execute_flow -compile
# ----------------------------------------------------------------------------
# Write Reports
# ----------------------------------------------------------------------------
load_package report
load_report first
write_report_panel -file flowsummary.log
"Flow Summary"
# ----------------------------------------------------------------------------
# Close project
# ----------------------------------------------------------------------------
project_close
## ----------------------------------------------------------------------------
## Revisions:
## ----------
## $Id:$
## ----------------------------------------------------------------------------
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment