Hi Danny

I have setup a fresh install of Xilinx 14.6, Matlab r2012b on ubuntu
12.04, ska-sa library, and am getting errors when generating blocks.

For example:

-->Error in 'untitled/pfb_fir_generic': Initialization commands cannot
be evaluated. -->Invalid Simulink object name: pfb_fir_coeff_gen/2

This indicates that port number 2 on the pfb_fir_coeff_gen block referred to in pfb_fir_generic_init was not found. This is often because the init script for the component block did not complete successfully and some ports were not drawn.

The problem is that when an init script is run due to a mask parameter being set errors are often hidden. The best way to find the error is to execute the init script from the command line. You can edit the init script and change the default parameter values to the ones you will use and then run the init script from the command line without arguments e.g pfb_fir_coeff_gen_init(gcb). This should give you a proper error message.

which when using casper_log_groups = {'trace'}; to trace, I get:

trace: entering pfb_fir_generic_init
trace: entering pfb_fir_generic_init
trace: entering bus_create_init
trace: exiting bus_create_init
trace: entering bus_expand_init
trace: exiting bus_expand_init
trace, pfb_fir_coeff_gen_init_debug: entering pfb_fir_coeff_gen_init

Using 'trace' is useful to figure out where execution stops (no matching 'exiting ...' for a matching 'entering ...'.

If you only want logging info for a particular init script (e.g pfb_fir_coeff_gen_init.m) you can use casper_log_groups = {'pfb_fir_coeff_gen_init_debug'}. This should work for most of the recently updated scripts (I am rolling it out as I go along).

Another possibly useful debugging feature is using casper_nolog_groups to suppress logging output from certain scripts. e.g You want all trace log group outputs but not from the bus_create_init.m and bus_expand_init.m scripts. Set casper_log_groups = {'trace'} and casper_nolog_groups = {'bus_create_init_debug', 'bus_expand_init_debug'}. This should give you 'trace' logging group output but not from the scripts specified in casper_nolog_groups. This is also patchy as coverage is exapnded as scripts are edited.

I also get errors for the FFT, so am thinking that it might be a config
issue, not a library issue:

Or some block that is shared ... :-/

-->Error in 'untitled/fft_biplex': Initialization commands cannot be
evaluated. -->Invalid Simulink object name: biplex_cplx_unscrambler/3

... many lines ...

trace, biplex_core_init_debug: exiting biplex_core_init
trace, barrel_switcher_init_debug: entering barrel_switcher_init
trace, barrel_switcher_init_debug: exiting barrel_switcher_init
reorder_init_debug, trace: entering reorder_init
reorder_init_debug, trace: exiting reorder_init
reorder_init_debug, trace: entering reorder_init
reorder_init_debug, trace: exiting reorder_init


Has anyone seen this before, and/or have ideas for a fix?

I will have a look to see if I can imitate your results.

Cheers
Andrew

Reply via email to