rename FixedType->StaticType, fixed_type()->static_type(), hdl(fixed_type)->hdl(static), IsFixedLen->IsStaticLen

This commit is contained in:
Jacob Lifshay 2024-07-30 20:16:00 -07:00
parent c19a6821cf
commit 2dce478d48
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c
20 changed files with 165 additions and 164 deletions

View file

@ -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)]