diff --git a/src/main/scala/ee/hrzn/chryse/tasks/BuildTask.scala b/src/main/scala/ee/hrzn/chryse/tasks/BuildTask.scala index a6aee54..622b1c1 100644 --- a/src/main/scala/ee/hrzn/chryse/tasks/BuildTask.scala +++ b/src/main/scala/ee/hrzn/chryse/tasks/BuildTask.scala @@ -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, )