Skip to main content

Manage HDL code as components so they can shared as IP.

Github Release PyPI Version Build Status Test Coverage Read The Docs Codacy Maintainability docs/img/hcm_overview.gif

Table of Contents

Overview

HCM was created after a frustrating attempt to merge changes from one program to another. Even after carefully performing the merge, there were issues.

It was turning into a nightmare just to pass updates between multiple concurrently running programs. I was inspired by PIP, and how easy it is to install python packages. I wanted to bring that same level of ease to HDL design.

Key Benefits

  • Provides a method to control versions of IP

  • Controls the distribution of HDL code

  • Follows the Major.Minor.Patch method of version control

  • Language independent (VHDL, Verilog, System Verilog)

  • Can be used to control vendor IP

Key Features

  • Works with SVN repositories

  • Automates publishing of code to a central location

  • Automates installing and upgrading of code

  • Supports multiple IP repositories

  • Supports dependencies between components

Installation

You can get the latest released version of HCM via pip.

pip install hcm

The latest development version can be cloned…

git clone https://github.com/jeremiah-c-leary/hdl-component-manager.git

…and then installed locally…

python setup.py install

Usage

HCM can be invoked by issuing hcm at the command line prompt:

$ hcm
usage: hcm [-h]
           {browse,create,download,install,uninstall,list,publish,show,validate,version}
           ...

Provides configuration management for HDL components.

positional arguments:
  {browse,create,download,install,uninstall,list,publish,show,validate,version}
    browse              List components available for installation.
    create              Creates a component repo
    download            Downloads components without installing them.
    install             Adds a component from the component repo
    uninstall           Removes installed components
    list                Lists components and their versions
    publish             Adds components to the component repo
    show                Displays information about installed components
    validate            Verifies manifest of installed component
    version             Displays HCM version information

optional arguments:
  -h, --help            show this help message and exit

HCM has eight subcommands: browse, create, install, uninstall, list, publish, show, and validate.

browse

Use the browse subcommand to list components available for installation.

docs/img/hcm_browse_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ hcm browse -h
usage: hcm browse [-h] [component]

positional arguments:
  component   Component to browse

optional arguments:
  -h, --help  show this help message and exit

create

Use the create subcommand to create a component directory in the repository.

docs/img/hcm_create_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ hcm create -h
usage: hcm create [-h] url

positional arguments:
  url         location to create the base component repo

optional arguments:
  -h, --help  show this help message and exit

download

Use the download subcommand to pull a version from the repository without installing it.

docs/img/hcm_download_subcommand.gif

install

Use the install subcommand to add or upgrade a component from a repository.

docs/img/hcm_install_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ bin/hcm install -h
usage: hcm install [-h] [--version VERSION] [--url URL] [--force] [--external]
                   [--dependencies] [--upgrade]
                   component

positional arguments:
  component          Component name to install

optional arguments:
  -h, --help         show this help message and exit
  --version VERSION  Major.Minor.Patch version of component to install.
  --url URL          location of component directory in repo
  --force            Install component ignoring any local changes
  --external         Install as an external
  --dependencies     Install dependencies
  --upgrade          Upgrade dependencies to latest version

uninstall

Use the uninstall subcommand to remove installed components.

docs/img/hcm_uninstall_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ hcm uninstall -h
usage: hcm uninstall [-h] component

positional arguments:
  component   Installed Component name to install

optional arguments:
  -h, --help  show this help message and exit

list

Use the list subcommand to check the versions of components you have installed.

docs/img/hcm_list_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ hcm list -h
usage: hcm list [-h] [--all]

optional arguments:
  -h, --help  show this help message and exit
  --all       Includes directories that are not under HCM control

publish

Use the publish subcommand to push a version of a component to a repository.

docs/img/hcm_publish_subcommand.gif

The arguments for the subcommand can be listed using the -h option:

$ hcm publish -h
usage: hcm publish [-h] (-m M | -f F) [--url URL] component version

positional arguments:
  component   Component name to publish
  version     Major.Minor.Patch version to publish

optional arguments:
  -h, --help  show this help message and exit
  -m M        Commit message
  -f F        File to use as commit message
  --url URL   Base URL of the component repository

show

Use the show subcommand to display information about an installed component.

docs/img/hcm_show_subcommand.gif

The arguments for the subcommand can be listed using the -h options:

$ hcm show -h
usage: hcm show [-h] [--manifest] [--upgrades] [--updates] [--modifications]
                component

positional arguments:
  component        Component to display information

optional arguments:
  -h, --help       show this help message and exit
  --manifest       Displays manifest for all files in component
  --upgrades       Lists upgrade versions and their log entries
  --updates        Lists versions with newer publishes and their log entries
  --modifications  Lists committed modifications for component

validate

Use the validate subcommand to compare the component manifest against what is currently installed.

docs/img/hcm_validate_subcommand.gif

The arguments for the subcommand can be listed using the -h options:

$ hcm validate -h
usage: hcm validate [-h] [--report] component

positional arguments:
  component   Component to display information

optional arguments:
  -h, --help  show this help message and exit
  --report    Reports differences

Environment Variables

HCM will use the HCM_URL_PATHS environment variable as a replacement for the –url command line option. HCM uses the paths in the variable to know which component repositories to interact with.

Documentation

All documentation for HCM is hosted at read-the-docs.

Contributing

I welcome any contributions to this project. No matter how small or large.

There are several ways to contribute:

  • Bug reports

  • Code base improvements

  • Feature requests

  • Pull requests

Please refer to the documentation hosted at read-the-docs for more details on contributing.

Metadata

Release files for hcm 0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hcm 0.14
File Size Uploaded
hcm-0.14.tar.gz 26.9 kB Details

Release files / hcm-0.14.tar.gz

Download URL hcm-0.14.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d37dd6590a96e774d58a557bdb5175b3e669c43ca7aaba2e3faba7e1578f70c7
BLAKE2b-256 checksum
How to use checksums
45d7e1facbf3c2f6e6f0c4effd0ae20642db64a2f4d8c975f709c4690f072be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.14 This release

1 release file

0.13

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page