Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
BuildTask: write debug RTLIL.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jun 6, 2024
1 parent 08de64a commit 02f9694
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/ee/hrzn/chryse/tasks/BuildTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ private[chryse] object BuildTask extends BaseTask {
writePath(verilogPath, verilog)

val yosysScriptPath = s"$buildDir/${platform.id}/$name.ys"
val rtlilPath = s"$buildDir/${platform.id}/$name.il"
val jsonPath = s"$buildDir/${platform.id}/$name.json"
writePath(
yosysScriptPath,
s"""read_verilog -sv $verilogPath
|${platform.yosysSynthCommand("chrysetop")}
|write_rtlil $rtlilPath
|write_json $jsonPath""".stripMargin,
)

Expand Down

0 comments on commit 02f9694

Please sign in to comment.