Skip to content

Commit

Permalink
Mend AsyncROM waveform view bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcl committed Feb 2, 2022
1 parent 6f3b297 commit bd0d692
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Renderer/Simulator/FastRun.fs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,13 @@ let rec extractFastSimulationState
match Map.tryFind (cid, ap) fs.FComps with
| Some fc ->
match fc.State with
| None -> failwithf "What? extracting State in step %d from %s failed" step fc.FullName
| None ->
match fc.SimComponent.Type with
// asynch ROMs have no state: value is always the same
| AsyncROM1 romContents ->
RamState romContents
| _ ->
failwithf "What? extracting State in step %d from %s failed" step fc.FullName
| Some stepArr ->
match Array.tryItem (step% fs.MaxArraySize) stepArr.Step with
| Some state -> state
Expand Down

0 comments on commit bd0d692

Please sign in to comment.