1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Python Templated Verilog
//!
//! # Generation Process
//! ```txt
//! .pytv ----> .v.py --+-> .v
//! |
//! +-> .inst
//! ```
//!
//! # Examples
//! ```txt
//! //! 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).
//!
//! # Related Auto Generator Projects
//! - **FLAMES**: template-based C++ library for Vitis HLS
//! [[website](https://flames.autohdw.com)]
//! [[GitHub](https://github.com/autohdw/flames)]
//! [[paper at IEEE](https://ieeexplore.ieee.org/document/10437992)]
//! [[paper PDF](https://wqzhao.org/assets/zhao2024flexible.pdf)]
//! - **AHDW**: a DSL, the predecessor of this project
//! [[paper at IEEE](https://ieeexplore.ieee.org/document/10396119)]
//! [[paper PDF](https://wqzhao.org/assets/zhao2023automatic.pdf)]
pub use Config;
pub use FileOptions;
pub use Convert;