diff --git a/crates/cpu/tests/main_memory.rs b/crates/cpu/tests/main_memory.rs index 622d488..fa9e2d2 100644 --- a/crates/cpu/tests/main_memory.rs +++ b/crates/cpu/tests/main_memory.rs @@ -49,7 +49,16 @@ fn test_main_memory() { sim.advance_time(SimDuration::from_micros(1)); //panic here at simulation dbg!(sim.read(sim.io().read_data)); // dbg! macro just displays the value you pass to it + + + for n in 0u64..4u64 { + sim.write(sim.io().addr, n); + // now wait 1us because why not + sim.advance_time(SimDuration::from_micros(1)); + } + + sim.flush_traces().unwrap(); // make sure everything is written to the output file -} \ No newline at end of file +}