Small cosmetic fix - replace 'if' to 'and'

This commit is contained in:
Nikolay Puzanov 2022-07-12 18:51:40 +03:00
parent 2c8c60429c
commit fa1170eb59
2 changed files with 21 additions and 25 deletions

View File

@ -4,7 +4,7 @@
(let ((top "vpi_log2"))
;; compile VPI module in the base directory
(if (utest/iverilog-compile-vpi "vpi_log2.c"
(and (utest/iverilog-compile-vpi "vpi_log2.c"
#:output-dir (utest/base-path)
#:name top #:libs "m")
(map
@ -20,6 +20,4 @@
#:vpimods top
;; VPI modules search path
#:vpipaths (utest/base-path))))
(iota 20))
#f))
(iota 20))))

View File

@ -8,12 +8,10 @@
(utest/tb
((format "log2_~a" arg))
(if (utest/iverilog-compile-vpi "vpi_log2.c" #:name top #:libs "m")
(and (utest/iverilog-compile-vpi "vpi_log2.c" #:name top #:libs "m")
(utest/run-simulation-iverilog
"vpi_log2.sv"
top
#:parameters `((ARGUMENT ,arg))
#:vpimods top)
#f)))
#:vpimods top))))
(iota 20)))