tweaks for dev environment

This commit is contained in:
bunnie 2025-08-07 01:03:15 +08:00
parent 580af8578a
commit cbedc3a091
2 changed files with 47 additions and 14 deletions

View file

@ -22,10 +22,12 @@ artybio = [
"linked_list_allocator", "linked_list_allocator",
"xous-bio-bdma/artybio", "xous-bio-bdma/artybio",
"xous-bio-bdma/baremetal", "xous-bio-bdma/baremetal",
"nto-bio" "nto-bio",
] ]
artyvexii = ["utralib/artyvexii", "linked_list_allocator"] artyvexii = ["utralib/artyvexii", "linked_list_allocator"]
v0p9 = []
# Baochip feature tree below
v0p9 = [] # selects RAM timings for VDD core = 0.9V
cramium-soc = [ cramium-soc = [
"utralib/cramium-soc", "utralib/cramium-soc",
"linked_list_allocator", "linked_list_allocator",
@ -33,14 +35,15 @@ cramium-soc = [
"cramium-api", "cramium-api",
"v0p9", "v0p9",
] ]
# activates BIO test suite
nto-bio = [ nto-bio = [
"utralib/cramium-soc", "xous-bio-bdma/bio-mul",
"linked_list_allocator", "xous-bio-bdma/baremetal",
"cramium-hal/loader-baosec", "xous-bio-bdma/cramium-soc",
"cramium-api", "xous-bio-bdma/tests",
"v0p9",
] ]
# selects features for EVB target (defaults to baosec)
nto-evb = []
verilator-only = [] verilator-only = []
default = ["artyvexii"] default = ["artyvexii"]

View file

@ -3,7 +3,7 @@ use alloc::vec::Vec;
#[allow(unused_imports)] #[allow(unused_imports)]
use utralib::*; use utralib::*;
#[cfg(feature = "artybio")] #[cfg(any(feature = "artybio", feature = "nto-bio"))]
use xous_bio_bdma::*; use xous_bio_bdma::*;
pub struct Repl { pub struct Repl {
@ -225,6 +225,40 @@ impl Repl {
#[cfg(feature = "nto-bio")] #[cfg(feature = "nto-bio")]
"bio" => { "bio" => {
const BIO_TESTS: usize =
// get_id
1
// dma
+ 4 * 5 + 1
// clocking modes
// + 4 + 4 + 4 + 4 + 2
// stack test
+ 1
// hello word, hello multiverse, aclk_tests
+ 3
// fifo_basic
+ 1
// host_fifo_tests
+ 1
// spi_test
+ 1
// i2c_test
+ 1
// complex_i2c_test
+ 1
// fifo_level_tests
+ 1
// fifo_alias_tests
+ 1
// event_aliases
+ 1
// dmareq_test
+ 1
// bio-mul
+ 1
// filter test
+ 1;
crate::println!("--- Starting On-Demand BIO Test Suite ---"); crate::println!("--- Starting On-Demand BIO Test Suite ---");
// Local counter to replace `self.passing_tests` from the TestRunner // Local counter to replace `self.passing_tests` from the TestRunner
let mut passing_tests = 0; let mut passing_tests = 0;
@ -286,11 +320,7 @@ impl Repl {
passing_tests += bio_tests::units::fifo_level_tests(); passing_tests += bio_tests::units::fifo_level_tests();
// Final report // Final report
crate::println!( crate::println!("\n--- BIO Tests Complete: {}/{} passed. ---\n", passing_tests, BIO_TESTS);
"\n--- BIO Tests Complete: {}/{} passed. ---\n",
passing_tests,
BIO_TESTS_FINAL
);
} }
"echo" => { "echo" => {
for word in args { for word in args {