Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Hardware::Vhdl::Tidy 0.8

    Download button

    No screenshots available
    Downloads: 810  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Attenborough | More programs
    Perl Artistic License / FREE
    April 25th, 2008, 13:08 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Hardware::Vhdl::Tidy description

    Hardware::Vhdl::Tidy is a VHDL code prettifier.

    Hardware::Vhdl::Tidy is a VHDL code prettifier.

    SYNOPSIS

    Command-line call to make a tidied version of a VHDL file:

    perl -MHardware::Vhdl::Tidy -e "Hardware::Vhdl::Tidy::parse_commandline" < messy.vhd > tidied.vhd
    # or:
    perl -MHardware::Vhdl::Tidy -e "Hardware::Vhdl::Tidy::parse_commandline" messy.vhd > tidied.vhd

    Command-line call for an in-place tidy of one or more VHDL files:

    perl -MHardware::Vhdl::Tidy -e "Hardware::Vhdl::Tidy::parse_commandline" -- -b

    To tidy a VHDL file from a perl script:

    use Hardware::Vhdl::Tidy qw/ tidy_vhdl_file /;
    tidy_vhdl_file( {
    source => $infile,
    destination => $outfile,
    # the following args are optional, and the values shown are the defaults:
    indent_spaces => 4, # integer value, >= 0
    cont_spaces => 2, # integer value, >= 0
    tab_spaces => 0, # integer value, >= 0
    starting_indentation => 0, # integer value, >= 0
    preprocessor_prefix => '#', # string
    indent_preprocessor => 0, # boolean
    } );

    To tidy some stored VHDL code in a perl script:

    use Hardware::Vhdl::Tidy qw/ tidy_vhdl /;
    tidy_vhdl( {
    source => $souce_thing, # a scalar, array ref, filehandle ref, object...
    destination => $dest_thing, # a scalar, array ref, filehandle ref, object...
    # options can be set here, as for tidy_vhdl_file
    } );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    code prettifier | Vhdl tidy | Perl module | Vhdl | code | tidy

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM