Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated main.rkt to support selective generation of rosette's output-… #460

Merged
merged 14 commits into from
Aug 31, 2024
Merged
5 changes: 5 additions & 0 deletions bin/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
(define cvc4-path (make-parameter #f))
(define boolector-path (make-parameter #f))
(define yosys-log-filepath (make-parameter #f))
(define output-smt-path (make-parameter #f))

(command-line
#:program "lakeroad"
Expand Down Expand Up @@ -128,6 +129,7 @@
(when (not (file-exists? v))
(error (format "File ~a does not exist." v)))
(verilog-module-filepath v))]
["--output-smt-path" v "Specify the output of the SMT solver to a file." (output-smt-path v)]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, this is a directory, not a file. Please change the docstring here.

["--top-module-name"
v
"Top module name if --verilog-module-filepath is specified."
Expand Down Expand Up @@ -274,6 +276,9 @@
(list (cons ',(string->symbol (verilog-module-out-signal)) (bv->signal ,body)))))
(eval out-fn ns))

(when (output-smt-path)
(output-smt (output-smt-path)))

;;; The bitvector expression we're trying to synthesize.
(define bv-expr
(cond
Expand Down
Loading