mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-06-08 05:55:44 +09:00
Compare commits
2 commits
b492d097e7
...
d6ee19e000
Author | SHA1 | Date | |
---|---|---|---|
d6ee19e000 | |||
2accbc3910 |
2 changed files with 6 additions and 2 deletions
|
@ -99,7 +99,11 @@ 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().write(true).truncate(true).open(f)?;
|
let file = File::options()
|
||||||
|
.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.
|
||||||
type FlattenedRegisterMap<'a> = Vec<Option<FlattenedRegisterEntry<'a>>>;
|
pub 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