When running the inserter flow for the ChipScope toolon Linux, you might see that the implementation fails when the CORE Generator generates the core. It displays the following error messages:
"Loading CDC project /storage/home/sitj/TestProject/chipscope.cdc
Successfully read project /storage/home/sitj/TestProject/chipscope.cdc
copy /storage/home/sitj/TestProject/dummy_test_cs.ngc => /storage/home/sitj/TestProject/_ngo/dummy_test_cs_signalbrowser.ngo
Generating cores using CORE Generator. Please be patient as this can take several minutes...
Using existing cached core /storage/home/sitj/TestProject/_ngo/cs_icon_pro/generate_icon_pro.xco
Generating core 2 of 2 ila_pro_0.ngc...
<CoreGen>:ERROR:sim:824 - Something went wrong while preparing for IP customization.ERROR:sim - IP initializer could not set parameters on IP model
<CoreGen>:ERROR:sim - ERROR:sim - Failed to initialize IP model.
<CoreGen>:ERROR:sim - Failed to resolve generic values.
<CoreGen>:ERROR:sim - Failed to generate 'ila_pro_0'. Failed to resolve generic values.
<CoreGen>:ERROR:sim:877 - Error found during execution of IP 'ILA (ChipScope Pro -
See CoreGen Log /storage/home/sitj/TestProject/_ngo/cs_ila_pro_0/coregen.log
ERROR:ChipScope: Unable to generate ila_pro_0.ngc
ERROR:ChipScope: Double-click the chipscope.cdc icon in the sources window to edit and fix the CDC project."
This issue comes from the "locale" setting in Linux.
A locale is a set of language and cultural rules. These cover aspects such as language for messages, different character sets, lexicographic conventions, and so on. A program needs to be able to determine its locale and act accordingly to be portable to different cultures.
You can see what locale you are using by typing locale in the command line. For example, assume that the locale is for Norwegian:
It has been observed that if the locale is not the US version, then the CORE Generator software run can fail in this way. In Norway, it is customary to write "1.0" with a comma instead of a dot, that is, "1,0".
coregen -p coregen.cgp -ddd -J verbose -b generate_ila_pro_0.xco
then stops with error as it tries to parse "1.0" as a number in a Norwegian locale, which does not make sense.
You can work around this issue by using the following bashfile to"force_us_locale":
In your bash prompt, run:
Another way to work around this issue is to do:
setenv LANG en_US.UTF-8
The problem should now be resolved.