forked from libre-chip/fayalite
fix doctests to use Expr<UInt<1>> instead of bool for example conditions
This commit is contained in:
parent
0edf380c79
commit
180ecad017
|
@ -11,7 +11,8 @@
|
||||||
//! # use fayalite::{hdl_module, int::UInt, array::Array, clock::ClockDomain};
|
//! # use fayalite::{hdl_module, int::UInt, array::Array, clock::ClockDomain};
|
||||||
//! # #[hdl_module]
|
//! # #[hdl_module]
|
||||||
//! # fn module() {
|
//! # fn module() {
|
||||||
//! # let v = true;
|
//! # #[hdl]
|
||||||
|
//! # let v: UInt<1> = m.input();
|
||||||
//! #[hdl]
|
//! #[hdl]
|
||||||
//! let cd: ClockDomain = m.input();
|
//! let cd: ClockDomain = m.input();
|
||||||
//! #[hdl]
|
//! #[hdl]
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
//! # use fayalite::{hdl_module, int::UInt, array::Array, clock::ClockDomain};
|
//! # use fayalite::{hdl_module, int::UInt, array::Array, clock::ClockDomain};
|
||||||
//! # #[hdl_module]
|
//! # #[hdl_module]
|
||||||
//! # fn module() {
|
//! # fn module() {
|
||||||
//! # let v = true;
|
//! # #[hdl]
|
||||||
|
//! # let v: UInt<1> = m.input();
|
||||||
//! #[hdl]
|
//! #[hdl]
|
||||||
//! let cd: ClockDomain = m.input();
|
//! let cd: ClockDomain = m.input();
|
||||||
//! #[hdl]
|
//! #[hdl]
|
||||||
|
|
Loading…
Reference in a new issue