Are you on a Linux environment? Matlab's GUI doesn't seem to like some X window 
managers. If you have a scope open, depending on the block selected, it redraws 
the screen after each clock tick and this can cause big delays. Does your 
design simulate faster if the scope windows are closed and no blocks selected 
(highlighted) in your design?

Jason 


On 17 Oct 2014, at 6:18, David MacMahon <[email protected]> wrote:

> Hi, Oliver,
> 
> On Oct 16, 2014, at 9:06 PM, Wang Jinqing wrote:
> 
>> I have construct a very easy project under matlab simulink envirement ,thant 
>> is: only a katadc component and a scope to moniter the adc's output . I want 
>> to do simulation so I set the start time 0.0,stop time 10. I found it'll 
>> spend about 20 minutes to give out the simulation result so that I can see 
>> the scope's output( Although the result is righ). I think there's something 
>> about configuration may not be correct. But I don't know where I should 
>> change the settings so the simulation speed can be increased. Could some on 
>> give me some advice?
> 
> I've encountered very slow simulations when using a network mounted home 
> directory.  It turns out that I needed to set the DSP_CACHE_DIR variable to 
> specify a directory on a local disk.  Without that, sysgen seemed to be 
> repeatedly trying and failing (for some reason) to start a "dspcache" server 
> that used my home directory on the network mounted filesystem (maybe CIFS?).  
> I have no idea why that would be problematic (other than slower), but at any 
> rate it started running better once I set DSP_CACHE_DIR to specify a 
> directory on a local disk.
> 
> Here is a Xilinx link that proved helpful:
> 
> http://forums.xilinx.com/t5/DSP-Tools/System-Generator-works-very-slow-Why/td-p/21140
> 
> Here are some commands that provided clues:
> 
>> $ /tools/commercial/xilinx/14.6/ISE_DS/ISE/sysgen/bin/lin64/dccli -s
>> Current number of entries: 299
>> Current usage in KB: 463
>> Hits/Misses: 3544/312 (91.9% hit ratio)
> 
> Before fixing things, "dccli -s" showed errors about not being able to start 
> or attach to a cache server (and all the reported numbers were 0).
> 
>> $ ps -f `pgrep dspcache`
>> UID        PID  PPID  C STIME TTY      STAT   TIME CMD
>> davidm   18309     1  0 16:49 ?        Ssl    0:00 
>> /tools/commercial/xilinx/14.6/ISE_DS/ISE/sysgen/bin/lin64/dspcache.bin -r 120
> 
> Before things were working, no dspcache.bin processes were running.  The 
> dspcache process is supposed to get started automatically, if needed, but I 
> think when things were bad it would repeatedly try and fail to start this 
> server.
> 
> In Matlab, you can check the return values from this command:
> 
>>>> [core, sg, usertemp] = xlCache('getpath')
>> (Should show three directories, preferable all local)
> 
> Before setting DSP_CACHE_DIR to a local directory, the "sg" cache directory 
> was in the home directory on the network mounted filesystem.
> 
> Hope this helps,
> Dave
> 
> 


Reply via email to