⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testcop.ucf

📁 cop2000试验仪的模拟器
💻 UCF
字号:
############################################## 
#      BASIC UCF SYNTAX EXAMPLES V2.1.6      # 
############################################## 
#
# The "#" symbol is a comment character.   To use this sample file, find the
# specification necessary, remove the comment character (#) from the beginning 
# of the line, and modify the line (if necessary) to fit your design.
#
#              TIMING SPECIFICATIONS 
# 
# Timing specifications can be applied to the entire device (global) or to 
# specific groups in your design (called "time groups'). The time groups are 
# declared in two basic ways. 
# 
# Method 1: Based on a net name, where 'my_net' is a net that touches all the 
#           logic to be grouped in to 'logic_grp'. Example: 
#NET my_net TNM_NET = logic_grp ; 
# 
# Method 2: Group using the key word 'TIMEGRP' and declare using the names of 
#           logic in your design. Example: 
#TIMEGRP group_name = FFS ("U1/*"); 
#           creates a group called 'group_name' for all flip-flops within 
#           the hierarchical block called U1. Wildcards are valid. 
# 
# Grouping is very important because it lets you tell the software which parts 
# of a design run at which speeds.  For the majority of the designs with only 
# one clock, use simple global constraints. 
# 
# The type of grouping constraint you use can vary depending on the synthesis 
# tools you are using.  Foundation Express does better with Method 2. 
# 
# 
############################################################ 
# Internal to the device clock speed specifications - Tsys # 
############################################################ 
# 
# data      _________      /^^^^^\       _________   out 
# ----------| D   Q |-----{ LOGIC } -----| D   Q |------ 
#           |       |      \vvvvv/       |       | 
#        ---|> CLK  |                 ---|> CLK  | 
# clock  |  ---------                 |  --------- 
# ------------------------------------ 
# 
# --------------- 
# Single Clock 
# --------------- 
# 
# ---------------- 
# PERIOD TIME-SPEC 
# ---------------- 
# The PERIOD spec. covers all timing paths that start or end at a 
# register, latch, or synchronous RAM which are clocked by the reference 
# net (excluding pad destinations).  Also covered is the setup 
# requirement of the synchronous element relative to other elements 
# (ex. flip flops, pads, etc...). 
# NOTE:  The default unit for time is nanoseconds. 
# 
#NET clock PERIOD = 50ns ; 
# 
#       -OR- 
# 
# ------------------ 
# FROM:TO TIME-SPECs 
# ------------------ 
# FROM:TO style timespecs can be used to constrain paths between time 
# groups.  NOTE:  Keywords:  RAMS, FFS, PADS, and LATCHES are predefined 
# time groups used to specify all elements of each type in a design. 
#TIMEGRP RFFS = RISING FFS ("*");  // creates a rising group called RFFS 
#TIMEGRP FFFS = FALLING FFS ("*");  // creates a falling group called FFFS 
#TIMESPEC TSF2F  = FROM : FFS   : TO : FFS   : 50 ns; // Flip-flips with the same edge 
#TIMESPEC TSR2F  = FROM : RFFS  : TO : FFFS  : 25 ns; // rising edge to falling edge 
#TIMESPEC TSF2R  = FROM : FFFS  : TO : RFFS  : 25 ns; // falling edge to rising edge 
# 
# --------------- 
# Multiple Clocks 
# --------------- 
# Requires a combination of the 'Period' and 'FROM:TO' type time specifications 
#NET clock1 TNM_NET = clk1_grp ; 
#NET clock2 TNM_NET = clk2_grp ; 
# 
#TIMESPEC TS_clk1 = PERIOD : clk1_grp : 50 ; 
#TIMESPEC TS_clk2 = PERIOD : clk2_grp : 30 ; 
#TIMESPEC TS_ck1_2_ck2 = FROM : clk1_grp : TO : clk2_grp : 50 ; 
#TIMESPEC TS_ck2_2_ck1 = FROM : clk2_grp : TO : clk1_grp : 30 ; 
# 
# 
############################################################ 
# CLOCK TO OUT specifications - Tco                        # 
############################################################ 
# 
# from      _________      /^^^^^\       --------\ 
# ----------| D   Q |-----{ LOGIC } -----| Pad    > 
# PLD       |       |      \vvvvv/       --------/ 
#        ---|> CLK  | 
# clock  |  --------- 
# -------- 
# 
# ---------------- 
# OFFSET TIME-SPEC 
# ---------------- 
# To automatically include clock buffer/routing delay in your 
# clock-to-out timing specifications, use OFFSET constraints . 
# For an output where the maximum clock-to-out (Tco) is 25 ns: 
#
#NET out_net_name OFFSET = OUT 25 AFTER clock_net_name ; 
# 
#      -OR- 
# 
# ------------------ 
# FROM:TO TIME-SPECs 
# ------------------ 
#TIMESPEC TSF2P  = FROM : FFS   : TO : PADS  : 25 ns; 
# Note that FROM: FFS : TO: PADS constraints start the delay analysis 
# at the flip flop itself, and not the clock input pin.  The recommended 
# method to create a clock-to-out constraint is to use an OFFSET constraint.  
# 
# 
############################################################ 
# Pad to Flip-Flop speed specifications - Tsu              # 
############################################################ 
# 
# ------\         /^^^^^\       _________   into PLD 
# |pad   >-------{ LOGIC } -----| D   Q |------ 
# ------/         \vvvvv/       |       | 
#                            ---|> CLK  | 
# clock                      |  --------- 
# ---------------------------- 
# 
# ---------------- 
# OFFSET TIME-SPEC 
# ---------------- 
# To automatically account for clock delay in your input setup timing 
# specifications, use OFFSET constraints. 
# For an input where the maximum setup time is 25 ns: 
#NET in_net_name OFFSET = IN 25 BEFORE clock_net_name ; 
# 
#      -OR- 
# 
# ------------------ 
# FROM:TO TIME-SPECs 
# ------------------ 
#TIMESPEC TSP2F  = FROM : PADS  : TO : FFS   : 25 ns; 
# Note that FROM: PADS : TO: FFS constraints do not take into account any 
# delay for the clock path.  The recommended method to create an input 
# setup time constraint is to use an OFFSET constraint. 
# 
# 
############################################################ 
# Pad to Pad speed specifications - Tpd                    # 
############################################################ 
# 
# ------\         /^^^^^\       -------\ 
# |pad   >-------{ LOGIC } -----| pad   > 
# ------/         \vvvvv/       -------/ 
# 
# ------------------ 
# FROM:TO TIME-SPECs 
# ------------------ 
#TIMESPEC TSP2P  = FROM : PADS  : TO : PADS  : 125 ns; 
# 
# 
############################################################ 
# Other timing specifications                              # 
############################################################ 
# 
# ------------- 
# TIMING IGNORE 
# ------------- 
# If you can ignore timing of paths, use Timing Ignore (TIG). NOTE: The 
# "*" character is a wild card, which can be used for bus names.  A "?" 
# character can be used to wild-card one character. 
# Ignore timing of net reset_n: 
#NET : reset_n : TIG ; 
# 
# Ignore data_reg(7:0) net in instance mux_mem: 
#NET : mux_mem/data_reg* : TIG ; 
# 
# Ignore data_reg(7:0) net in instance mux_mem as related to a TIMESPEC 
# named TS01 only: 
#NET : mux_mem/data_reg* : TIG = TS01 ; 
# 
# Ignore data1_sig and data2_sig nets: 
#NET : data?_sig : TIG ; 
# 
# --------------- 
# PATH EXCEPTIONS 
# --------------- 
# If your design has outputs that can be slower than others, you can 
# create specific timespecs similar to this example for output nets 
# named out_data(7:0) and irq_n: 
#TIMEGRP slow_outs = PADS(out_data* : irq_n) ; 
#TIMEGRP fast_outs = PADS : EXCEPT : slow_outs ; 
#TIMESPEC TS08 = FROM : FFS : TO : fast_outs : 22 ; 
#TIMESPEC TS09 = FROM : FFS : TO : slow_outs : 75 ; 
# 
# If you have multi-cycle FF to FF paths, you can create a time group 
# using either the TIMEGRP or TNM statements. 
# 
# WARNING:  Many VHDL/Verilog synthesizers do not predictably name flip 
# flop Q output nets.  Most synthesizers do assign predictable instance 
# names to flip flops, however. 
# 
# TIMEGRP example: 
#TIMEGRP slowffs = FFS(inst_path/ff_q_output_net1* : 
#inst_path/ff_q_output_net2*); 
# 
# TNM attached to instance example: 
#INST inst_path/ff_instance_name1_reg* TNM = slowffs ; 
#INST inst_path/ff_instance_name2_reg* TNM = slowffs ; 
# 
# If a FF clock-enable is used on all flip flops of a multi-cycle path, 
# you can attach TNM to the clock enable net.  NOTE:  TNM attached to a 
# net "forward traces" to any FF, LATCH, RAM, or PAD attached to the 
# net. 
#NET ff_clock_enable_net TNM = slowffs ; 
# 
# Example of using "slowffs" timegroup, in a FROM:TO timespec, with 
# either of the three timegroup methods shown above: 
#TIMESPEC TS10 = FROM : slowffs : TO : FFS : 100 ; 
# 
# Constrain the skew or delay associate with a net. 
#NET any_net_name MAXSKEW = 7 ; 
#NET any_net_name MAXDELAY = 20 ns; 
# 
# 
# Constraint priority in your .ucf file is as follows: 
# 
#    highest 1.  Timing Ignore (TIG) 
#            2.  FROM : THRU : TO specs 
#            3.  FROM : TO specs 
#    lowest  4.  PERIOD specs 
# 
# See the on-line "Library Reference Guide" document for 
# additional timespec features and more information. 
# 
# 
############################################################ 
#                                                                                                                    # 
#         LOCATION and ATTRIBUTE SPECIFICATIONS            # 
#                                                                                                                    # 
############################################################ 
# Pin and CLB location locking constraints                 # 
############################################################ 
# 
# ----------------------- 
# Assign an IO pin number 
# ----------------------- 
#INST io_buf_instance_name  LOC = P110 ; 
#NET io_net_name  LOC = P111 ; 
# 
# ----------------------- 
# Assign a signal to a range of I/O pins 
# ----------------------- 
#NET "signal_name" LOC=P32, P33, P34; 
# 
# ----------------------- 
# Place a logic element(called a BEL) in a specific CLB location.  
# BEL = FF, LUT, RAM, etc... 
# ----------------------- 
#INST instance_path/BEL_inst_name  LOC = CLB_R17C36 ; 
# 
# ----------------------- 
# Place CLB in rectangular area from CLB R1C1 to CLB R5C7 
# ----------------------- 
#INST /U1/U2/reg<0> LOC=clb_r1c1:clb_r5c7; 
# 
# ----------------------- 
# Place hierarchical logic block in rectangular area from CLB R1C1 to CLB R5C7 
# ----------------------- 
#INST /U1* LOC=clb_r1c1:clb_r5c7; 
# 
# ----------------------- 
# Prohibit IO pin P26 or CLBR5C3 from being used: 
# ----------------------- 
#CONFIG PROHIBIT = P26 ; 
#CONFIG PROHIBIT = CLB_R5C3 ; 
# Config Prohibit is very important for forcing the software to not use critical 
# configuration pins like INIT or DOUT on the FPGA.  The Mode pins and JTAG 
# Pins require a special pad so they will not be available to this constraint 
# 
# ----------------------- 
# Assign an OBUF to be FAST or SLOW: 
# ----------------------- 
#INST obuf_instance_name FAST ; 
#INST obuf_instance_name SLOW ; 
# 
# ----------------------- 
# FPGAs only:  IOB input Flip-flop delay specification 
# ----------------------- 
# Declare an IOB input FF delay (default = MAXDELAY). 
# NOTE:  MEDDELAY/NODELAY can be attached to a CLB FF that is pushed 
# into an IOB by the "map -pr i" option. 
#INST input_ff_instance_name MEDDELAY ; 
#INST input_ff_instance_name NODELAY ; 
# 
# ----------------------- 
# Assign Global Clock Buffers Lower Left Right Side 
# ----------------------- 
# INST gbuf1 LOC=SSW 
# 
# #

