clash-shake 0.2.0 → 0.2.1
raw patch · 4 files changed
+15/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Clash.Shake: withTargets :: [String] -> Rules a -> Rules a
Files
- clash-shake.cabal +1/−1
- src/Clash/Shake.hs +7/−0
- src/Clash/Shake/SymbiFlow.hs +1/−1
- template/xilinx-vivado/project.tcl.mustache +6/−4
clash-shake.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: clash-shake-version: 0.2.0+version: 0.2.1 synopsis: Shake rules for building Clash programs description: Shake rules for building Clash programs and synthesizing FPGA configuration. Contains build rules for Xilinx ISE and Xilinx Vivado
src/Clash/Shake.hs view
@@ -12,6 +12,8 @@ , binImage , toolchain++ , withTargets ) where import Development.Shake@@ -170,3 +172,8 @@ (|>) :: String -> Action () -> (String, Action ()) (|>) = (,)++withTargets :: [String] -> Rules a -> Rules a+withTargets targets rules+ | null targets = rules+ | otherwise = want targets >> withoutActions rules
src/Clash/Shake/SymbiFlow.hs view
@@ -28,7 +28,7 @@ srcs <- manifestSrcs verilogs <- verilogSrcs xdcs <- xdcSrcs- need $ verilogs <> xdcs+ need $ srcs <> verilogs <> xdcs symbiflow' "symbiflow_synth" $ [ "-d", targetFamily
template/xilinx-vivado/project.tcl.mustache view
@@ -1,5 +1,7 @@ set origin_dir "{{rootDir}}" set _xil_proj_name_ "{{project}}"+set vivadoVersion [version -short]+set vivadoVintage [lindex [split $vivadoVersion "."] 0] set orig_proj_dir "[file normalize "$origin_dir/"]" @@ -72,10 +74,10 @@ # Create 'synth_1' run (if not found) if {[string equal [get_runs -quiet synth_1] ""]} {- create_run -name synth_1 -part {{part}} -flow {Vivado Synthesis 2019} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1+ create_run -name synth_1 -part {{part}} -flow {Vivado Synthesis $vivadoVintage} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1 } else { set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]- set_property flow "Vivado Synthesis 2019" [get_runs synth_1]+ set_property flow "Vivado Synthesis $vivadoVintage" [get_runs synth_1] } set obj [get_runs synth_1] set_property set_report_strategy_name 1 $obj@@ -97,10 +99,10 @@ # Create 'impl_1' run (if not found) if {[string equal [get_runs -quiet impl_1] ""]} {- create_run -name impl_1 -part {{part}} -flow {Vivado Implementation 2019} -strategy "Vivado Implementation Defaults" -report_strategy {No Reports} -constrset constrs_1 -parent_run synth_1+ create_run -name impl_1 -part {{part}} -flow {Vivado Implementation $vivadoVintage} -strategy "Vivado Implementation Defaults" -report_strategy {No Reports} -constrset constrs_1 -parent_run synth_1 } else { set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]- set_property flow "Vivado Implementation 2019" [get_runs impl_1]+ set_property flow "Vivado Implementation $vivadoVintage" [get_runs impl_1] } set obj [get_runs impl_1] set_property set_report_strategy_name 1 $obj