Commit graph

53 commits

Author SHA1 Message Date
bunnie
3f869ca389 bump utralib version for publication 2026-01-29 19:12:00 +08:00
bunnie
fba011db3a commit version bump so that we may publish our packages 2026-01-08 03:04:19 +08:00
bunnie
d874c3e5c2 commit for version bump 2025-12-16 02:02:37 +08:00
bunnie
82a47602c2 improve std interface for bio
- imem accessors are static-mapped slices
- AtomicCsr is used so that the bio structure is Sync allowing
it to be shared across threads
2025-10-28 18:01:17 +08:00
bunnie
dbb0a75118 bump versions
have to absorb a version change due to xous-semver change

might as well also update the utra/svd generator dependencies
since that's been held off for a long time now.
2025-10-06 13:23:18 +08:00
bunnie
1255bf12d9 FLAG DAY: fix all names to harmonize around 'bao1x'
The code base had evolved through several code names, interim
names, company names and chip names that alternatively did or did
not exist.

Baochip is the definitive name of the company, and the Baochip1x
(full part number BAO1X2S4F-WA) is the definitivey part number of
the SoC. For convenience, the part number is shortened to 'bao1x'
in most feature flags and variable references.

This commit fixes all of the odd names and removes some unmaintained
early targets.
2025-09-18 21:25:51 +08:00
bunnie
e87501f14d move debug lib in bdma so we can gate it on/off more easily 2025-09-14 02:10:10 +08:00
bunnie
11fb1452c9 cleanup the initialization code some more
move the full mem initailization above the memory load/store
pipe cleaner, and have the memory load/store actually do a load
and not just stores.
2025-08-20 01:49:48 +08:00
bunnie
891489f789 cleanup stack tracing code 2025-08-14 03:28:27 +08:00
Sam Chin
d02970c264 now with read 2025-08-13 18:53:33 +08:00
Sam Chin
7af77a1d10 can now set multiple clocks on multiple fifos 2025-08-13 15:34:39 +08:00
Sam Chin
f9cbf14d19 now the pins can toggle without impacting capsense since I removed reset 2025-08-13 14:52:50 +08:00
Sam Chin
a6643a3314 moving square wave generator over - it does not play nice with other things right now 2025-08-12 21:19:29 +08:00
Sam Chin
ba997be92f working modular gpio with all bio cores 2025-08-12 20:35:02 +08:00
Sam Chin
a5e95c9c6d pin up works for core 0 via lib 2025-08-12 19:39:56 +08:00
Sam Chin
db7690210a pin up in library 2025-08-12 17:06:42 +08:00
bunnie
cb1f82ecc8 add changes to work around BIO code issue
there is either a code bug or a compiler issue that is causing
something on stack to be smashed that is causing trouble for
the code base as a whole. Or it could be improperly initialized
statics? unclear. this needs to be worked through.

however, a series of changes were made that make the code
work. The biggest tell is that the code generally works perfectly
when optimizations are off, but when optimizations are on some
shenanigans have to happen to convince the compiler to not split
constant values across the entire arc of the function. More
diagnostics to follow.
2025-08-11 15:00:09 +08:00
bunnie
c9f1e29907 commit a "magic state" that seems to be able to get BIO core 3
unwedged
2025-08-10 22:32:13 +08:00
bunnie
a22cf7f58c add more debug feedback in tests 2025-08-08 03:37:43 +08:00
bunnie
51c5fc75be add artybio target, remove debug prints that don't map to the target 2025-06-15 01:03:01 +08:00
bunnie
6e0f6e23a1 fix warning from latest rust version 2025-05-25 14:07:58 +08:00
bunnie
e2379821e6 republish xous-rs to fix cargo test 2025-05-11 15:36:17 +08:00
bunnie
8a4959056b bump version for xous crate update - commit so we can publish crates 2025-05-11 14:45:24 +08:00
bunnie
a5fec5a1d1 fix formatting 2025-04-29 03:19:49 +08:00
bunnie
2f467d6f23 Merge remote-tracking branch 'origin/cram-dev' into cram-dev 2025-04-20 04:06:41 -07:00
bunnie
1bad10fb21 work-arounds for DMA on BIO
- writes need at least a "pipe cleaner" to set the pipe in the correct
state
- may also need a "double-write" to commit the data - this is to be
explored with a smaller test case
- DMA write only works over all corners at 700MHz when
  FCLK=ACLK (i.e. FCLK is at half rate)
