feat: some ideas on resets
This commit is contained in:
parent
ac4e066bf8
commit
8f6320b30e
4 changed files with 24 additions and 21 deletions
|
|
@ -64,10 +64,11 @@ let m =
|
|||
try
|
||||
if !zelus then
|
||||
match !model with
|
||||
| None -> Format.eprintf "Missing model\n"; exit 2
|
||||
| Some "ballz" -> wrap_zelus (lift Ballz.main)
|
||||
| Some "ballzm" -> wrap_zelus (lift_hsim Ballz_main.main)
|
||||
| Some "sincosz" -> wrap_zelus (lift Sincosz.f)
|
||||
| None -> Format.eprintf "Missing model\n"; exit 2
|
||||
| Some "ballz" -> wrap_zelus (lift Ballz.main)
|
||||
| Some "ballzm" -> wrap_zelus (lift_hsim Ballz_main.main)
|
||||
| Some "sincosz" -> wrap_zelus (lift Sincosz.f)
|
||||
| Some "sincoszm" -> wrap_zelus (lift_hsim Sincosz_main.main)
|
||||
(* | Some "count" -> wrap_zelus (lift Count.count) *)
|
||||
| Some s -> Format.eprintf "Unknown model: %s\n" s; exit 2
|
||||
else
|
||||
|
|
@ -86,7 +87,7 @@ let st = if !inplace then (module State.InPlaceSimState : State.SimState)
|
|||
else (module State.FunctionalSimState : State.SimState)
|
||||
|
||||
let output =
|
||||
if !no_print then Hsim.Utils.ignore
|
||||
if !no_print || !zelus then Hsim.Utils.ignore
|
||||
else if !speed then Output.print_h
|
||||
else Output.print (* Output.ignore *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue