Crate pytv

source ·
Expand description

Python Templated Verilog

§Generation Process

.pytv ----> .v.py --+-> .v
                    |
                    +-> .inst

§Examples

//! 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).

Structs§

  • Represents the configuration options for PyTV.
  • Represents a converter that converts PyTV script to Python script to generate Verilog.
  • Represents the options for input and output file for PyTV.