commit | 50cd58c19910327f407b918c86c0ae5ef1665487 | [log] [tgz] |
---|---|---|
author | Matthew Ballance <matt.ballance@gmail.com> | Sun Nov 29 12:15:23 2020 -0800 |
committer | Matthew Ballance <matt.ballance@gmail.com> | Sun Nov 29 12:15:23 2020 -0800 |
tree | 3f2b9ce0fcb9735e384bcf346cf70d4c92192df8 | |
parent | 93e8250459a77710bdecb00a318999ebdc8a5af5 [diff] |
Tightening up tests Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
FWPayload is a small processor+peripherals subsystem, targeting the user-project area of Caraval.
FWPayload uses several pieces of external IP. Some are bundled with the project, and some are fetched during the initialization step.
RISC-V core originally targeted for FPGA application
Parameterized Wishbone interconnect
SPI master IP, obtained from the Caravel repository. Bundled with the project.
UART IP, obtained from the Caravel repository. Bundled with the project.
The FWPayload memory map is designed to fit within the 28-bit user-area portion of the Caravel memory map.
FWPayload uses the Caravel logic analyzer to configure reset and clocking, probe the program counter of the FWRISC, and optionally, single-step the clock.
The FWPayload project uses IVPM (IP and Verification Package Manager) to manage external IP and Python dependencies. The project can be setup both with and without IVPM installed.
In both cases, setting up the project will result in creation of a packages
directory within the project that contains external IPs and required Python packages.
Ensure IVPM is installed:
% pip3 install ivpm --user --upgrade
% cd <fwpayload_dir> % ivpm update
The project can also be setup without installing IVPM. The bootstrap.sh
script is provided for this purpose. bootstrap.sh
clones a local copy of ivpm.
% cd <fwpayload_dir> % ./bootstrap.sh
Testing of the fwpayload subsystem is done using a cocotb test environment. The block diagram is shown below:
Bus Functional Models (BFMs) are used to drive the Caravel management interface and logic-analyzer pins.
fwrisc_gpio
mgmt_mem_access
Individual tests are run from the dv/ directory by running ‘make’.
% cd dv/fwrisc_gpio % make clean % make
Test behavior is controlled using environment variables.
FWPayload is taking Option #1 for integration into Caravel. Specifically, FWPayload will be hardened separately as a macro, then integrated into user_project_wrapper.
The ‘openlane/fwpayload’ directory contains the config files for running OpenLane. The ‘openlane’ directory contains a Makefile for running OpenLane.
Openlane completes on fwpayload with the following status:
0.25 Number of pins violated: 479 Number of nets violated: 297 Total number of nets: 44367 [INFO]: Generating Final Summary Report... [SUCCESS]: Flow Completed Without Fatal Errors. 0.15 Number of pins violated: 509 Number of nets violated: 360 Total number of nets: 44404
Integrating the fwpayload macro into user_project_wrapper is currently incomplete, due to some include path issues.