Skip to content

CModelGen/frontend

Repository files navigation

CModelGen Frontend

Travis Build Status

This project implements a frontend program for CModelGen. The program is extended from the Icarus Verilog.

The source code is open under the GNU General Public License Version 2.

Structure of the Source Code

The CModelGen frontend is implemented as a plugin of Icarus Verilog 0.10.0.

The slightly modified source code of Icarus Verilog 0.10.0 resides under the directory iverilog-0.10.0.

The source code of the CModelGen frontend locates under tgt-cmodelgen.

Building the Program

This GIT repository is a submodule of CModelGen. When building CModelGen, commands to build this program are automatically invoked.

Alternatively, this program can be built manually.

Before building the program, please ensure the following programs are already installed.

  • GNU Make
  • autoconf
  • gperf
  • flex
  • bison
  • readline
  • gcc
  • g++

The following command can be used to build the program.

make

The command builds a debug version and a release version of the program, and puts these versions under the following directories.

build/frontend/ivl-install-debug
build/frontend/ivl-install-release

To only build the debug version or the release version, please use the command make debug or the command make release respectively.

The built program is 64-bit on a 64-bit operating system. On a 32-bit operating system, the built program is 32-bit.

Building 32-Bit Program on 64-Bit Operating System

On a 64-bit operating system, the frontend can also be built into a 32-bit program. To do so, please add CONFIG_FLAGS=--with-m32 to the make command.

Checking the Program

To check whether the program is built successfully, the following command can be used.

make check

To only check the debug version or the release version, please use the command make checkdebug or the command make checkrelease respectively.

Using the Program

This program can be invoked by CModelGen automatically. To see how it is invoked, add the --verbose flag to any CModelGen-invoking command.

About

The frontend program of CModelGen

Resources

License

LGPL-2.1, GPL-2.0 licenses found

Licenses found

LGPL-2.1
COPYING.lesser
GPL-2.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published