pytv

Crates.iopytv
lib.rspytv
version0.5.5
sourcesrc
created_at2024-03-14 15:59:07.955011
updated_at2024-04-23 05:06:39.981084
descriptionPython Templated Verilog
homepage
repositoryhttps://github.com/autohdw/pytv
max_upload_size
id1173501
size84,849
Teddy van Jerry (Teddy-van-Jerry)

documentation

README

PyTV

Python Templated Verilog

Crates.io Version docs.rs GitHub

Package

The package pytv is available on crates.io. Documentation is available on docs.rs.

To use the package in a Rust project, run

cargo add pytv

If you want to install the pytv binary, run

cargo install pytv

Features

Python Template

This is the basic feature of this package.

//! a = 1 + 2;            #  Python inline
assign wire_`a` = wire_b; // Verilog with variable/expression substitute
/*!
b = a ** 2;               #  Python block
*/

The magic comment string can be configured (! as default).

Instantiation

The crate feature inst is enabled by default. YAML contents between <INST> and </INST> are used to provide instantiation information.

Related Auto Generator Projects

Author

Teddy van Jerry (Wuqiong Zhao)

Commit count: 44

cargo fmt