VHDl format toolsI am ll 
Author Message
 VHDl format toolsI am ll

Dear Reader,

I am looking for some VHDL format tools:
1. A tool that converts all the reserved words in a text file into
capital
   letters, set the indentation to a predefined value, like two or three
   spaces, and breakes off long lines.
2. A tool that formats a VHDL textfile to a postscript printer, that is
print
   all the reserved words in a bold font and all the comment lines in an
   italic font.

Does anyone no a good, but relatively simple editot that has VHDL syntax
highlighting. I know EMACS can, but it is a very large programm.

With kindest regards,
Charles.
--
/-------------------------------------------- ```
---------------------------\
|Electrical Engineering                      (o o)       University of
Twente|
|----------------------------------------oOO--(_)--OOo-----------------------|
|                                                                            |
| C.E. Klaasen                          Department of Electrical
Engineering |
|                                       University of Twente
|
| Personal address:                     P.O. Box 217
|
| Campuslaan 27 - 311                   EL/TN building, room 9140
|
| 7522 NC  Enschede                     7500 AE  Enschede
|
| The Netherlands                       The Netherlands
|
|                                                                            |
| Home ->                               Work (mon - fri, 9 am - 5 pm) ->
|
| Phone: +31 53 489 5084                Phone: +31 53 489 2678



Sun, 26 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll

the CodeWrite editor has a vhdl context sensitive feature.  there is one
company called Sarlos Technology (spelling?) that sells this tool. sure
there are others.  you can do a search for "VHDL context sensitive editors"
on infoseek and get several hits.

good luck!



Mon, 27 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll

Hi,

Quote:

> Dear Reader,

> I am looking for some VHDL format tools:
> 1. A tool that converts all the reserved words in a text file into
> capital
>    letters, set the indentation to a predefined value, like two or three
>    spaces, and breakes off long lines.
> 2. A tool that formats a VHDL textfile to a postscript printer, that is
> print
>    all the reserved words in a bold font and all the comment lines in an
>    italic font.

Take a look at MVP:

--------------------
MVP ( Make VHDL Pretty ) is a free VHDL pretty printer using FLEX and C.
It can produce ascii or postscript. FLEX generated C code is included.
Contributed by Paul Elliott. The improved version mvp V1.1 (Martin Gumm)
is located at ftp://ftp.informatik.uni-stuttgart.de/pub/vhdl/mvp_v11.

An updated version of MVP (updated for USA A size paper and assoaciated
font bugs) can be found on http://vhdl.org/vi/vhdlsynth in
the "Other files:" area or via FTP at
ftp://vhdl.org/vi/vhdlsynth/mvp_v1_1_1.tar.gz.
--------------------

Bye,...
Edwin
--
-----------------------------------------------------------
Edwin Naroska
Computer Engineering Institute
(Lehrstuhl fuer Datenverarbeitungssysteme)
University of Dortmund
44221 Dortmund
Germany


phone: ++49 231 7552406
fax: ++49 231 7553251
-----------------------------------------------------------



Mon, 27 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll


Saros Technology.

Suzanne Southworth

: Dear Reader,

: I am looking for some VHDL format tools:
: 1. A tool that converts all the reserved words in a text file into
: capital
:    letters, set the indentation to a predefined value, like two or three
:    spaces, and breakes off long lines.
: 2. A tool that formats a VHDL textfile to a postscript printer, that is
: print
:    all the reserved words in a bold font and all the comment lines in an
:    italic font.

: Does anyone no a good, but relatively simple editot that has VHDL syntax
: highlighting. I know EMACS can, but it is a very large programm.

: With kindest regards,
: Charles.
: --
: /-------------------------------------------- ```
: ---------------------------\
: |Electrical Engineering                      (o o)       University of
: Twente|
: |----------------------------------------oOO--(_)--OOo-----------------------|
: |                                                                            |
: | C.E. Klaasen                          Department of Electrical
: Engineering |
: |                                       University of Twente
: |
: | Personal address:                     P.O. Box 217
: |
: | Campuslaan 27 - 311                   EL/TN building, room 9140
: |
: | 7522 NC  Enschede                     7500 AE  Enschede
: |
: | The Netherlands                       The Netherlands
: |
: |                                                                            |
: | Home ->                               Work (mon - fri, 9 am - 5 pm) ->
: |
: | Phone: +31 53 489 5084                Phone: +31 53 489 2678



