mirror of
https://github.com/annoyatron255/yosys4gal.git
synced 2024-12-22 18:52:23 +00:00
add unused-row assertion
This commit is contained in:
parent
d3c498231e
commit
e5a1f84bf8
|
@ -96,6 +96,7 @@ fn map_remaining_olmc(
|
||||||
Ok(x)
|
Ok(x)
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
|
assert!(!unused.is_empty(), "should have rows available");
|
||||||
let minsize = unused.iter().map(|x| x.1).min().unwrap();
|
let minsize = unused.iter().map(|x| x.1).min().unwrap();
|
||||||
Err(MappingError::SopTooBig {
|
Err(MappingError::SopTooBig {
|
||||||
name: sop.name.unwrap(),
|
name: sop.name.unwrap(),
|
||||||
|
|
Loading…
Reference in a new issue