forked from libre-chip/fayalite
rename FixedType->StaticType, fixed_type()->static_type(), hdl(fixed_type)->hdl(static), IsFixedLen->IsStaticLen
This commit is contained in:
parent
c19a6821cf
commit
2dce478d48
20 changed files with 165 additions and 164 deletions
|
@ -13,7 +13,7 @@ use fayalite::{
|
|||
module::transform::simplify_enums::{simplify_enums, SimplifyEnumsKind},
|
||||
reset::{SyncReset, ToReset},
|
||||
source_location::SourceLocation,
|
||||
ty::{FixedType, Value},
|
||||
ty::{StaticType, Value},
|
||||
};
|
||||
use serde_json::json;
|
||||
|
||||
|
@ -195,7 +195,7 @@ circuit check_array_repeat_1:
|
|||
#[hdl_module(outline_generated)]
|
||||
pub fn check_skipped_generics<T, #[hdl(skip)] U, const N: usize, #[hdl(skip)] const M: usize>(v: U)
|
||||
where
|
||||
T: Value<Type: FixedType<Value = T>>,
|
||||
T: Value<Type: StaticType<Value = T>>,
|
||||
U: std::fmt::Display,
|
||||
{
|
||||
dbg!(M);
|
||||
|
@ -377,18 +377,18 @@ circuit check_written_inside_both_if_else:
|
|||
}
|
||||
|
||||
#[derive(Value, Clone, PartialEq, Eq, Hash, Debug)]
|
||||
#[hdl(fixed_type, outline_generated)]
|
||||
#[hdl(static, outline_generated)]
|
||||
pub struct TestStruct<T> {
|
||||
pub a: T,
|
||||
pub b: UInt<8>,
|
||||
}
|
||||
|
||||
#[derive(Value, Clone, PartialEq, Eq, Hash, Debug)]
|
||||
#[hdl(fixed_type, outline_generated)]
|
||||
#[hdl(static, outline_generated)]
|
||||
pub struct TestStruct2(pub UInt<8>);
|
||||
|
||||
#[derive(Value, Clone, PartialEq, Eq, Hash, Debug)]
|
||||
#[hdl(fixed_type, outline_generated)]
|
||||
#[hdl(static, outline_generated)]
|
||||
pub struct TestStruct3;
|
||||
|
||||
#[hdl_module(outline_generated)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue