Add examples. Add more info to README

This commit is contained in:
Nikolay Puzanov
2022-07-09 12:34:40 +03:00
parent e917908049
commit 8e2514e895
7 changed files with 288 additions and 29 deletions

View File

@@ -0,0 +1,25 @@
;; -*- scheme -*-
;; ^^^ this comment tells Emacs to use Scheme mode
(utest/tb
("simple_counter_permanent"
"Testbench for Simple Counter with permanent work dir")
;; get base dir and make work dir
(let* ((base (utest/base-path))
(work (format "~a/work" base)))
(when (not (file-exists? work))
(mkdir work))
;; parameterize work dir
(parameterize
((utest/work-path work)
(utest/force-dump #t))
;; testbench body
(utest/run-simulation-iverilog
;; sources
'("simple_counter.sv" "simple_counter_tb.sv")
;; top module name
"simple_counter_tb"))))