NET "K0<0>" LOC=P103; 
NET "K0<1>" LOC=P102; 
NET "K0<2>" LOC=P101; 
NET "K0<3>" LOC=P100; 
NET "K0<4>" LOC=P97; 
NET "K0<5>" LOC=P96; 
NET "K0<6>" LOC=P95; 
NET "K0<7>" LOC=P94; 

NET "K1<0>" LOC=P87; 
NET "K1<1>" LOC=P86; 
NET "K1<2>" LOC=P85; 
NET "K1<3>" LOC=P84; 
NET "K1<4>" LOC=P82; 
NET "K1<5>" LOC=P81; 
NET "K1<6>" LOC=P80; 
NET "K1<7>" LOC=P79; 

NET "K2<0>" LOC=P73; 
NET "K2<1>" LOC=P72; 
NET "K2<2>" LOC=P71; 
NET "K2<3>" LOC=P70; 
NET "K2<4>" LOC=P66; 
NET "K2<5>" LOC=P65; 
NET "K2<6>" LOC=P64; 
NET "K2<7>" LOC=P63; 

NET "K3<0>" LOC=P47; 
NET "K3<1>" LOC=P48; 
NET "K3<2>" LOC=P49; 
NET "K3<3>" LOC=P50; 
NET "K3<4>" LOC=P53; 
NET "K3<5>" LOC=P54; 
NET "K3<6>" LOC=P55; 
NET "K3<7>" LOC=P56; 