Mon, 27 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll

Quote:

> the CodeWrite editor has a vhdl context sensitive feature.  there is one
> company called Sarlos Technology (spelling?) that sells this tool.

It's Saros, a good bunch. Be aware that the editor has a dongle, which
makes it more troublesome than it needs to be. It's got some nice
features that reduce the type-everything-4-times than VHDL requires for
hierachical designs and test benches. It also couples well with
Modeltec.

http://www.saros.co.uk

Steve



Mon, 27 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll

Quote:

>: I am looking for some VHDL format tools:
>: 1. A tool that converts all the reserved words in a text file into
>: capital
>:    letters, set the indentation to a predefined value, like two or three
>:    spaces, and breakes off long lines.

Here's a little PERL script that will do the first step.
Can't help you with the second and third requirements.

Quote:
>: 2. A tool that formats a VHDL textfile to a postscript printer, that is
>: print
>:    all the reserved words in a bold font and all the comment lines in an
>:    italic font.

If you have access to FrameMaker, here's prog2mif that will
translate pretty much any programming language and do that kind
of highlighting, ready to be imported into Frame.

--
Janick Bergeron       Qualis Design Corporation            Ph.: (503) 350-3663
Director of     PO Box 4444, Beaverton, OR 97075-4444      Fax: (503) 643-1583

  VHDL  -  Verilog  -  Synthesis  -  Modelling  -  Verification  -  Training

--------8<--------- cut here for capitalization script ------8<-----


    if 0;

#
# Capitalize VHDL source according to the guidelines
#
# Janick Bergeron

#
# Beginning of language definition section
#

#
# Reserved words

        "abs", "access", "after", "alias", "all", "and", "architecture",
        "array", "assert", "attribute", "begin", "block", "body", "buffer",
        "bus", "case", "component", "configuration", "constant", "disconnect",
        "downto", "else", "elsif", "end", "entity", "exit", "file", "for",
        "function", "generate", "generic", "guarded", "if", "in", "inout",
        "is", "label", "library", "linkage", "loop", "map", "mod", "nand",
        "new", "next", "nor", "not", "null", "of", "on", "open", "or",
        "others", "out", "package", "port", "procedure", "process", "range",
        "record", "register", "rem", "report", "return", "select", "severity",
        "signal", "subtype", "then", "to", "transport", "type", "units",
        "until", "use", "variable", "wait", "when", "while", "with", "xor"
);

# line-comment marker
#
# Can only handle comments which start with a marker then end at the
# end of line like PERL comments (e.g. ... # ...). If your language
# does not have these type of comments (lie C), do not mention it.
# Does not handle C-style comments (e.g. /* ... */)
#
$comment_marker = "--";

#
# End of language definition section
#
# Do not modify anything below this line
#

# Parse arguments
sub usage {
    print STDERR <<END_OF_USAGE;

Usage: reCapitalize [fname]

END_OF_USAGE
    return 1;

Quote:
}

$infile = $ARGV[0];

$infile = "-" unless $infile;
die "Cannot open $infile" unless open(INFILE, "< $infile");

# Process each line of the file
while ($_ = <INFILE>) {
    chop;
    # Remove trailing line-comments
    if (m/^(.*)$comment_marker(.*)$/) {
        $_ = $1; $comment = $2;
    } else {
        $comment = "";
    }

    # Capitalized the whole line
    tr/a-z/A-Z/;

    # unCapitalize keywords

        s/\b$kw\b/$kw/ig;
    }

    # Tag comment (if any) back to the end of the line
    s/$/$comment_marker$comment/ if $comment;

    print $_,"\n";

Quote:
}

exit(0);

