简体   繁体   English

如何使用Altera FPGA开发板的HPS引脚?

[英]How can I use HPS pins of altera FPGA development board?

How can I design my own MAC layer function to access Ethernet chip instead of using altera IP function. 我如何设计自己的MAC层功能来访问以太网芯片,而不是使用Altera IP功能。 My board is DE1-SoC with cyclone V 5CSEMA5F31C6 chip. 我的电路板是带有旋风V 5CSEMA5F31C6芯片的DE1-SoC。 The pins to access Ethernet chip are made to be HPS pins which I can't assign my own signals to. 访问以太网芯片的针脚是HPS针脚,我无法将自己的信号分配给它们。

这可以在新的Arria 10 SoC上实现,但在Cyclone V中则不能。Arria 10具有可配置为HPS或FPGA的共享I / O。

It is possible for Cyclone V as well. Cyclone V也有可能。 I have my own Ethernet IP working on the fpga side in a DE1-SOC board using the HPS pins. 我使用HPS引脚在DE1-SOC板上的fpga端使用自己的以太网IP。 I used them through the pin multiplexing feature of the hps component. 我通过hps组件的引脚多路复用功能来使用它们。 You have to configure them and make the hps boot the preloader code for that configuration. 您必须对其进行配置,并使hps引导该配置的预加载器代码。 However, you cannot use the DDR feature (consequently you cannot achieve 1Gbps) in the cyclone v (Altera said that). 但是,您不能在气旋v中使用DDR功能(因此无法实现1Gbps)(Altera表示)。 For the process, you should set the pin multiplexing, generate Qsys and compile Quartus. 在此过程中,应设置引脚多路复用,生成Qsys并编译Quartus。 This process creates the folder spl_bsp. 此过程将创建文件夹spl_bsp。 Then you have to create a SD card with the image provided by Altera (the image contains all the partition requiered). 然后,您必须使用Altera提供的映像来创建SD卡(该映像包含所需的所有分区)。 After this you are able to make the preloader: 1) bsp-generate-files.exe --settings ./software/spl_bsp/settings.bsp --bsp-dir ./hps_isw_handoff/soc_system_hps_0 2) cd software/spl_bsp/ 3) make 4) make uboot 5) alt-boot-disk-util.exe -p preloader-mkpimage.bin -a write -de // e is the drive of the SD card 6) cp uboot-socfpga/u-boot.img /cygdrive/e 之后,您可以制作预加载器:1)bsp-generate-files.exe --settings ./software/spl_bsp/settings.bsp --bsp-dir ./hps_isw_handoff/soc_system_hps_0 2)cd软件/ spl_bsp / 3) make 4)make uboot 5)alt-boot-disk-util.exe -p preloader-mkpimage.bin -a write -de // e是SD卡的驱动器6)cp uboot-socfpga / u-boot.img / cygdrive / e

Finally, put the SD card in the fpga kit and programm the FPGA. 最后,将SD卡放入fpga套件中并对FPGA进行编程。 The HPS boots from the SD card and the pin multiplexing matrix configures the pins for output. HPS从SD卡启动,并且引脚多路复用矩阵配置引脚以进行输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM