Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quentin Aristote
Microprocessor
Commits
eee39d02
Commit
eee39d02
authored
Jan 22, 2019
by
Quentin Aristote
Browse files
corrected timer
parent
e817cdf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
netlist-simulator/main.ml
View file @
eee39d02
...
...
@@ -189,7 +189,7 @@ let rec read_value id t =
let
print_only
=
ref
false
let
number_steps
=
ref
(
-
1
)
let
rom_directory
=
ref
"./"
let
cycle_duration
=
ref
0
.
05
let
cycle_duration
=
ref
0
.
(* The main part of the program *)
let
compile
filename
=
...
...
@@ -421,7 +421,7 @@ let main () =
^
"cter n is the ASCII character cor"
^
"responding encoded by the byte RO"
^
"M[n]ROM[n+1]...ROM[n+7]."
;
"-time"
,
Arg
.
Int
(
fun
t
->
cycle_duration
:=
float_of_int
t
/.
100
.
)
,
"-time"
,
Arg
.
Int
(
fun
t
->
cycle_duration
:=
float_of_int
t
/.
100
0
.
)
,
"Minimum time in millisecondes each cycle has to take, set to 0 by default."
]
compile
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment