Xilinx UCF File

Syntax highlighting, code folding, brace matching, code indenting, and function list

Xilinx UCF File

Postby chico_laranja » Wed Nov 14, 2007 3:50 pm

Hi.

I'm new to UE and I'm still in experiences with it.
I found great the wordfile stuff for highlight syntax but I don't find one highlight.
The highlight I was searching is for UCF Constraint file for Xilinx devices.
Does anyone have this file or know where can I search for it?

Thank's
User avatar
chico_laranja
Newbie
 
Posts: 2
Joined: Wed Nov 14, 2007 12:00 am

Re: Xilinx UCF File

Postby Mofi » Sun Nov 18, 2007 5:32 pm

There is none on this website. But it is not too difficult to create a syntax highlighting definition. The main problem is to get all keywords. I use normally the manual or help of the application which reads or writes a file to get all keywords.

I entered syntax highlighting ucf xilinx in Google and amongst others I found this page PSPad editor extension. On this page is a link to a zip archive which contains an INI file which I think contains the list of keywords you need.

With the UltraEdit help page about Syntax Highlighting, the Template for syntax highlighting language wordfile and my 3 ultimate syntax checking macros you should be able to create the UCF file by yourself. If you need further help, upload in a zip archive the wordfile you have already created and an example file and describe what is not working as you want. I will try to help you to fix that.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Xilinx UCF File

Postby chico_laranja » Mon Nov 19, 2007 11:16 am

Thank's Mofi for the help.

In my free times I will try to do what you say.
If I have any problem I will ask for help.

Chico @ Portugal
User avatar
chico_laranja
Newbie
 
Posts: 2
Joined: Wed Nov 14, 2007 12:00 am

Re: Xilinx UCF File

Postby vhdluser » Thu Mar 06, 2008 3:02 pm

Hi All,

For you short on time guys, this is the UCF highlighting that I use. It's based on the above PSPad posting.
There isn't much structure in UCF so, basically, this highlighting only groups keywords across different colours.
Code: Select all
/L18"UCF Files" Nocase Line Comment = # String Chars = " DisableMLS Block Comment On Alt = :! File Extensions = UCF
/Delimiters = #   ; ()*+,./:;<=>\
/Function String = "%:!^([~ ^t^p]+^)[ ^t]++$"
/C1"UCF Commands"
AREA_GROUP ASYNC_REG
BEL BLKNM BUFG
COLLAPSE COMPGRP CONFIG CONFIG_MODE COOL_CLK
DATA_GATE DCI_VALUE DISABLE DROP_SPEC
ENABLE
FEEDBACK FILE FLOAT FROM
HBLKNM HU_SET
IN INREG IOB IOBDELAY IOSTANDARD
KEEP KEEP_HIERARCHY KEEPER
LOC LOCATE LOCK_PIN
MAP MAXDELAY MAXPT MAXSKEW
NET NODELAY NOREDUCE
OFFSET OPEN_DREIN OPT_EFFORT OPTIMIZE OUT
PERIOD PIN PRIORITY PROHIBIT PWR_MODE
REG RLOC RLOC_ORIGIN RLOC_RANGE
SCHMITT_TRIGGER SLEW SYSTEM_JITTER
TEMPERETURE THRU TIG TIMEGRP TIMESPEC TNM TO TPSYNC TPTHRU
U_SET USE_RLOC USELOWSKEWLINES
VFEF VOLTAGE
WIREAND
XBLKNM
/C2"UCF Reserved"
AUTO
BOTH
CLK CLOSED
F FALSE FFG FFS FFY FORCE
G
IBUF IFD
NONE
OE OPEN
PADS
RECONFIG
SOFT SR
TRUE
XORF XORG
/C3"UCF Keyword"
COMPRESSION
DATAPATHONLY
GROUP
IMPLEMENT INST
MODE
PLACE
RANGE ROUTE
TNM_NET
/C4"Delimiters"
#
$
(
)
*
+
,
.
// /
:
;
<
=
>
\
/C5"UCF Modifiers"
AFTER
BEFORE
DRIVE
FALLING FAST
HIGH
NOT
PULLDOWN PULLUP
RISING
SLOW

Good luck,
vu
User avatar
vhdluser
Basic User
Basic User
 
Posts: 23
Joined: Tue Jan 30, 2007 12:00 am

Re: Xilinx UCF File

Postby unilizer » Mon Mar 10, 2008 4:13 am

Just tried it, works fine.
Thanks a lot to share it.

Greets
Pieter
User avatar
unilizer
Newbie
 
Posts: 1
Joined: Fri Feb 08, 2008 12:00 am


Return to Syntax Highlighting