NET "K4<0>" LOC=P41; 
NET "K4<1>" LOC=P40; 
NET "K4<2>" LOC=P39; 
NET "K4<3>" LOC=P38; 
NET "K4<4>" LOC=P36; 
NET "K4<5>" LOC=P35; 
NET "K4<6>" LOC=P34; 
NET "K4<7>" LOC=P33; 

NET "LED0<0>" LOC=P223; 
NET "LED0<1>" LOC=P222; 
NET "LED0<2>" LOC=P221; 
NET "LED0<3>" LOC=P220; 
NET "LED0<4>" LOC=P218; 
NET "LED0<5>" LOC=P217; 
NET "LED0<6>" LOC=P216; 
NET "LED0<7>" LOC=P215; 

NET "LED1<0>" LOC=P235; 
NET "LED1<1>" LOC=P234; 
NET "LED1<2>" LOC=P232; 
NET "LED1<3>" LOC=P231; 
NET "LED1<4>" LOC=P230; 
NET "LED1<5>" LOC=P229; 
NET "LED1<6>" LOC=P228; 
NET "LED1<7>" LOC=P224; 

NET "LED2<0>" LOC=P7; 
NET "LED2<1>" LOC=P6; 
NET "LED2<2>" LOC=P5; 
NET "LED2<3>" LOC=P4; 
NET "LED2<4>" LOC=P3; 
NET "LED2<5>" LOC=P238; 
NET "LED2<6>" LOC=P237; 
NET "LED2<7>" LOC=P236; 