--------8<--------- Cut here for prog2mif -----8<--------
#! /usr/local//bin/perl
#
#
# Preprocess program source for inclusion in FrameMaker documents
#
#                          Version 1.8.2
#

#
# Author: Janick Bergeron
#         Qualis Design Corp.
#         PO Box 4444, Beaverton, OR 97075-4444

#
# Revision History:
#
# 1.7 -> 1.8
#
# + Changed my address/email
# + Added '-s' option to specify default point size (Idea from

# + Added definitions for the 'M' language (Thanks to

# (.1) + Fixed problem with languages without comment markers

#
# 1.6 -> 1.7
#





# (.5) + Fixed problem with empty line comments

# (.7) + Fixed problem with multiple comment markers on the same line
# (.8) + File extensions are no longer translated to lowercase (Thanks

#
# 1.5 -> 1.6
#

# + Changed order of languages to alphabetical order
# + More editorial changes on long lines

# (.2) + Added definitions for Bourne shell (Thanks to

#
# 1.4 -> 1.5
#
# + Definitions for C++
# + (.1) Fixed small syntax error in keyword array
# + (.1) Editorial changes to avoid long lines wrapping around when
#        posting the shar file
# + (.2) Fixed typo on escape sequences in comments (Thanks to

#
# 1.3 -> 1.4
#
# + Fixed problem with keywords not being emboldened when preceeded

# + Allow input to come from stdin
# + Argument to '-l' option is case insensitive
# + Keywords in language can be case-sensitive

# + Definitions for PERL

#
# Wishlist:
#
# + Handling of multi-line and block comments (e.g. /* ... */)
# + Handling of quoted text (has to specify escape and continuation
#   mechanism for each language... yuk!)
# + A 32ft sailboat
#

require "getopts.pl";

#
# Beginning of language definition section
#
# To define a new language, please add all the relevant information
# in each section.
#

# Map filename extension to programming language
#
%language = (

  "a",       "ADA",
  "ada",     "ADA",
  "c",       "C",
  "h",       "C",
  "C",       "C++",
  "H",       "C++",
  "cxx",     "C++",
  "hxx",     "C++",
  "cpp",     "C++",
  "hpp",     "C++",
  "l",       "LISP",
  "el",      "LISP",
  "m",       "OBJC",
  "M",       "M",
  "pl",      "PERL",
  "perl",    "PERL",
  "protdms", "PROTEL",
  "sh",      "SH",
  "v",       "VERILOG",
  "vhd",     "VHDL",
  "vhdl",    "VHDL");

