Fixes for concurrency and the fibonacci example

This commit is contained in:
Jan-Peter von Hunnius 2025-09-24 09:44:18 +02:00
parent 8fe6f3362c
commit f66f4c5d6c
14 changed files with 341 additions and 811 deletions

View file

@ -147,7 +147,7 @@ impl Component for GenericClock {
self.base.name()
}
fn pins(&self) -> &HashMap<String, Arc<Mutex<Pin>>> {
fn pins(&self) -> HashMap<String, Arc<Mutex<Pin>>> {
self.base.pins()
}
@ -294,7 +294,7 @@ mod tests {
#[test]
fn test_clock_timing_calculation() {
let clock = GenericClock::new("TEST_CLK".to_string(), 1.0); // 1Hz
let _clock = GenericClock::new("TEST_CLK".to_string(), 1.0); // 1Hz
let period = GenericClock::frequency_to_duration(1.0);
assert_eq!(period, Duration::from_secs(1));