Skip to content

embed-dsp/ed_verilog_perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile and Install of the Verilog-Perl Library

This repository contains a make file for easy compile and install of Verilog-Perl. The Verilog-Perl library provides Perl parsing and utilities for the Verilog Language.

The following scripts are installed by Verilog-Perl:

  • vhier
    • Return all files in a verilog hierarchy using Verilog::Netlist
  • vpassert
    • Preprocess Verilog code assertions
  • vppreproc
    • Preprocess Verilog code using verilog-perl
  • vrename
    • Change signal names across many Verilog files

Get Source Code

ed_verilog_perl

Get the code for this component to a local directory on your PC.

git clone https://github.com/embed-dsp/ed_verilog_perl.git

Verilog-Perl

Get the code for the Verilog-Perl.

# Enter the ed_verilog_perl directory.
cd ed_verilog_perl

If this is the first time Verilog-Perl is built, then ...

# Clone the Verilog-Perl git repository.
make clone

Otherwise just pull the latest updates ...

# Pull latest updates from the Verilog-Perl git repository.
make pull

Edit the Makefile for selecting the Verilog-Perl source version.

# Edit Makefile ...
vim Makefile

# ... and set Verilog-Perl source version.
PACKAGE_VERSION = Verilog-Perl_3_454

Build

# Checkout specific version and rebuild configure.
make prepare
# Configure source code.
make configure
# Compile source code using 4 simultaneous jobs (Default).
make compile

# Compile source code using 2 simultaneous jobs.
make compile J=2

Install

# Install build products.
sudo make install

The Verilog-Perl package does NOT install correctly according to the GNU Coding Standards. The build products are therefore installed in the following locations in order to allow separate installation for different architectures:

/opt/
└── veripool/
    ├── linux_x86_64/           # 64-bit binaries and libraries for Linux
    │   └── Verilog-Perl_3_454/
    │       ├── bin/
    │       │   ├── vhier       # Return all files in a verilog hierarchy
    │       │   ├── vpassert    # Preprocess Verilog code assertions
    │       │   ├── vppreproc   # Preprocess Verilog code using verilog-perl
    │       │   ├── vrename     # Change signal names across many Verilog files
    │       │       ...
    │       └── share/          # ...
    │           ...
    └── linux_x86/              # 32-bit binaries and libraries for Linux
        └── Verilog-Perl_3_454/
            ├── bin/
            │   ├── vhier       # Return all files in a verilog hierarchy
            │   ├── vpassert    # Preprocess Verilog code assertions
            │   ├── vppreproc   # Preprocess Verilog code using verilog-perl
            │   ├── vrename     # Change signal names across many Verilog files
            │       ...
            └── share/          # ...
                ...

Prerequisites

Fedora-27 64-bit | Fedora-28 64-bit

# ...
dnf install gcc-c++

# ...
dnf install perl
dnf install perl-devel
dnf install perl-Digest-SHA

# ...
dnf install redhat-rpm-config

Tested System Configurations

The following system configurations have been tested.

System .
linux Fedora-27 64-bit
linux Fedora-28 64-bit

About

Compile and Install of Verilog-Perl Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published