mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add dvt target
resurrecting some old hardware as an efuse testing target; new hardware is too precious at the moment given the ridiculous shortage of FPGAs on the market.
This commit is contained in:
parent
8e05925cfa
commit
74fe8c989c
7 changed files with 13280 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ std = []
|
||||||
# Maintainer note: add checks in build.rs to ensure only one is selected.
|
# Maintainer note: add checks in build.rs to ensure only one is selected.
|
||||||
precursor-c809403 = []
|
precursor-c809403 = []
|
||||||
precursor-c809403-perflib = []
|
precursor-c809403-perflib = []
|
||||||
|
precursor-2753c12-dvt = []
|
||||||
|
|
||||||
# The SVD gitrev as specified above is only invoked to track fine-grained
|
# The SVD gitrev as specified above is only invoked to track fine-grained
|
||||||
# changes between target revisions. Below is the overall target switch,
|
# changes between target revisions. Below is the overall target switch,
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ fn main() {
|
||||||
allow_single_target_feature!("precursor", "hosted", "renode");
|
allow_single_target_feature!("precursor", "hosted", "renode");
|
||||||
|
|
||||||
#[cfg(feature="precursor")]
|
#[cfg(feature="precursor")]
|
||||||
allow_single_gitrev_feature!("precursor-c809403", "precursor-c809403-perflib");
|
allow_single_gitrev_feature!("precursor-c809403", "precursor-c809403-perflib", "precursor-2753c12-dvt");
|
||||||
|
|
||||||
// ----- select an SVD file based on a specific revision -----
|
// ----- select an SVD file based on a specific revision -----
|
||||||
#[cfg(feature="precursor-c809403")]
|
#[cfg(feature="precursor-c809403")]
|
||||||
|
|
@ -89,6 +89,11 @@ fn main() {
|
||||||
#[cfg(feature="renode")]
|
#[cfg(feature="renode")]
|
||||||
let generated_filename = "src/generated/renode.rs";
|
let generated_filename = "src/generated/renode.rs";
|
||||||
|
|
||||||
|
#[cfg(feature="precursor-2753c12-dvt")]
|
||||||
|
let svd_filename = "precursor/soc-dvt-2753c12.svd";
|
||||||
|
#[cfg(feature="precursor-2753c12-dvt")]
|
||||||
|
let generated_filename = "src/generated/precursor_dvt_2753c12.rs";
|
||||||
|
|
||||||
// ----- control file generation and rebuild sequence -----
|
// ----- control file generation and rebuild sequence -----
|
||||||
// check and see if the configuration has changed since the last build. This should be
|
// check and see if the configuration has changed since the last build. This should be
|
||||||
// passed by the build system (e.g. xtask) if the feature is used.
|
// passed by the build system (e.g. xtask) if the feature is used.
|
||||||
|
|
|
||||||
7161
utralib/precursor/soc-dvt-2753c12.svd
Normal file
7161
utralib/precursor/soc-dvt-2753c12.svd
Normal file
File diff suppressed because it is too large
Load diff
BIN
utralib/precursor/soc_csr_dvt-2753c12.bin
Normal file
BIN
utralib/precursor/soc_csr_dvt-2753c12.bin
Normal file
Binary file not shown.
|
|
@ -12,6 +12,11 @@ mod precursor_perf_c809403;
|
||||||
#[cfg(feature="precursor-c809403-perflib")]
|
#[cfg(feature="precursor-c809403-perflib")]
|
||||||
pub use precursor_perf_c809403::*;
|
pub use precursor_perf_c809403::*;
|
||||||
|
|
||||||
|
#[cfg(feature="precursor-2753c12-dvt")]
|
||||||
|
mod precursor_dvt_2753c12;
|
||||||
|
#[cfg(feature="precursor-2753c12-dvt")]
|
||||||
|
pub use precursor_dvt_2753c12::*;
|
||||||
|
|
||||||
#[cfg(feature="renode")]
|
#[cfg(feature="renode")]
|
||||||
mod renode;
|
mod renode;
|
||||||
#[cfg(feature="renode")]
|
#[cfg(feature="renode")]
|
||||||
|
|
|
||||||
6094
utralib/src/generated/precursor_dvt_2753c12.rs
Normal file
6094
utralib/src/generated/precursor_dvt_2753c12.rs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -285,6 +285,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
.add_feature("perfcounter")
|
.add_feature("perfcounter")
|
||||||
.add_kernel_feature("v2p");
|
.add_kernel_feature("v2p");
|
||||||
}
|
}
|
||||||
|
Some("dvt-image") => {
|
||||||
|
// this image targets a mostly deprecated DVT hardware generation. The purpose of it is to re-use some
|
||||||
|
// of the now-defunct hardware for eFuse code testing, especially since FPGAs have gotten very scarce.
|
||||||
|
// Once the eFuse path is validated, we could remove this target.
|
||||||
|
let mut services: Vec<String> = user_pkgs
|
||||||
|
.into_iter()
|
||||||
|
.map(String::from).collect();
|
||||||
|
services.retain(|x| x != "codec"); // codec is not compatible with DVT boards
|
||||||
|
|
||||||
|
builder.target_precursor("2753c12-dvt")
|
||||||
|
.add_services(&services)
|
||||||
|
.add_apps(&get_cratespecs());
|
||||||
|
}
|
||||||
Some("tts") => {
|
Some("tts") => {
|
||||||
builder.target_precursor(PRECURSOR_SOC_VERSION);
|
builder.target_precursor(PRECURSOR_SOC_VERSION);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue