mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-06-08 14:05:42 +09:00
Compare commits
No commits in common. "d6ee19e000fd83b5e2b6c5eccb5797f155003157" and "b492d097e7dc1332c6de8c2edcc7888ef562d92d" have entirely different histories.
d6ee19e000
...
b492d097e7
2 changed files with 2 additions and 6 deletions
|
@ -99,11 +99,7 @@ pub fn generate_flatmap(xml: &path::Path, out: Option<&path::Path>) -> Result<()
|
||||||
}
|
}
|
||||||
let f: Box<dyn Write> = match out {
|
let f: Box<dyn Write> = match out {
|
||||||
Some(f) => {
|
Some(f) => {
|
||||||
let file = File::options()
|
let file = File::options().write(true).truncate(true).open(f)?;
|
||||||
.create(true)
|
|
||||||
.write(true)
|
|
||||||
.truncate(true)
|
|
||||||
.open(f)?;
|
|
||||||
Box::new(BufWriter::new(file))
|
Box::new(BufWriter::new(file))
|
||||||
}
|
}
|
||||||
None => Box::new(io::stdout()),
|
None => Box::new(io::stdout()),
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub struct FlattenedRegisterEntry<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Flattened register map.
|
/// Flattened register map.
|
||||||
pub type FlattenedRegisterMap<'a> = Vec<Option<FlattenedRegisterEntry<'a>>>;
|
type FlattenedRegisterMap<'a> = Vec<Option<FlattenedRegisterEntry<'a>>>;
|
||||||
|
|
||||||
impl Module {
|
impl Module {
|
||||||
/// Validate the address assignment, generating a flatten register map.
|
/// Validate the address assignment, generating a flatten register map.
|
||||||
|
|
Loading…
Add table
Reference in a new issue