Header menu logo issie

MemoryEditorView Module

Functions and values

Function or value Description

baseSelector numBase changeBase

Full Usage: baseSelector numBase changeBase

Parameters:
Returns: ReactElement
numBase : NumberBase
changeBase : NumberBase -> unit
Returns: ReactElement

changeBase memoryEditorData dispatch numBase

Full Usage: changeBase memoryEditorData dispatch numBase

Parameters:
Returns: 'a
memoryEditorData : MemoryEditorData
dispatch : Msg -> 'a
numBase : NumberBase
Returns: 'a

dynamicMem

Full Usage: dynamicMem

Returns: Memory1
Returns: Memory1

memory1_

Full Usage: memory1_

Returns: Prism<Component, Memory1>

Prism to select Memory1 from ComponentType (if it exists)

Returns: Prism<Component, Memory1>

openMemoryDiffViewer memory1 memory2 model dispatch

Full Usage: openMemoryDiffViewer memory1 memory2 model dispatch

Parameters:
memory1 : Memory1
memory2 : Memory1
model : Model
dispatch : Msg -> unit

openMemoryEditor memory compId model dispatch

Full Usage: openMemoryEditor memory compId model dispatch

Parameters:

Open a popup to view and edit the content of a memory.

memory : Memory1
compId : ComponentId
model : Model
dispatch : Msg -> unit

project_

Full Usage: project_

Returns: Prism<Model, Project>
Returns: Prism<Model, Project>

reactMemoryAddressInputBox numberBase addressWidth setMemoryAddress dispatch

Full Usage: reactMemoryAddressInputBox numberBase addressWidth setMemoryAddress dispatch

Parameters:
    numberBase : NumberBase
    addressWidth : int32
    setMemoryAddress : bigint option -> Msg
    dispatch : Msg -> unit

Returns: ReactElement

Function creating react input box for memory address for use in WaveSim code (could also be used here). setMemoryAddress dispatches a message to set the memory address to that typed in the input box. numberBase, addressWidth configure the view. TODO: make box width variable according to memory width?

numberBase : NumberBase
addressWidth : int32
setMemoryAddress : bigint option -> Msg
dispatch : Msg -> unit
Returns: ReactElement

updateAllMemoryComps model

Full Usage: updateAllMemoryComps model

Parameters:
Returns: Model

Update all file-linked memory components in Draw Block and LoadedComponents

model : Model
Returns: Model

updateDrawBlockMemoryComps memUpdate p

Full Usage: updateDrawBlockMemoryComps memUpdate p

Parameters:
Returns: Model -> Model

Update all file-linked memory components in Draw Block (attached to symbols) and relevant loadedcomponent

memUpdate : Memory1 -> Memory1
p : Project
Returns: Model -> Model

updateLoadedComponentMemory memUpdate

Full Usage: updateLoadedComponentMemory memUpdate

Parameters:
Returns: Model -> Model

Updates FromData memories from linked files in all LoadedComponents INCLUDING that of the open sheet For the open sheet the update must also be made be on the draw blok component

memUpdate : Memory1 -> Memory1
Returns: Model -> Model

updateMemory p mem

Full Usage: updateMemory p mem

Parameters:
Returns: Memory1

Update one FromData Memory1 in project to equal its linked file memory file contents. Silently do not update components where the file reading fails

p : Project
mem : Memory1
Returns: Memory1

viewFilledNum width numBase

Full Usage: viewFilledNum width numBase

Parameters:
Returns: bigint -> string
width : int
numBase : NumberBase
Returns: bigint -> string

viewNum numBase

Full Usage: viewNum numBase

Parameters:
Returns: bigint -> string
numBase : NumberBase
Returns: bigint -> string

Type something to start searching.