Skip to content

qihe-project/qihe-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qihe Application Template

A starter template for building Verilog static analysis tools using the Qihe.

This project provides:

  • A HelloAnalysis example demonstrating how to develop a new analysis (as explained in the tutorial)
  • The same command-line tool as Qihe provides for executing analyses

Keynotes:

  1. This template doesn't cover analysis development specifics. Please refer to the Qihe tutorials for detailed guidance.
  2. The usage of Qihe's command-line tool documentation is available here.

Prerequisites

  • Java 21 or later
  • Qihe (installed locally)

Installing Qihe Locally

Since Qihe is not yet published to Maven Central, you must install it to your local Maven repository:

# Clone the Qihe repository
git clone https://github.com/pascal-lab/qihe.git
cd qihe

# Build and test Qihe
./gradlew build 

# Install to local Maven repository
./gradlew publishToMavenLocal 

Note: This project's build.gradle.kts is pre-configured to resolve dependencies from your local Maven repository.

Version Compatibility:

Ensure the version in this template's build.gradle.kts matches your installed Qihe version:

dependencies {
    implementation("pascal.qihe:platform:<version>")
    // ...
}

You can find the Qihe version in the gradle.properties file within the Qihe repository.

Getting Started

Before developing with this template, verify it works correctly by following either method below.

Option 1: Install as Command Line Tool

# Build the project with tests
./gradlew build

# Install the project to the build directory `./build/install/qihe`.
# You can copy it to another directory if desired; in this example, we will leave it in place.
./gradlew installDist

# Add the installed binaries to your PATH variable:
# For Bash:
export PATH=$PATH:$(pwd)/build/install/qihe/bin
# For PowerShell:
$env:Path += ";$(Resolve-Path ./build/install/qihe/bin)"

# Now a `qihe` command is available
qihe -h 

Option 2: Run Directly via Gradle

If you want to run qihe without installation, you can use the Gradle task:

./gradlew run --args="<argument>..."

This behaves identically to:

qihe <argument>...

About

A template to create an application based on the Qihe framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published