最近在做一个小项目,属于振动传感器数据动态采集与存储的。大致的内容是这样的:FPGA通过12路SPI并行接收来自12路传感器上传的动态数据,存在SDRAM规划好的数据塔内,然后定期通过TCP/IP上传给中断。也就是说FPGA只是实现数据的中转。那么问题是,FPGA实现UDP很容易,但是UDP对于动态数据上传来说无法保证稳定性与准确性,所以决定使用TCP/IP来传输。但FPGA实现TCP/IP难度很大。了解到altera的nios 2 可以很容易实现TCP/IP,就是不知道可行性怎么样。每一个传感器节点上传的数据很大,12路就是每秒2MB的数据量,那么使用FPGA的12路SPI并行采集,存在SDRAM里,然后使用NIOS2进行数据取出并通过TCP/IP发送是否可以实现呢?速率上是否可以满足?
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/functions/shop/widgets/widgets-product.php:652 Stack trace: #0 /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/csf-framework/classes/widget-options.class.php(676): zib_shop_widget_ui_oneline_product_lists() #1 /www/wwwroot/chipdebug.com/wp-includes/class-wp-widget.php(394): CSF_Widget->widget() #2 /www/wwwroot/chipdebug.com/wp-includes/widgets.php(847): WP_Widget->display_callback() #3 /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/functions/bbs/inc/template.php(42): dynamic_sidebar() #4 /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/functions/bbs/page/posts.php(36): zib_bbs_page_template() #5 /www/wwwroot/chipdebug.com/wp-includes/template.php(880): require_once('...') #6 /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/functions/bbs/inc/class.init.php(426): load_template() #7 /www/wwwroot/chipdebug.com/wp-includes/class-wp-hook.php(353): zib_bbs->template_redirect() #8 /www/wwwroot/chipdebug.com/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters() #9 /www/wwwroot/chipdebug.com/wp-includes/plugin.php(523): WP_Hook->do_action() #10 /www/wwwroot/chipdebug.com/wp-includes/template-loader.php(23): do_action() #11 /www/wwwroot/chipdebug.com/wp-blog-header.php(19): require_once('...') #12 /www/wwwroot/chipdebug.com/index.php(17): require('...') #13 {main} thrown in /www/wwwroot/chipdebug.com/wp-content/themes/zibll/inc/functions/shop/widgets/widgets-product.php on line 652


用UDP,自己对数据加校验。
nios学习学习一下还可以,不过现在这么多硬核SOC,玩软核就没啥意思了,何况nois你真要用来做产品,小公司你就试都没别试,说多坑有多坑。
你可能需要自己实现一个nios的dma外设,没用过nios,不建议用,这个东西要看原厂对你的支持力度,要不然遇到坑很麻烦