GithubHelp home page GithubHelp logo

00mjk / veritas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veritas-verilog/veritas

0.0 0.0 0.0 31 KB

A Package Manager for Verilog Projects

Home Page: https://veritas-verilog.github.io/veritas/

License: Apache License 2.0

Rust 100.00%

veritas's Introduction

veritas

A Package Manager for Verilog Projects

Veritas is designed to decrease confusion in your verilog workflow, and to simplify dependency management in hardware deisgn.

Installing

Requirements

You must have Rust installed along with Cargo to install Veritas

Install

To install, simply go into the veritas directory and run cargo install

Getting Started

Create a project

Simply run veritas init and follow the oncsreen prompts to create a veritas verilog project. This will create a project tree like this:

.
├── my_verilog.v
└── modules.toml

Where my_verilog.v is your existing verilog code.

Installing dependencies

Dependencies in Veritas are simply git repositories for other veritas projects. Currently, packages hosted on GitHub are the only ones that are supported, but custom git server support is coming soon™.

Dependencies are installed using the veritas install command

Dependencies are managed through your modules.toml file, which has a structure like this:

[package]
name = 'example'
version = '0.1.0'
description = 'An example project'
author = 'your name here <your email here>'
license = 'your choice of license'

[repository]
url = 'source code repo url'
version_control = 'version control type'

[dependencies]
"my_first_dependency" = "required version"

Dependencies are managed under the dependencies tag, where each dependency is a key value pair, thus, for a project with multiple dependencies, you will have:

[dependencies]
"my_first_dependency" = "required version"
"my_second_dependency" = "required version"

If your project has no dependencies, a dependencies you can leave the area empty but do not remove the section.

Dependencies are then created in a veritas_modules directory, and can be used in your verilog project through the include keyword as such:

`include "veritas_modules/some_module/some_module.v"

Getting dependencies

While right now veritas assumes a git repo hosted on github, in the future there will be a module registry containing the metadata and blobs of modules. When that transition happens the namespacing of modules will depend on the layout of the registry not github username and repo name

Other notes

It should be noted that when you install dependencies, existing dependencies are not updated when new installs are done.

Updating Dependencies (TODO)

To update all dependencies (if they are not locked to a commit) simply run veritas update

Current Work

  • Create Project ✅
  • Update Dependencies
  • Module Registry and Explorer
  • Adding of dependencies from the CLI
  • Cycle detection
  • Dependecy resolution
  • Build step (flat packing verilog code for compilation)
  • Module upload

Example

An example project with dependencies can be found here: https://github.com/veritas-verilog/four_bit_adder

veritas's People

Contributors

narendasan avatar tanishq-dubey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.