Skip to content

Commit 79f11d1

Browse files
author
Shuntaro Tsunoda
committed
Pass --top-module to Verilator test compiles
1 parent 1122a51 commit 79f11d1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/veryl/src/runner/verilator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,15 @@ impl Runner for Verilator {
187187
}
188188
}
189189

190+
let top_name = test.to_string();
191+
190192
let rt = Runtime::new().unwrap();
191193

192194
rt.block_on(async {
193195
let compile = new_cmd("verilator")
194196
.args(&opt)
197+
.arg("--top-module")
198+
.arg(&top_name)
195199
.arg("-f")
196200
.arg(metadata.filelist_path())
197201
.arg("-o")

0 commit comments

Comments
 (0)