stanford-ppl / spatial-lang

Spatial: "Specify Parameterized Accelerators Through Inordinately Abstract Language"
MIT License
99 stars 12 forks source link

Add ZCU102 DeviceTarget in Chisel generator's Util.scala template. #262

Open timran1 opened 6 years ago

timran1 commented 6 years ago

Building a Quicktest app for Xilinx ZCU102 Ultrascale+ board failed in the "make zcu-hw" step with the following error:

[info] Compiling 117 Scala sources to /data/experiment/arch/spatial/spatial-lang/gen/Quicktest_zynq/target/scala-2.11/classes ... [error] /data/experiment/arch/spatial/spatial-lang/gen/Quicktest_zynq/chisel/IOModule.scala:48:18: not found: value ZCU102 [error] Utils.target = ZCU102 [error] ^ [error] one error found [error] (Compile / compileIncremental) Compilation failed

Tracing back to the Chisel generator template used to generate this file, the declaration of DeviceTarget for ZCU102 was not added in Utils.scala. Simply adding the DeviceTarget declaration resulted in successful compilation.

Tested by executing the generated application on Xilinx ZCU102 Ultrascale+ ES2 board.