Zynq初识

Zynq-7000是Xilinx推出的APSoC,结合了双ARM Cortex-A9处理器和FPGA。Zynq架构包括PS(处理系统)、PL(可编程逻辑)和AXI接口。PS包含APU、FPU、NEON引擎等,用于处理和控制;PL作为FPGA提供硬件可编程性;AXI协议实现PS和PL间高效通信。
摘要由CSDN通过智能技术生成

本文内容学习自正点原子的Zynq教学视频正点原子ZYNQ教学视频-B站

1.Zynq是什么?

我们先从SoC说起

SoC(System-on-Chip):片上系统 就是把原有的处理器(Processor),存储器(Memory),时钟(Clock),接口(Interface)等等资源从原来的焊接在一块PCB(Printed Circuit Board)板上的系统变成一块ASIC(Application Specific Integrated Circuit )专用集成电路也就是芯片。

优点:体积更小。

缺点:需要集成到的一块ASIC上,流片成本高且逻辑功能不能修改。

SoPC(System-on-Programmable-Chip): 可编程片上系统   一般是基于FPGA,用FPGA实现各个功能模块实现片上系统。

优点:相比基于ASIC的SoC更为灵活,可以随意修改。

缺点:FPGA内部资源有限,实现SoC时资源会很限制,并且搭建的处理器速度不会很快。比如:FPG

ARM(ZYNQ) cortexa9 Cross compiled CAN utils: To run CAN, use the below command: 1. Set bit-timing Can supports bitrates upto 1Mb/s. Xilinx CAN h/w and driver supports these bit rates Note: Triple sampling is not supported by Xilinx CAN H/W. $ ./ip link set can0 type can bitrate 200000 or $ ./canconfig can0 bitrate 200000 2. Bring up the device $ ./ip link set can0 up or $ ./canconfig can0 start 3. Bring down the device $ ./ip link set can0 down or $ ./canconfig can0 stop 4. Transmit and receive packets with standard id number $ ./cansend can0 -i 0x14 $ ./candump can0 5. Transmit and receive packets with extended id number (--loop argument here) $ ./cansend can0 -i 0x333 $ ./candump can0 6. Loopback mode $ ./canconfig can0 ctrlmode loopback on 7. Checking link state (checking bitrate/errors/packets) $ ./ip -d -s link show can0 8. Checking net device state $ ifconfig can0 9. Getting statistics via proc $ cat /proc/net/can/stats 10. Socket CAN core uses several filter lists to deliver received CAN frames to CAN protocol modules. These receive lists, their filters and the count of filter matches can be checked in the appropriate receive list. All entries contain the device and a protocol module identifier: $ cat /proc/net/can/rcvlist_all rcvlist_all - list for unfiltered entries (no filter operations) rcvlist_eff - list for single extended frame (EFF) entries rcvlist_err - list for error message frames masks rcvlist_fil - list for mask/value filters rcvlist_inv - list for mask/value filters (inverse semantic) rcvlist_sff - list for single standard frame (SFF) entries
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值