To build the Verilog Translator tool from sources, following components must be installed:
  1. Git
  2. Java Development Kit (JDK) 1.11 or higher (use AdoptOpenJDK for Windows and openjdk-11-jdk for Ubuntu Linux based OS)

For project building we use Gradle system.
You can either install it, or use wrapper scripts (we use Gradle 5.0 in scripts).

Getting project source code

Clone the project Git repository and it's submodules:

$ git clone --recursive

Building and running Verilog Translator from command line

Two Gradle wrapper scripts are included in the project repository: one for Linux-based OS (gradlew), another for Windows OS (gradlew.bat). To make the guide uniform, a "gradle" acronym will be used in the following examples.

To compile main classes run:

gradle classes

To compile test classes run:
gradle testClasses

To run all unit tests run:
gradle test

NOTE : to list all Gradle commands run:
gradle tasks

Building from Eclipse IDE

  • Generate the Eclipse IDE project and classpath files with Gradle:
    $ ./gradlew eclipse
  • Create a workspace located in the directory with veritrans
    - Use the menu item File/Switch Workspace...
    - Browse the directory
  • Import an existing project called veritrans into the workspace
    - Use the menu item File/Import...
    - Choose General/Existing Projects into Workspace
    - Select the veritrans folder as the root directory
    - Select the veritrans project located in this directory
    - Press the Finish button

Building from IntelliJ IDEA

  1. From Welcome menu select "Import project".
  2. Select veritrans directory, then press "OK".
  3. From "Import project" menu select "Import project from external model" -> Gradle, then press "Finish".

Updated by Sergey Smolov about 4 years ago · 9 revisions