Use sane defaults for cache hierarchies.
This commit is contained in:
parent
0552a715db
commit
23ff56ef82
@ -16,7 +16,7 @@ updateChangeRawModel l f m =
|
|||||||
updateCreateRawModel : Model -> (Model, Cmd Msg)
|
updateCreateRawModel : Model -> (Model, Cmd Msg)
|
||||||
updateCreateRawModel m =
|
updateCreateRawModel m =
|
||||||
let
|
let
|
||||||
freshRawModel = { blockSize = "", setCount = "", setSize = "" }
|
freshRawModel = { blockSize = "4", setCount = "4", setSize = "3" }
|
||||||
newModel = { m | rawHierarchy = m.rawHierarchy ++ [ freshRawModel ] }
|
newModel = { m | rawHierarchy = m.rawHierarchy ++ [ freshRawModel ] }
|
||||||
cmd = Cmd.none
|
cmd = Cmd.none
|
||||||
in
|
in
|
||||||
|
@ -8,15 +8,11 @@ import CacheSim.View exposing (..)
|
|||||||
import Browser exposing (Document, document)
|
import Browser exposing (Document, document)
|
||||||
import Html exposing (text)
|
import Html exposing (text)
|
||||||
|
|
||||||
testCacheModelHierarchy =
|
|
||||||
[ { blockSize = "128", setCount = "8", setSize = "1" }
|
|
||||||
]
|
|
||||||
|
|
||||||
init : Flags -> (Model, Cmd Msg)
|
init : Flags -> (Model, Cmd Msg)
|
||||||
init f =
|
init f =
|
||||||
let
|
let
|
||||||
initialModel =
|
initialModel =
|
||||||
{ rawHierarchy = testCacheModelHierarchy
|
{ rawHierarchy = []
|
||||||
, hierarchy = Nothing
|
, hierarchy = Nothing
|
||||||
, accessView = Nothing
|
, accessView = Nothing
|
||||||
, accessInput = ""
|
, accessInput = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user