Commit Graph

20 Commits

Author SHA1 Message Date
Matt Knight
0df603ec00
Allow for regz to be used as a module (#116) 2023-11-21 19:41:15 -08:00
Jacob Young
d66ffd56f5
Implement various adtf features needed on ARM (#115)
* Fix test step not running tests

* Fix `error.Todo` causing a crash while outputting json

* Cleanup `@as` usage

* Implement count attribute for registers

* Add ad-hoc alignment to support an initial reserved region.

* Implement register group instances

* Add `build.zig.zon` paths
2023-11-20 00:28:21 -08:00
Matt Knight
b0ded63fc2
Don't specify preferred optimize (#111) 2023-08-06 10:05:54 -07:00
Matt Knight
20b744499e
Remove vestigial invocation of git rev-parse (#110) 2023-08-06 09:10:48 -07:00
Matt Knight
334636332e
use newer libxml2 package (#109) 2023-08-05 09:54:27 -07:00
Matt Knight
41f7cb1f85
Package clap using official package manager (#105) 2023-06-22 21:59:07 -07:00
Matt Knight
b7ff552e49
update build api (#99) 2023-04-13 09:41:00 -07:00
Matt Knight
a42caf4909
update json tree api (#89)
* update json tree api

* sneak in namespacing of types into peripherals, registers, etc

* fix cache api usage, later try cache invalidation
2023-02-16 03:38:17 -05:00
Matt Knight
73a69a7102
catch up to zig modules (#88) 2023-02-12 19:01:31 +02:00
Matt Knight
ea296027b7
Fix build api breaks and morale (#85)
* fix build api breaks

* fix ci

* zig parser api update
2023-02-04 17:52:53 +01:00
Matt Knight
06def19adb
Rearchitect Regz (#63) 2022-12-29 16:37:41 -08:00
Matt Knight
44d26b261f
Characterize (#60)
* rename ndjson, add new tool to characterize sets of xml files

* remove some debug logs

* add characterized register schemas
2022-11-09 00:29:19 -08:00
Matt Knight
008ebcdc93
A quick fix for ATDF codegen and register groups (#59)
* A quick fix for ATDF codegen and register groups

The current code was expecting register groups and peripherals to have a
1:1 ratio, however the register groups under `modules` are more like
templates which are used to instantiate peripherals. This does the
minimal amount of refactoring in order for this to work and unblock some
users.

* i386 -> x86 target name update
2022-11-08 00:01:45 -08:00
Matt Knight
44da850fa4
add comptime for uses of ++ (#53)
* add comptime for uses of ++

* ptrCast instead of bitCast

* don't build i386 windows for now
2022-09-11 23:10:35 -07:00
Matt Hall
328f6dcdd0
Update build.zig: rename path->source (#39)
See ziglang/zig#11557
2022-05-28 18:58:44 +02:00
Matt Knight
7f401f0dcd
Vendor (#19)
* vendor dependencies
2022-05-16 09:56:54 -07:00
Matt Knight
c14767f34f
Add build wrapper for regz (#13)
* regz can now be used as a build step
2022-04-13 01:51:55 -07:00
Matt Knight
d0d1f15d8a
Test framework (#8)
* add template for PRs

* add CI workflow

* add test step and some empty tests

* reduce targets in workflow, add example svd

* added first test

* added line

* don't crosscompile from windows for now
2022-04-01 00:11:54 -07:00
Matt Knight
66c21e1a96
ATDF (#2)
* snapshotting so that I can work on this as I travel

* add atdf parsing

* update readme

* fix register generation edge case and skip fields named RESERVED
2022-03-13 17:17:40 -07:00
Matt Knight
af6e163706 big initial commit, thanks kprotty for helping with MmioInt() 2022-03-01 21:59:36 -08:00