# Reserved words for certain languages
#
# Format:  Key   ::= Language name
#          Value ::= keyword{:keyword}
#
%keywords = (

  "ADA", "abort:abs:accept:access:all:and:array:at:begin:body:".
         "case:constant:declare:delay:delta:digits:do:else:elsif:".
         "end:entry:exception:exit:for:function:generic:goto:if:".
         "in:is:limited:loop:mod:new:not:null:of:or:others:out:".
         "package:pragma:private:procedure:raise:range:record:rem:".
         "renames:return:reverse:select:separate:subtype:task:".
         "terminate:then:type:use:when:while:with:xor",

  "C", "key word:auto:break:case:char:const:continue:default:do:double:else:".
       "enum:entry:extern:for:float:goto:if:int:long:register:".
       "return:short:signed:sizeof:static:struct:switch:typedef:".
       "union:unsigned:void:volatile:while:".
       "define:else:endif:if:ifdef:ifndef:import:include:undef:",

  "C++", "asm:auto:break:case:catch:char:class:const:continue:".
         "default:delete:do:double:else:enum:extern:for:float:".
         "friend:goto:if:inline:int:long:new:operator:private:".
         "protected:public:register:return:short:signed:sizeof:".
         "static:struct:switch:template:this:throw:try:typedef:".
         "union:unsigned:virtual:void:volatile:while:".
         "define:else:endif:if:ifdef:ifndef:import:include:undef:",

 "LISP", "append:ascii:assoc:defun:setq:cond:while:foreach:t:nil:".
         "car:cdr:caar:cadr:cdar:cddr:character-index:concat:cons:".
         "explode:exploden:get_pname:implode:last:list:member:nth:".
         "nthcdr:nthchar:quote:reverse:strcomp:stringp:strlen:strpad:".
         "strtrim:subst:substring:toupper:tolower:type:remove:remq:".
         "abs:acos:asin:atan:cos:exp:expt:fact:fix:float:log:log10:".
         "lsh:max:min:mod:random:sin:sqrt:times:product:add:sum:plus:".
         "diff:difference:quotient:alphalessp:arrayp:atom:and:set:".
         "boundp:eq:equal:evenp:fixp:floatp:greaterp:hunkp:lessp:".
         "listp:minusp:not:null:numberp:numbp:or:oddp:plusp:portp:".
         "fileopen:close:readln:readc:read:print:princ:get:plist:".
         "putprop:setplist",

  "M", "auto:break:case:char:const:continue:default:do:double:else:".
       "enum:entry:extern:for:float:goto:if:int:long:register:".
       "return:short:signed:sizeof:static:struct:switch:typedef:".
       "union:unsigned:void:volatile:while:".
       "define:else:endif:if:ifdef:ifndef:import:include:undef:".
       "ALLOCATE:BUILD:INITIALIZE:MEMORYEDIT:OBSERVABILITY:".
       "PREINITIALIZE:SENSITIVITY:SIMULATE:USER_ALLOCATE:".
       "MEMORY:".
       "DATAFILE:".
       "CHANGED:CHECK:CHECK2:CLASS:DRIVEN:FALL:GET_CAPACITANCE:".
       "GET_CONDUCTANCE:GET_DVDT:GET_VOLTAGE:RISE:SIZE:STRING:".
       "TERM_STRUCT:UNSTRING:".
       "coprocess:FORK:JOIN:WAIT:when:".
       "GATE:GLOBALIN:GND:GLOBALOUT:GLOBALINOUT:IN:INOUT:NODE:".
       "OUT:SRCDRN:VDD:".
       "ADEPT:FAULT:LOGIC:NORTON:STATE:THEVENIN:VOLTAGE:".
       "COMMAND:DESENSITIZE:DISABLE:ERROR:HIDE:INSTANCE:MONITOR:".
       "NET:NET_MODULES:PRINT:RESCHEDULE:SENSITIZE:SET_CAPACITANCE:".
       "SET_CONDUCTANCE:SET_CURRENT:SET_IG:SET_RESISTANCE:".
       "SET_VOLTAGE:SET_VOLTAGE_ADEPT:SET_VR:UNSET_VOLTAGE:".
       "HIGH:LOW:RELEASE:UNKNOWN:EQUIV:OPTIONAL:MODULE:operator:".
       "NULL:QUIT:RUN",

 "OBJC",
...

read more »



Tue, 28 Dec 1999 03:00:00 GMT  
 VHDl format toolsI am ll

Quote:

> Dear Reader,

> I am looking for some VHDL format tools:
> ...
> Does anyone no a good, but relatively simple editot that has VHDL syntax
> highlighting. I know EMACS can, but it is a very large programm.

---> get VIM ! it's not soo big !
     vim (vi-improved) newest version's (alpha) have syntax-highlight-
     feature, and at distribution there is a vhdl-config file included;
     (file: ./syntax/vhdl.vim)

     vim-homepage:
     http://www.math.fu-berlin.de/~guckes/vim
     vim-download from:
     ftp://ftp.fu-berlin.de/pub/misc/editors/vim

hope it helps
mario



Sat, 01 Jan 2000 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. I am searching for a VHDL PCI-Target description

2. I am searching Validation Suite93 of VHDL

3. I am not deaf, but am I mute?

4. Formatting strings in VHDL

5. vhdl pretty formatting

6. formatted printing in VHDL

7. VHDL Intermediate File Format

8. VHDL File Formats

9. formatting VHDL

10. .pla format to vhdl

11. .pla format to vhdl

12. Formatted Output from VHDL simulation???

 

 
Powered by phpBB® Forum Software