it: add fifo test
This commit is contained in:
parent
f45cbed53b
commit
73bf4465e2
9 changed files with 264 additions and 3 deletions
14
src/state.rs
14
src/state.rs
|
|
@ -1445,6 +1445,20 @@ impl State {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "it")]
|
||||
pub fn latch(&self, connector: ConnectorId) {
|
||||
if let Some(output) = self.root.outputs.get(&connector) {
|
||||
output.latched(false);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "it")]
|
||||
pub fn latch_tearing(&self, connector: ConnectorId) {
|
||||
if let Some(output) = self.root.outputs.get(&connector) {
|
||||
output.latched(true);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "it")]
|
||||
pub async fn idle(&self) {
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue