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

Fix RerunWithoutElaboration #238

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ class RerunWithoutElaboratonAndCompileSpec extends FreeSpec with Matchers {
"Demonstrate how to re-run a given test without recompiling" - {
"build once" in {
iotesters.Driver.execute(
Array("--backend-name", "verilator", "--target-dir", "build1", "--top-name", "PlusOne"), () => new PlusOne
Array("--backend-name", "verilator", "--target-dir", "test_run_dir/build1", "--top-name", "PlusOne"), () => new PlusOne
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make this path (and the one following at line 22) more DRYer?

) { c =>
new PlusOneTester(c, 0)
} should be (true)
}
"run again" in {
iotesters.Driver.run(() => new PlusOne, "./build1/VPlusOne") { c =>
} should be(true)

iotesters.Driver.run(() => new PlusOne, "./test_run_dir/build1/VPlusOne") { c =>
new PlusOneTester(c, 33333)
}
}
Expand All @@ -41,7 +40,7 @@ class PlusOne extends Module {
val io = IO(new Bundle {
val dog = Input(UInt(64.W))
val cat = Input(UInt(64.W))
val asp= Input(UInt(64.W))
val asp = Input(UInt(64.W))
val fox = Input(UInt(64.W))
val out = Output(UInt(64.W))
})
Expand Down