diff --git a/fpga/README.md b/fpga/README.md index 2a89a7b..06605da 100644 --- a/fpga/README.md +++ b/fpga/README.md @@ -118,6 +118,34 @@ 至此,即可将Bitstream文件下载到FPGA。 +## 2.6固化软核到FPGA + +对于下载Bitstream文件到FPGA这种方式,当断电后再上电就要重新下载,因此可以将tinyriscv软核固化到FPGA,这样每次上电后就不需要重新下载Bitstream文件了,只需要下载bin文件就可以。 + +点击vivado工具栏的Tools-->Generate Memory Configuration File...选项后会出现以下界面: + +![config_mcs](./images/config_mcs.png) + +按照图中红色框来设置,然后点击确定。 + +然后点击Open Hardware Manager,按下图选择: + +![add_mcs_device](./images/add_mcs_device.png) + +然后按下图设置: + +![select_spi](./images/select_spi.png) + +弹出如下对话框,点击确定。 + +![mcs_ok](./images/mcs_ok.png) + +最后按下图设置: + +![mcs_prog](./images/mcs_prog.png) + +点击确定后开始固化。固化过程比下载Bitstream文件的时间要长,耐心等待一下即可。 + # 3.下载程序到FPGA ## 3.1通过JTAG方式下载 diff --git a/fpga/images/add_mcs_device.png b/fpga/images/add_mcs_device.png new file mode 100644 index 0000000..fe8fa3f Binary files /dev/null and b/fpga/images/add_mcs_device.png differ diff --git a/fpga/images/config_mcs.png b/fpga/images/config_mcs.png new file mode 100644 index 0000000..9a14da7 Binary files /dev/null and b/fpga/images/config_mcs.png differ diff --git a/fpga/images/mcs_ok.png b/fpga/images/mcs_ok.png new file mode 100644 index 0000000..54e3e35 Binary files /dev/null and b/fpga/images/mcs_ok.png differ diff --git a/fpga/images/mcs_prog.png b/fpga/images/mcs_prog.png new file mode 100644 index 0000000..88d91fd Binary files /dev/null and b/fpga/images/mcs_prog.png differ diff --git a/fpga/images/select_spi.png b/fpga/images/select_spi.png new file mode 100644 index 0000000..0659bba Binary files /dev/null and b/fpga/images/select_spi.png differ