NET "LED3<0>" LOC=P19; 
NET "LED3<1>" LOC=P18; 
NET "LED3<2>" LOC=P17; 
NET "LED3<3>" LOC=P13; 
NET "LED3<4>" LOC=P12; 
NET "LED3<5>" LOC=P11; 
NET "LED3<6>" LOC=P10; 
NET "LED3<7>" LOC=P9; 

NET "LED4<0>" LOC=P28; 
NET "LED4<1>" LOC=P27; 
NET "LED4<2>" LOC=P26; 
NET "LED4<3>" LOC=P25; 
NET "LED4<4>" LOC=P24; 
NET "LED4<5>" LOC=P23; 
NET "LED4<6>" LOC=P21; 
NET "LED4<7>" LOC=P20; 

NET "LED5<0>" LOC=P74; 
NET "LED5<1>" LOC=P68; 
NET "LED5<2>" LOC=P67; 
NET "LED5<3>" LOC=P57; 
NET "LED5<4>" LOC=P52; 
NET "LED5<5>" LOC=P46; 
NET "LED5<6>" LOC=P42; 
NET "LED5<7>" LOC=P31; 

NET "LED6<0>" LOC=P125; 
NET "LED6<1>" LOC=P124; 
NET "LED6<2>" LOC=P109; 
NET "LED6<3>" LOC=P108; 
NET "LED6<4>" LOC=P107; 
NET "LED6<5>" LOC=P99; 
NET "LED6<6>" LOC=P93; 
NET "LED6<7>" LOC=P78; 

NET "LED7<0>" LOC=P110; 
NET "LED7<1>" LOC=P111; 
NET "LED7<2>" LOC=P203; 
NET "LED7<3>" LOC=P185; 
NET "LED7<4>" LOC=P184; 
NET "LED7<5>" LOC=P178; 
NET "LED7<6>" LOC=P152; 
NET "LED7<7>" LOC=P147; 

NET "DL<0>" LOC=P156; 
NET "DL<1>" LOC=P155; 
NET "DL<2>" LOC=P154; 
NET "DL<3>" LOC=P153; 
NET "DL<4>" LOC=P149; 
NET "DL<5>" LOC=P168; 
NET "DL<6>" LOC=P169; 
NET "DL<7>" LOC=P170; 

NET "DH<0>" LOC=P202; 
NET "DH<1>" LOC=P201; 
NET "DH<2>" LOC=P200; 
NET "DH<3>" LOC=P199; 
NET "DH<4>" LOC=P195; 
NET "DH<5>" LOC=P194; 
NET "DH<6>" LOC=P193; 
NET "DH<7>" LOC=P192; 

NET "AL<0>" LOC=P163; 
NET "AL<1>" LOC=P162; 
NET "AL<2>" LOC=P161; 
NET "AL<3>" LOC=P160; 
NET "AL<4>" LOC=P159; 
NET "AL<5>" LOC=P173; 
NET "AL<6>" LOC=P174; 
NET "AL<7>" LOC=P175; 

NET "AH<0>" LOC=P176; 
NET "AH<1>" LOC=P177; 
NET "AH<2>" LOC=P209; 
NET "AH<3>" LOC=P208; 
NET "AH<4>" LOC=P207; 
NET "AH<5>" LOC=P206; 
NET "AH<6>" LOC=P205; 
NET "AH<7>" LOC=P187; 

NET "A16" LOC=P186;
NET "A17" LOC=P167;
NET "CS"  LOC=P157;
NET "WR"  LOC=P171;
NET "RD"  LOC=P188;
NET "BH"  LOC=P189;
NET "BL"  LOC=P191;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -