Skip to content

Commit

Permalink
Improve windowed waveform simulator RAM display
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcl committed Sep 2, 2024
1 parent 6b2afe3 commit 52e2e77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Renderer/UI/WaveSim/WaveSimRams.fs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,16 @@ let ramTable (dispatch: Msg -> unit) (wsModel: WaveSimModel) (model: Model) ((ra


let lineItems =
let isInWindow loc = loc >= startDisplayLoc && loc < startDisplayLoc + bigint Constants.maxRamRowsDisplayed
memData.Data
|> (if windowedDisplay then
generatewindowlocations startDisplayLoc Constants.maxRamRowsDisplayed
>> addReadWrite fc step
>> Map.toList
>> List.map (fun (a,(d,rw)) -> a,d,rw)
>> List.sort
>> addEndPoints
>> addGapLines false
>> List.sortBy (fun (start,_,_) -> if isInWindow start then 0 else 1) // put read and write at bottom if outside window
>> List.map print1
else
addReadWrite fc step
>> Map.toList
Expand Down

0 comments on commit 52e2e77

Please sign in to comment.