2020-12-08 07:17:42 -05:00
PicoSoC demo
~~~~~~~~~~~~
2021-06-02 19:19:59 -04:00
This example features a picorv32 soft CPU and a SoC based on it. To build the picosoc example, first navigate to the directory that contains examples for Xilinx 7-Series FPGAs. Then run the following commands:
2020-12-08 07:17:42 -05:00
2020-12-15 04:31:47 -05:00
.. code-block :: bash
:name: example-picosoc-a35t-group
TARGET="arty_35" make -C picosoc_demo
.. code-block :: bash
:name: example-picosoc-a100t-group
TARGET="arty_100" make -C picosoc_demo
2021-04-30 10:46:24 -04:00
.. code-block :: bash
:name: example-picosoc-nexys4ddr-group
TARGET="nexys4ddr" make -C picosoc_demo
2020-12-08 07:17:42 -05:00
.. code-block :: bash
:name: example-picosoc-basys3-group
TARGET="basys3" make -C picosoc_demo
2020-12-21 05:37:59 -05:00
At completion, the bitstreams are located in the build directory:
.. code-block :: bash
cd picosoc_demo/build/<board>
2020-12-08 07:17:42 -05:00
Now you can upload the design with:
.. code-block :: bash
2021-11-06 16:51:45 -04:00
TARGET="<board type>" make download -C picosoc_demo
2020-12-08 07:17:42 -05:00
You should observe the following line in the OpenOCD output:
.. code-block ::
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
The UART output should look as follows:
.. code-block ::
Terminal ready
Press ENTER to continue..
Press ENTER to continue..
Press ENTER to continue..
Press ENTER to continue..
____ _ ____ ____
| _ \(_) ___ ___/ ___| ___ / ___|
| |_) | |/ __/ _ \___ \ / _ \| |
| __/| | (_| (_) |__) | (_) | |___
|_| |_|\___\___/____/ \___/ \____|
[9] Run simplistic benchmark
Command>
.. note ::
PicoSoC uses baud rate of `` 460800 `` by default.
The board's LED should blink at a regular rate from left to the right
.. image :: ../../docs/images/picosoc-example-basys3.gif
:width: 49%
:align: center