5050pwm_pt_vhd.tcl
来自「FPGA 实现基于ISA接口的3路编码器计数」· TCL 代码 · 共 116 行
TCL
116 行
## Copyright (C) 1991-2006 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 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.
## VENDOR "Altera"
## PROGRAM "Quartus II"
## VERSION "Version 6.0 Build 178 04/27/2006 SJ Full Version"
## DATE "07/07/2008 15:30:26"
##
## Device: Altera EP1C6Q240C8 Package PQFP240
##
##
## This Tcl script should be used for PrimeTime (VHDL) only
##
## This file can be sourced in primetime
set report_default_significant_digits 3
set hierarchy_separator .
set quartus_root "c:/altera/quartus60/"
set search_path [list . [format "%s%s" $quartus_root "eda/synopsys/primetime/lib"] ]
set link_path [list * cyclone_asynch_io_lib.db cyclone_asynch_lcell_lib.db cyclone_core_mem_lib.db cyclone_lcell_register_lib.db cyclone_memory_register_lib.db cyclone_pll_lib.db alt_vtl.db]
read_vhdl -vhdl_compiler cyclone_all_pt.vhd
##########################
## DESIGN ENTRY SECTION ##
##########################
read_vhdl -vhdl_compiler 5050PWM.vho
current_design \5050PWM\
link
## Set variable timing_propagate_single_condition_min_slew to false only for versions 2004.06 and earlier
regexp {([1-9][0-9][0-9][0-9]\.[0-9][0-9])} $sh_product_version dummy version
if { [string compare "2004.06" $version ] != -1 } {
set timing_propagate_single_condition_min_slew false
}
set_operating_conditions -analysis_type single
read_sdf 5050PWM_vhd.sdo
################################
## TIMING CONSTRAINTS SECTION ##
################################
## Start clock definition ##
create_clock -period 40.000 -waveform {0.000 20.000} [get_ports { clock } ] -name clock
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { WR } ] -name WR
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { addr[0] } ] -name addr[0]
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { addr[1] } ] -name addr[1]
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { RD } ] -name RD
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { addr[2] } ] -name addr[2]
# WARNING: The required clock period is not set. The default value (100 ns) is used.
create_clock -period 100.000 -waveform {0.000 50.000} [get_ports { addr[3] } ] -name addr[3]
create_clock -period 10.000 -waveform {-1.885 3.115} -name PLL_2_clk0 [get_pins [list {\\inst2|altpll_component|_clk0~I\\.clk[0]} ]]
set_propagated_clock [all_clocks]
set_clock_groups -asynchronous \
-group {PLL_2_clk0 clock} \
-group {WR} \
-group {addr[0]} \
-group {addr[1]} \
-group {RD} \
-group {addr[2]} \
-group {addr[3]}
## End clock definition ##
## Start create collections ##
## End create collections ##
## Start global settings ##
## End global settings ##
## Start collection commands definition ##
## End collection commands definition ##
## Start individual pin commands definition ##
## End individual pin commands definition ##
## Start Output pin capacitance definition ##
# Warning: Using default load capacitance for LVTTL output port.
set_load -pin_load 10 [get_ports { PWMout EN PWMen LED2en PWMout1 PWMout0 D[0] D[3] D[6] D[5] D[1] D[7] D[4] D[2] } ]
## End Output pin capacitance definition ##
## Start clock uncertainty definition ##
## End clock uncertainty definition ##
## Start Multicycle and Cut Path definition ##
## End Multicycle and Cut Path definition ##
## Destroy Collections ##
update_timing
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?