Skip to content

Commit

Permalink
Update Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-van-Jerry committed Mar 25, 2024
1 parent 379b0af commit 85cee04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ cargo add pytv
### Python Template
This is the basic feature of this package.

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

### Instantiation
The crate feature `inst` is enabled by default.
YAML contents between `<INST>` and `</INST>` are used to provide instantiation information.
Expand Down
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
//! ```
//!
//! # Examples
//! To be added.
//! ```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
Expand Down

0 comments on commit 85cee04

Please sign in to comment.