2025-04-20 03:28:40 -07:00
bunnie
7bd545e95c minimize character output during tests
this significantly improves runtime in GLS mode
2025-04-20 03:28:40 -07:00
bunnie
66ec140cf3 limit spi debug output 2025-04-20 03:28:40 -07:00
bunnie
72763dc3c7 modify fast dma test for clocking option 2025-04-20 03:28:40 -07:00
bunnie
019f342c98 update bio tests for clkmode option 2025-04-20 03:28:40 -07:00
bunnie
437a5a2520 modify fast dma test for clocking option 2025-02-08 05:20:25 +08:00
bunnie
dff5bc7fa6 update bio tests for clkmode option 2025-02-08 04:35:02 +08:00
bunnie
ffb00cf6ad turns out it helps if you put explicit pull-ups on the I/Os
reverting this change
2024-11-28 16:14:14 +08:00
bunnie
a3619618d0 slow down toggle rate on i2c so it is compatible with slow pullups
the strict verilog model has weak pull-ups which model the
"slowness" of the rise with an extended Z-condition that takes
3us to pull up to a solid 1.
2024-11-28 15:53:12 +08:00
bunnie
3738db9f5c fix io-direction issue in testbench 2024-11-28 01:28:39 +08:00
bunnie
13702f2df0 fix unit test to match actual testbench tooling 2024-11-22 15:23:38 +08:00
bunnie
92509c448b some debug cleanup 2024-11-04 22:53:31 +08:00
bunnie
ab41cbc299 make aclk test allow both registered and unregistered mem configs
both are valid, which is picked in the end will depend on
timing closure
2024-09-26 18:19:27 +08:00
bunnie
0b419400c7 improve reset condition for filter & make pass criteria tighter
- filter setup can be impacted by previous engine running, make
sure engines are stopped and FIFOs flushed prior to test start
- when reading a filtered bank we can get garbage, so make the
test check for the specific value we should see.
2024-09-26 18:18:12 +08:00
bunnie
81f0523ee3 add functional multiply-accumulate test
note that multiplies must go from register to register,
they can't directly pull out of FIFO regs
2024-09-26 18:17:31 +08:00
bunnie
7b8f4d91ec add mul unit test 2024-09-26 18:17:14 +08:00
bunnie
75954de8d6 commit the version bump 2024-09-23 01:46:25 +08:00
bunnie
00da783c4d add filter tests to dma suite
the filter is on by default (which blocks all DMA access with
the null settings) and can be configured to restrict access to
regions of memory that contain secret materials.
2024-08-02 17:25:38 +08:00
bunnie
28142e2b24 cleanup bios tests 2024-07-13 22:34:59 +08:00
bunnie
c3bbbbd672 fix bug in i2c library where i/o was not set low
you have to write *0* to the clear register to set the port low.
always the weird gotcha on that one...
2024-07-05 01:59:14 +08:00
bunnie
059855201b add a simple dmareq handler test 2024-07-04 05:26:22 +08:00
bunnie
7f35fa8e72 add unit tests for aliased fifo pages 2024-07-04 03:58:33 +08:00
bunnie
7b2109b1cc improve bio tests
- don't dead reckon tests: read feedabck from the hw to know
when they are done
- fix doc bugs
- add more test feedback on long-running tests
2024-07-03 01:23:48 +08:00
bunnie
e0d09f1d3b more DMA corner cases
bytes, half-words, words, multi-core contention, oh my!
2024-07-01 16:45:02 +08:00
bunnie
64c281bfe0 add DMA tests to bio library 2024-06-30 03:28:22 +08:00