This should be considered a bug report, unless someone has a magical 
work-around. The following is how to recreate the error.


   1. Simply create a snapshot block(call it buffer), inside of a white 
   container block in simulink Name it "whiteblock". 
   2. Edit the mask of the upper whiteblock and promote the value 
   'nsamples' up to it. That is, promote whiteblock>>buffer>>nsamples
   3.  Do the usual saving and simulating of the design.

This design will compile to a bit stream via jasper.  But when the 
bitstream is sent to your board,  snap.py will die on line 53.  

* num_bytes = pow(2, int(device_info['nsamples'])) * (word_bits/8)*

device_info['samples']   no longer represents a textualized integer.  
Instead this is now storing the string literal, "nsamples".   As expected, 
python dies  with a Value Error "invalid literal for int() with base 10 
'nsamples'.  

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/fb6e72b4-ba1d-400b-8b2e-51bd0ad4272dn%40lists.berkeley.edu.

Reply via email to