Re: [casper] Roach2 Tutorial 4 Troubles (Can't Compile .slx or Upload .fpg)

2016-11-09 Thread G Jones
Something is not quite right with your library path setup. Did you modify
the startsg.sh local script to properly point to your casper libraries? You
definitely should have the casper bus library if things are set up properly.

Glenn
On Nov 9, 2016 5:59 PM, "Alec Josaitis"  wrote:

> Dear Glenn,
>
> Yes, update_casper_blocks appears to run succesfully. First I ran it
> inasmuch as it said at the end "done updating  blocks in ",
> but it does issue warnings at some points. See below.
>
> First, I tried updating my library, and at some point received this:
> updating block xps_library/Shared BRAM/mem/sim_munge_in...
> Simulink:Libraries:RefModificationViolation: Attempt to modify block in a
> linked subsystem. This can only be done by the block or its parent through
> their mask initialization code
> Backtrace 1: reuse_block:51
> Backtrace 2: munge_init:131
> Backtrace 3: shared_bram_mask:119
> Backtrace 4: update_casper_block:161
> Backtrace 5: update_casper_blocks:107
>
> Now, after updating my library, I ran the script on the .slx file
> (poco_wide_12_r316_new); it also completes successfully but only after
> providing these warning messages:
> updating block poco_wide_12_r316_new/fft_wideband_real...
> loading library casper_library_ffts
> MATLAB:MException:MultipleErrors: Error due to multiple causes.
> Backtrace 1: reuse_block:51
> Backtrace 2: fft_stage_n_init:287
> Backtrace 3: reuse_block:51
> Backtrace 4: biplex_core_init:173
> Backtrace 5: reuse_block:51
> Backtrace 6: fft_biplex_real_4x_init:235
> Backtrace 7: reuse_block:51
> Backtrace 8: fft_wideband_real_init:257
> Backtrace 9: update_casper_block:161
> Backtrace 10: update_casper_blocks:107
>
> I then updated my system diagram as you recommended, and received the
> following errors:
>
> Error in 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x':
> Initialization commands cannot be evaluated.
>
> Caused by:
> Error in 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_
> 4x/biplex_core': Initialization commands cannot be evaluated.
> Error in 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_
> 4x/biplex_core/fft_stage_1': Initialization commands cannot be evaluated.
> Error due to multiple causes.
> Unable to load block diagram 'casper_library_bus'
> There is no block named 'casper_library_bus/bus_single_port_ram'
> Do you have a recommendation on how to fix this error?
>
>
> Best,
> Alec
>
> On Mon, Nov 7, 2016 at 10:03 PM, G Jones  wrote:
>
>> Hi Alec,
>> Before running casper_xps, update your system diagram (Simulation menu ->
>> Update Diagram).
>> That should pop up messages indicating where the errors are.
>> The error messages you copied sound like there is still some
>> incompatibility between the model and your libraries. Did
>> update_casper_blocks run successfully?
>>
>> Glenn
>>
>> On Mon, Nov 7, 2016 at 6:39 PM, Alec Josaitis  wrote:
>>
>>> Dear All,
>>>
>>> My apologies, above I meant to include the following hyperlink when I
>>> stated "...this .mdl
>>> ".
>>> Also, to clarify, I am indeed using the tutorial- recommended versions of
>>> software: Xilinx System Generator 14.7 and MATLAB 2012b.
>>>
>>> Best,
>>> Alec
>>>
>>> On Mon, Nov 7, 2016 at 6:34 PM, Alec Josaitis 
>>> wrote:
>>>
 Dear Glenn and Jack,

 Thanks for the response. I've re-cloned mlib_devel and checked-out the
 proper version ( 4c7ba5efb4
 ).
 I then re-downloaded, and un-tarred this .mdl, saved is as a .slx, and then
 opened it in matlab to run update_casper_blocks(bdroot).
 I've copied below the errors that appear. Also, I should note there are
 no .log files in any of the subdirectories inside the directory created by
 casper_xps.

 >> casper_xps
 Detected Linux OS
 #
 ##  System Update  ##
 #
 MATLAB:MException:MultipleErrors: Error due to multiple causes.
 Backtrace 1: reuse_block:51
 Backtrace 2: fft_stage_n_init:287
 Backtrace 3: reuse_block:138
 Backtrace 4: biplex_core_init:173
 Backtrace 5: reuse_block:138
 Backtrace 6: fft_biplex_real_4x_init:235
 Backtrace 7: gen_xps_files:203
 Backtrace 8: run_Callback:155
 Backtrace 9: casper_xps:88
 Backtrace 10: @(hObject,eventdata)casper_xps
 ('run_Callback',hObject,eventdata,guidata(hObject)):0
 Simulink:Masking:Bad_Init_Commands: Error in
 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x/biplex_core/fft_stage_1':
 Initialization commands cannot be evaluated.
 Backtrace 1: reuse_block:138
 Backtrace 2: biplex_core_init:173
 Backtrace 3: reuse_block:138
 Backtrace 4: fft_biplex_real_4x_init:235
 

Re: [casper] Roach2 Tutorial 4 Troubles (Can't Compile .slx or Upload .fpg)

2016-11-09 Thread Alec Josaitis
Dear Glenn,

Yes, update_casper_blocks appears to run succesfully. First I ran it
inasmuch as it said at the end "done updating  blocks in ",
but it does issue warnings at some points. See below.

First, I tried updating my library, and at some point received this:
updating block xps_library/Shared BRAM/mem/sim_munge_in...
Simulink:Libraries:RefModificationViolation: Attempt to modify block in a
linked subsystem. This can only be done by the block or its parent through
their mask initialization code
Backtrace 1: reuse_block:51
Backtrace 2: munge_init:131
Backtrace 3: shared_bram_mask:119
Backtrace 4: update_casper_block:161
Backtrace 5: update_casper_blocks:107

Now, after updating my library, I ran the script on the .slx file
(poco_wide_12_r316_new); it also completes successfully but only after
providing these warning messages:
updating block poco_wide_12_r316_new/fft_wideband_real...
loading library casper_library_ffts
MATLAB:MException:MultipleErrors: Error due to multiple causes.
Backtrace 1: reuse_block:51
Backtrace 2: fft_stage_n_init:287
Backtrace 3: reuse_block:51
Backtrace 4: biplex_core_init:173
Backtrace 5: reuse_block:51
Backtrace 6: fft_biplex_real_4x_init:235
Backtrace 7: reuse_block:51
Backtrace 8: fft_wideband_real_init:257
Backtrace 9: update_casper_block:161
Backtrace 10: update_casper_blocks:107

I then updated my system diagram as you recommended, and received the
following errors:

Error in 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x':
Initialization commands cannot be evaluated.

Caused by:
Error in '
poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x/biplex_core':
Initialization commands cannot be evaluated.
Error in '
poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x/biplex_core/fft_stage_1':
Initialization commands cannot be evaluated.
Error due to multiple causes.
Unable to load block diagram 'casper_library_bus'
There is no block named 'casper_library_bus/bus_single_port_ram'
Do you have a recommendation on how to fix this error?


Best,
Alec

On Mon, Nov 7, 2016 at 10:03 PM, G Jones  wrote:

> Hi Alec,
> Before running casper_xps, update your system diagram (Simulation menu ->
> Update Diagram).
> That should pop up messages indicating where the errors are.
> The error messages you copied sound like there is still some
> incompatibility between the model and your libraries. Did
> update_casper_blocks run successfully?
>
> Glenn
>
> On Mon, Nov 7, 2016 at 6:39 PM, Alec Josaitis  wrote:
>
>> Dear All,
>>
>> My apologies, above I meant to include the following hyperlink when I
>> stated "...this .mdl
>> ".
>> Also, to clarify, I am indeed using the tutorial- recommended versions of
>> software: Xilinx System Generator 14.7 and MATLAB 2012b.
>>
>> Best,
>> Alec
>>
>> On Mon, Nov 7, 2016 at 6:34 PM, Alec Josaitis  wrote:
>>
>>> Dear Glenn and Jack,
>>>
>>> Thanks for the response. I've re-cloned mlib_devel and checked-out the
>>> proper version ( 4c7ba5efb4
>>> ).
>>> I then re-downloaded, and un-tarred this .mdl, saved is as a .slx, and then
>>> opened it in matlab to run update_casper_blocks(bdroot).
>>> I've copied below the errors that appear. Also, I should note there are
>>> no .log files in any of the subdirectories inside the directory created by
>>> casper_xps.
>>>
>>> >> casper_xps
>>> Detected Linux OS
>>> #
>>> ##  System Update  ##
>>> #
>>> MATLAB:MException:MultipleErrors: Error due to multiple causes.
>>> Backtrace 1: reuse_block:51
>>> Backtrace 2: fft_stage_n_init:287
>>> Backtrace 3: reuse_block:138
>>> Backtrace 4: biplex_core_init:173
>>> Backtrace 5: reuse_block:138
>>> Backtrace 6: fft_biplex_real_4x_init:235
>>> Backtrace 7: gen_xps_files:203
>>> Backtrace 8: run_Callback:155
>>> Backtrace 9: casper_xps:88
>>> Backtrace 10: @(hObject,eventdata)casper_xps
>>> ('run_Callback',hObject,eventdata,guidata(hObject)):0
>>> Simulink:Masking:Bad_Init_Commands: Error in
>>> 'poco_wide_12_r316_new/fft_wideband_real/fft_biplex_real_4x/biplex_core/fft_stage_1':
>>> Initialization commands cannot be evaluated.
>>> Backtrace 1: reuse_block:138
>>> Backtrace 2: biplex_core_init:173
>>> Backtrace 3: reuse_block:138
>>> Backtrace 4: fft_biplex_real_4x_init:235
>>> Backtrace 5: gen_xps_files:203
>>> Backtrace 6: run_Callback:155
>>> Backtrace 7: casper_xps:88
>>> Backtrace 8: @(hObject,eventdata)casper_xps
>>> ('run_Callback',hObject,eventdata,guidata(hObject)):0
>>> MATLAB:MException:MultipleErrors: Error due to multiple causes.
>>> Backtrace 1: reuse_block:51
>>> Backtrace 2: fft_stage_n_init:287
>>> Backtrace 3: reuse_block:138
>>> Backtrace 4: biplex_core_init:173
>>> Backtrace 5: reuse_block:138
>>> Backtrace 6: