# Synthesis error

**URL:** <https://forum.liquidinstruments.com/t/synthesis-error/1232>\
**Category:** Moku Cloud Compile\
**Created:** [October 6, 2025, 11:52pm UTC](https://forum.liquidinstruments.com/t/synthesis-error/1232 "2025-10-06T23:52:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ira\_Comb](https://avatars.discourse-cdn.com/v4/letter/i/97f17d/32.png) [@Ira\_Comb](https://forum.liquidinstruments.com/u/Ira_Comb)\
**Post date:** [October 6, 2025, 11:52pm UTC](https://forum.liquidinstruments.com/t/synthesis-error/1232/1 "2025-10-06T23:52:52Z")

</div>

Hello, I’m getting a synthesis error when I try compiling example code from Moku’s github page. For example when I try compiling “[AddSubtract\_16\_example.vhd](https://github.com/liquidinstruments/moku-examples/blob/main/mcc/IP%20Core%20Templates%20and%20Examples/Adder_Subtractor/AddSubtract_16_example.vhd "AddSubtract\_16\_example.vhd")“ (mcc/IP Core Templates and Examples/Adder\_Subtractor) my synthesis log file is:

#-----------------------------------------------------------

# Vivado v2022.2\_AR000035739\_AR000034905 (64-bit)

# SW Build 3671981 on Fri Oct 14 04:59:54 MDT 2022

# IP Build 3669848 on Fri Oct 14 08:30:02 MDT 2022

# Start of session at: Mon Oct 6 23:43:08 2025

# Process ID: 2884341

# Current directory: /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/output

# Command line: vivado -log synthesis.log -nojournal -mode batch -source /deps/compile/scripts/tcl/synth.tcl -tclargs /deps/compile 40 xc7z020clg400-1 mokugo /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/src /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/lib /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores 2 3 0 4 4 5 3 2 0

# Log file: /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/output/synthesis.log

# Journal file:

# Running On: mcc-workers-7446cfdb8d-qxtw9, OS: Linux, CPU Frequency: 4491.536 MHz, CPU Physical cores: 28, Host memory: 50485 MB

#-----------------------------------------------------------  
source /deps/compile/scripts/tcl/synth.tcl

# set TOP\_DIR [lindex $argv 0]

# set HW\_VER [lindex $argv 1]

# set HG\_PART [lindex $argv 2]

# set HG\_BOARD [lindex $argv 3]

# set SRC\_DIR [lindex $argv 4]

# set LIB\_DIR [lindex $argv 5]

# set IP\_DCP\_DIR [lindex $argv 6]

# set NUM\_INS [lindex $argv 7]

# set NUM\_OUTS [lindex $argv 8]

# set NUM\_MONS [lindex $argv 9]

# set IN\_LANES [lindex $argv 10]

# set OUT\_LANES [lindex $argv 11]

# set NUM\_SLOT\_INS [lindex $argv 12]

# set NUM\_SLOT\_OUTS [lindex $argv 13]

# set NUM\_CBUFS [lindex $argv 14]

# set VARIANT [lindex $argv 15]

# set\_part $HG\_PART

INFO: [Coretcl 2-1500] The part has been set to ‘xc7z020clg400-1’ for the current project only. Run set\_part -help for more details. To evaluate different speed grades in the current design, use the set\_speed\_grade command, or use the open\_checkpoint -part command to change the part used by an existing checkpoint design.

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/Instrument.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/AXITypes.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/InterlacingSupport.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/MemoryMapSPI.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/InstrumentCC.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/MercurySupport.vhd]

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/MokuSupport.vhd]

# set INCLUDE\_ENTITY\_DEFN 1

# source $TOP\_DIR/utilities/utilities.tcl

## proc findFiles { basedir pattern } {

## 

## # Fix the directory name, this ensures the directory name is in the

## # native format for the platform and contains a final directory seperator

## set basedir [string trimright [file join [file normalize $basedir] { }]]

## set fileList {}

## 

## # Look in the current directory for matching files, -type {f r}

## # means ony readable normal files are looked at, -nocomplain stops

## # an error being thrown if the returned list is empty

## foreach fileName [glob -nocomplain -type {f r} -path $basedir $pattern] {

## lappend fileList $fileName

## }

## 

## # Now look for any sub direcories in the current directory

## foreach dirName [glob -nocomplain -type {d r} -path $basedir \*] {

## # Recusively call the routine on the sub directory and append any

## # new files to the results

## set subDirList [findFiles $dirName $pattern]

## if { [llength $subDirList] \> 0 } {

## foreach subDirFile $subDirList {

## lappend fileList $subDirFile

## }

## }

## }

## return $fileList

## }

# set VHDL\_SRC [findFiles $SRC\_DIR “\*.vhd”]

# if {[llength $VHDL\_SRC] \> 0} {

# # Prevent re-definition of CustomWrapper;

# # without this check, Vivado or this suite of

# # scripts will not report any errors and will

# # still generate the deployable bitstream.

# # see [Jira](https://liquidinstruments.atlassian.net/browse/SW-398)

# foreach VHDL\_FILE $VHDL\_SRC {

# if {[catch {exec grep -qi “entity CustomWrapper is” $VHDL\_FILE} result] == 0} {

# puts “Error: The entity ‘CustomWrapper’ is already defined in the library.”

# exit 1

# }

# }

# read\_vhdl -vhdl2008 $VHDL\_SRC

# }

# set VERILOG\_SRC [findFiles $SRC\_DIR “\*.v”]

# if {[llength $VERILOG\_SRC] \> 0} {

# read\_verilog $VERILOG\_SRC

# set\_property file\_type {SystemVerilog} [get\_files $VERILOG\_SRC]

# foreach V\_FILE $VERILOG\_SRC {

# if {[catch {exec grep -qi “module CustomWrapper” $V\_FILE} result] == 0} {

# set INCLUDE\_ENTITY\_DEFN 0

# }

# }

# }

# if {$INCLUDE\_ENTITY\_DEFN == 1} {

# read\_vhdl -vhdl2008 [glob $LIB\_DIR/CustomWrapper.vhd]

# }

# set ip\_dcps [glob -nocomplain $IP\_DCP\_DIR/\*.dcp \*.dcp]

# puts $ip\_dcps

/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/AddSubtract\_16.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/CIC\_Dec\_3Ordx8.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/Cordic\_Translate\_16.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/Counter\_32.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FFT\_1024.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FFT\_65536.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FIR\_Filter\_7coef.dcp /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/SineGen\_48.dcp

# foreach dcp $ip\_dcps {

# read\_checkpoint $dcp

# }

Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/AddSubtract\_16.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/CIC\_Dec\_3Ordx8.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/Cordic\_Translate\_16.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/Counter\_32.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FFT\_1024.dcp  
CRITICAL WARNING: [Vivado 12-5469] The design checkpoint file ‘/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FFT\_1024.dcp’ was generated for an IP by an out of context synthesis run and should not directly be used as a source in a Vivado flow. It is strongly recommended that that the original IP source file (.xci) be used.  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FFT\_65536.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/FIR\_Filter\_7coef.dcp  
Command: read\_checkpoint /workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/SineGen\_48.dcp  
CRITICAL WARNING: [Vivado 12-5469] The design checkpoint file ‘/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/ipcores/SineGen\_48.dcp’ was generated for an IP by an out of context synthesis run and should not directly be used as a source in a Vivado flow. It is strongly recommended that that the original IP source file (.xci) be used.

# set\_property library Moku [get\_files -all -of\_objects [get\_filesets sources\_1]]

# set\_property top Instrument [current\_fileset]

# set\_property top\_lib xil\_defaultlib [current\_fileset]

# set\_property top\_arch Custom [current\_fileset]

# set\_property top\_file Top [current\_fileset]

# set\_property generic “HW\_VER=$HW\_VER NUM\_INS=$NUM\_INS NUM\_OUTS=$NUM\_OUTS NUM\_MONS=$NUM\_MONS IN\_LANES=$IN\_LANES OUT\_LANES=$OUT\_LANES NUM\_SLOT\_INS=$NUM\_SLOT\_INS NUM\_SLOT\_OUTS=$NUM\_SLOT\_OUTS NUM\_CBUFS=$NUM\_CBUFS VARIANT=$VARIANT” [current\_fileset]

# synth\_design -mode out\_of\_context -flatten\_hierarchy rebuilt

## Command: synth\_design -mode out\_of\_context -flatten\_hierarchy rebuilt

Starting synth\_design  
Using part: xc7z020clg400-1  
Top: Instrument  
Attempting to get a license for feature ‘Synthesis’ and/or device ‘xc7z020’  
INFO: [Common 17-349] Got license for feature ‘Synthesis’ and/or device ‘xc7z020’  
INFO: [Device 21-403] Loading part xc7z020clg400-1  
INFO: [Synth 8-7079] Multithreading enabled for synth\_design using a maximum of 4 processes.  
INFO: [Synth 8-7078] Launching helper process for spawning children vivado processes  
INFO: [Synth 8-7075] Helper process launched with PID 2884361  
INFO: [Synth 8-11241] undeclared symbol ‘REGCCE’, assumed default net type ‘wire’ [/opt/Xilinx/Vivado/2022.2/data/verilog/src/unimacro/BRAM\_SINGLE\_MACRO.v:2170]

## Starting RTL Elaboration : Time (s): cpu = 00:00:02 ; elapsed = 00:00:02 . Memory (MB): peak = 2457.289 ; gain = 362.781 ; free physical = 16767 ; free virtual = 43360

Synthesis current peak Physical Memory [PSS] (MB): peak = 2030.723; parent = 1773.739; children = 256.983  
Synthesis current peak Virtual Memory [VSS] (MB): peak = 3427.227; parent = 2460.262; children = 966.965

## CRITICAL WARNING: [Synth 8-9871] overwriting existing primary unit ‘scaleoffset2’ [/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/lib/MokuSupport.vhd:391]

WARNING: [Synth 8-9963] re-analyze unit ‘behavioral’ since unit ‘scaleoffset2’ is overwritten or removed [/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/lib/MercurySupport.vhd:932]  
ERROR: [Synth 8-2716] syntax error near ‘non-printable character with the hex value ‘0xe2’’ [/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/src/Top.vhd:9]  
INFO: [Synth 8-11252] unit ‘behavioural’ is ignored due to previous errors [/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/src/Top.vhd:11]  
INFO: [Synth 8-10443] VHDL file ‘/workspace/03fe9b4d-20bf-4b98-b23e-8fba9d9ec368/src/Top.vhd’ is ignored due to errors

## Finished RTL Elaboration : Time (s): cpu = 00:00:02 ; elapsed = 00:00:03 . Memory (MB): peak = 2526.227 ; gain = 431.719 ; free physical = 16407 ; free virtual = 43196

Synthesis current peak Physical Memory [PSS] (MB): peak = 2124.219; parent = 1867.235; children = 256.983  
Synthesis current peak Virtual Memory [VSS] (MB): peak = 3493.195; parent = 2526.230; children = 966.965

RTL Elaboration failed  
INFO: [Common 17-83] Releasing license: Synthesis  
9 Infos, 1 Warnings, 1 Critical Warnings and 2 Errors encountered.  
synth\_design failed  
ERROR: [Common 17-69] Command failed: Synthesis failed - please see the console or run log file for details  
INFO: [Common 17-206] Exiting Vivado at Mon Oct 6 23:43:27 2025…

---

<div class="post-metadata">

**Author:** ![Dylan](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dylan](https://forum.liquidinstruments.com/u/Dylan)\
**Post date:** [October 8, 2025, 7:01pm UTC](https://forum.liquidinstruments.com/t/synthesis-error/1232/2 "2025-10-08T19:01:51Z")

</div>

Hello @Ira_Comb ,

Thank you for reaching out to Liquid Instruments! I was able to compile the Add\_subtract example for all hardware units. When you copied the example into the compile site, did you remove the CustomWrapper template that is populated? The GitHub examples already have the CustomWrapper so there is no need to duplicate it. Looking forward to hearing from you!

-Dylan
