Add VPI examples

This commit is contained in:
Nikolay Puzanov
2022-07-12 18:47:44 +03:00
parent d298a14bff
commit 2c8c60429c
10 changed files with 257 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
;; -*- scheme -*-
;; Compile VPI module for each test
(let ((top "vpi_log2"))
(map
(lambda (arg)
(utest/tb
((format "log2_~a" arg))
(if (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)))
(iota 20)))