Commit graph

42 commits

Author SHA1 Message Date
57aae7b7fb
implement [de]serializing BaseTypes, SimValues, and support PhantomConst<T> in #[hdl] struct S<T> 2025-04-04 01:04:26 -07:00
6929352be7
re-export bitvec and add types useful for simulation to the prelude 2025-04-03 16:01:39 -07:00
c4b6a0fee6
add support for #[hdl(sim)] enum_ty.Variant(value) and #[hdl(sim)] EnumTy::Variant(value) and non-sim variants too 2025-04-01 22:16:47 -07:00
9092e45447
fix #[hdl(sim)] match on enums 2025-03-30 01:25:07 -07:00
a40eaaa2da
expand SimValue support 2025-03-30 00:55:38 -07:00
5028401a5a
change SimValue to contain and deref to a value and not just contain bits 2025-03-27 23:44:36 -07:00
e0f978fbb6
silence unused m variable warning in #[hdl_module] with an empty body. 2025-03-27 23:17:28 -07:00
3458c21f44
add #[hdl(cmp_eq)] to implement HdlPartialEq automatically 2025-02-16 20:48:16 -08:00
43797db36e
sort custom keywords 2025-02-16 20:46:54 -08:00
cdd84953d0
support unknown trait bounds in type parameters 2025-02-13 18:35:30 -08:00
86a1bb46be
add #[hdl] let destructuring and, while at it, tuple patterns 2025-02-10 22:49:41 -08:00
c16726cee6
fix #[hdl]/#[hdl_module] attributes getting the wrong hygiene when processing #[cfg]s 2024-12-29 00:48:15 -08:00
7005fa3330
implement handling #[cfg] and #[cfg_attr] in proc macro inputs 2024-12-28 23:39:08 -08:00
89d84551f8
add ResetType to the list of recognized type bounds 2024-11-26 18:52:03 -08:00
ee15fd2b94
support #[hdl] type aliases 2024-10-30 20:47:10 -07:00
20cf0abbcc
fix using #[hdl] types like S<{ 1 + 2 }> 2024-10-30 20:46:11 -07:00
1a2149b040
silence warnings for field names that start with _ 2024-10-10 20:53:29 -07:00
59cef3f398
add PhantomData as a hdl bundle 2024-10-10 20:48:09 -07:00
99180eb3b4
fix clippy lints in generated code 2024-10-07 22:06:59 -07:00
ed1aea41f3
clean up some clippy warnings 2024-10-07 21:49:18 -07:00
f12322aa2a
remove interning contexts 2024-10-07 21:33:56 -07:00
343805f80b
fix #[hdl] to work with unusual identifier hygiene from macros 2024-10-03 23:04:14 -07:00
4ff01690a7
clean up deps and move missed deps to workspace 2024-09-25 01:22:35 -07:00
790bb15408
remove reset_default from proc-macro, forgot to remove when removing from RegBuilder 2024-09-22 16:03:20 -07:00
10ae95fac1
add missing copyright headers 2024-09-22 15:30:05 -07:00
df55a514e4
add support for incomplete_wire -- a wire that you can supply the type of later 2024-09-20 18:46:56 -07:00
ff94dda922
support #[hdl] on functions -- enables #[hdl] usage in function body 2024-09-20 18:42:24 -07:00
2d293ae87b
#[hdl] match works! 2024-09-19 23:51:54 -07:00
9887d70f41
fix handling of const and size type generics when generating Index impls 2024-09-19 18:45:04 -07:00
2c1afd1cd6
const generics on hdl_module work! 2024-09-17 15:39:23 -07:00
76ea7f82c3
WIP adding const generics 2024-09-16 16:47:10 -07:00
5835b995a9
WIP: use HdlOption[the_type_var] or UInt[123 + n] for creating types 2024-08-21 22:27:21 -07:00
cd99dbc849
properly bound with StaticValue or StaticType<MaskType: StaticType> 2024-07-30 20:25:37 -07:00
2dce478d48
rename FixedType->StaticType, fixed_type()->static_type(), hdl(fixed_type)->hdl(static), IsFixedLen->IsStaticLen 2024-07-30 20:16:00 -07:00
b33566841d
make #[hdl_module] support functions with generic parameters 2024-07-25 22:20:38 -07:00
7963f0a5cd
add Iterator<Item = Pair<T, P>> helpers 2024-07-25 22:07:23 -07:00
8ca0cd56c4
fix warning 2024-07-21 20:44:29 -07:00
63fd038729
correctly handle hdl byte literal suffixes 2024-07-16 19:45:12 -07:00
c2e5ea8e89
implement #[hdl] [a; N] -- an array repeat expression 2024-07-16 17:19:17 -07:00
6a5f1b8af1
prep for eventual publishing 2024-07-11 22:39:00 -07:00
8bd7fcfa27
reformat messy code that rustfmt doesn't format 2024-07-10 23:34:41 -07:00
0b958e7852
initial public commit 2024-06-10 23:09:13 -07:00