Commit Graph

25 Commits

Author SHA1 Message Date
Alex Mykyta
a917164642 Tidy up whitespace in generated package. #148 2025-07-01 16:56:41 -07:00
Dana Sorensen
d2b4911d5f Add signed/fixedpoint properties (#140)
* declared intwidth, fracwidth, and is_signed UDPs

* fix boolean type name in UDP definition

* generate hwif fields with fixedpoint indices

* make "counter" and "encode" properties mutualy exclusive with signed/fixedpoint

* add signed/unsigned to hwif

* improved fixedpoint error messages, added validation tests

* added fixedpoint tests

* fixedpoint/signed not allowed for signal components

* added signed/fixedpoint UDP docs

* handle single-bit fixedpoint numbers

* fix too many positional arguments lint

* changed spelling of fixedpoint to fixed-point

* use "logic" in place of "unsigned logic"

* split signed and fixedpoint docs, added examples

* allow enums with is_signed=false

* split signed and fixedpoint implementations

* assorted nits picked

* updated is_signed validation unit test
2025-05-15 08:48:44 -07:00
Alex Mykyta
48ae215eda Add user parameters to regblock package. #112 2025-04-10 22:16:13 -07:00
Alex Mykyta
40687abd6b Type hinting cleanup 2025-03-03 21:37:07 -08:00
Alex Mykyta
a15178c719 Use clog2 helper function to improve clarity. #116 2024-12-19 19:47:41 -08:00
Alex Mykyta
5c1bc35799 Type hint workarounds 2024-12-18 22:13:51 -08:00
Alex Mykyta
e0295ae526 Fixup test bitswap. mypy 2024-12-18 22:04:12 -08:00
Alex Mykyta
11d9f65dff Fix incorrect bit-order in packed struct output of external registers. #111 2024-12-18 21:17:31 -08:00
Alex Mykyta
f25ba60bfc Add packed struct overlay for external register bitfields. #84 2024-03-29 22:16:24 -07:00
Alex Mykyta
840b54c6e1 Use explicit logic type for user enum declarations. #91 2024-03-29 21:22:34 -07:00
Alex Mykyta
62518b318b Implement new SVInt object to defer literal expansion and allow bit-fiddling operations. Fix invalid bit-slicing of literals if field reset value is a constant. #71 2023-10-24 22:50:41 -07:00
Alex Mykyta
0da6efe85c Fix hwif type name generation to properly handle parameterized component names. #70 2023-10-11 21:58:10 -07:00
Alex Mykyta
f9e0d1babc Coverage improvements 2023-08-02 22:28:42 -07:00
Alex Mykyta
941871007b Omit unecessary hwif signals if an external register is read-only or write-only. #58 2023-08-02 21:38:06 -07:00
Alex Mykyta
50d8779283 Use sized integer literals if bit width exceeds 32-bits. #43 2023-06-08 22:55:20 -07:00
Alex Mykyta
5e76956618 Refactor exporter class to clean up the mess of random variables 2023-05-12 23:44:09 -07:00
Alex Mykyta
ca9185dac7 Add support for external components. (#4 & #36) 2023-05-11 21:52:26 -07:00
Hugh Jackson
0c7e493976 Add support for user defined enums in field encode property. #29 2023-04-12 23:09:06 -07:00
Alex Mykyta
489b4d1310 Add 'rd_swacc' and 'wr_swacc' UDPs. #21 2022-11-09 21:25:02 -08:00
Alex Mykyta
fcfd5c09f4 fixup 2022-11-08 21:09:58 -08:00
Alex Mykyta
ada050bf2d Add ability to generate a HWIF report. #13 2022-11-07 23:20:58 -08:00
Alex Mykyta
f3d932ccdf Add back parent type prefix for hier hwif 2022-09-12 20:50:48 -07:00
Paul Roukema
cbeb6172a8 Fix "hier" mode hwif generation
Signed-off-by: Paul Roukema <paul.roukema@fidus.com>
2022-09-12 20:48:42 -07:00
Alex Mykyta
135b717486 Add identifier filter. closes #14 2022-07-20 23:35:17 -07:00
Alex Mykyta
8d13a9d7fe Switch to use regular non-namespaced package 2022-06-09 20:24:53 -07:00