ska-sa / casperfpga Goto Github PK
View Code? Open in Web Editor NEWSoftware control for CASPER FPGAs
License: GNU General Public License v2.0
Software control for CASPER FPGAs
License: GNU General Public License v2.0
Hi Folks,
We've found that to get casperfpga working with our roach2 based system we need to add the additional patch of:
if hasattr(katcp.CallbackClient, 'MAX_WRITE_BUFFER_SIZE'):
setattr(katcp.CallbackClient, 'MAX_WRITE_BUFFER_SIZE',
katcp.CallbackClient.MAX_WRITE_BUFFER_SIZE * 10)
in katcp_fpga.py (v0.4.2) or probably in transport_katcp.py for v3.1 (untested). We aren't keen on this because it means forking and diving into internals.
Is there an undocumented way of perhaps calling casperfpga.katcp_fpga.KatcpFpga with a MAX_MESSAGE_LEN argument or some such so we can both avoid the write buffer overflow and mucking around with or forking the repo?
Few things I need to change before installing the casperfpga package.
In requirements.txt I changed version katcp 0.6.2 to katcp 0.6.3
in the setup.py following corrections needed.
2A)data_files = ['src/tengbe_mmap.txt', 'src/tengbe_mmap_legacy.txt']
2B)include_package_data=True, We need to include this line inside setup
2C)package_data={ "": ["*.txt"],'casperfpga': data_files},
I noticed that the shared_bram.read() on casperfpga function struggles to read > 32 bit values. I was able to readback all the values using the standard fpga.read('shared_bram', 0x2000) function for the 64 bit. I think this should be looked into at some point.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.