commit | 366c4ea5ada82411731e78f05c4057a559eed08f | [log] [tgz] |
---|---|---|
author | Jeff DiCorpo <jeffdi@efabless.com> | Sat Jun 05 16:31:00 2021 -0700 |
committer | Jeff DiCorpo <jeffdi@efabless.com> | Sat Jun 05 16:31:00 2021 -0700 |
tree | 48959b221ac437a4858c0edaf9d33b230d60a6ba | |
parent | 0b67d6953ac5abccdbfafed540a8f32aa9abcfed [diff] |
caravel_fix
Multicore RISC-V MCU for developing software defined peripherals. This design is targetted for the first Google-sponsored MPW shuttle Nov/Dec 2020.
// Local memory (for stack, etc). parameter CCM_ADDR_MASK = 32'hffff_0000; parameter CCM_BASE_ADDR = 32'h0000_0000; // Local GPIO peripheral. parameter GPIO_ADDR_MASK = 32'hffff_0000; parameter GPIO_BASE_ADDR = 32'h2000_0000; // Access to the shared peripheral space. parameter SHARED_ADDR_MASK = 32'hff00_0000; parameter SHARED_BASE_ADDR = 32'h3000_0000;
// Softshell base address (used for filtering addresses from Caravel). parameter SOFTSHELL_MASK = 32'hff00_0000; parameter SOFTSHELL_ADDR = 32'h3000_0000; // Slave base addresses. parameter SHARED_RAM_MASK = 32'hfff0_0000; parameter SHARED_RAM_ADDR = 32'h3000_0000; parameter SHARED_FLASH_MASK = 32'hfff0_0000; parameter SHARED_FLASH_ADDR = 32'h3040_0000; parameter FLASH_CONFIG_MASK = 32'hffff_0000; parameter FLASH_CONFIG_ADDR = 32'h3080_0000; parameter PINMUX_ADDR_MASK = 32'hffff_0000; parameter PINMUX_BASE_ADDR = 32'h3081_0000; parameter UART0_ADDR_MASK = 32'hffff_0000; parameter UART0_BASE_ADDR = 32'h3082_0000;
User IOs -------- io[37:6] - Mapped to 32-bit pinmux (gpios, flexio, uart) io[8] - Flash CSB (muxable to Caravel passthru for programming) io[9] - Flash CLK (muxable to Caravel passthru for programming) io[10] - Flash DIO0 (muxable to Caravel passthru for programming) io[11] - Flash DIO1 (muxable to Caravel passthru for programming) io[12] - Flash DIO2 io[13] - Flash DIO3 Wishbone Access from Caravel ---------------------------- Access to entire shared memory space (RAM, XIP Flash, etc) Debug from Caravel ------------------ la_data_in[0] - Wishbone reset (also resets CPUs) la_data_in[1] - CPU0 reset la_data_in[2] - CPU1 reset la_data_in[3] - CPU2 reset (if implemented) la_data_in[4] - CPU3 reset (if implemented) la_data_out[31:0] - GPIO out la_data_out[63:32] - GPIO in Note: CPU resets are not synchronized while the wishbone reset is.
The softshell_top
and user_proj_example
modules are verified using the same testbench.
It performs these basic tests:
Testing execution from each CPU is a manual process requiring manually editing the linker script, flash memory load address, and which CPU is released from reset in the test bench. Not holding unused CPUs in reset will cause the X's to propagate everywhere in GL sims.
/opt/riscv32ic/bin
. We only need the riscv32ic
mach.PDK_ROOT
.# For behavioral sims. cd verilog/rtl/softshell/dv && make clean; make # For GL (this will take a long time). cd verilog/rtl/softshell/dv && make clean; make GL=1
There are plans to do a full top level Caravel testbench soon.
Due to the limited timeline, this design is built with two different versions of openlane / PDKs. You'll need to have both mpw-one-a
and mpw-one-b
available on your machine to do a full build. Note that mpw-one-a
corresponds to OPENLANE_TAG=rc5
.
user_proj_example
and Wrapper user_project_wrapper
MacrosRequires mpw-one-a
openlane and PDK. To make the routing work harder, it's preferred to edit the openlane tritonRoute.param
file and add drouteEndIterNum:${ROUTING_OPT_ITERS}
which we later set to try harder during wrapper routing.
OPENLANE_ROOT
and PDK_ROOT
to point to mpw-one-a
versions.cd openlane && make user_proj_example OPENLANE_TAG=rc5
final_summary_report.csv
file. Expect LVS errors only on the output pins of the macro (pin mismatches) and a few antenna violations. There should be zero DRC errors, if you get some you will need to rerun to get a different seed (or manually edit the GDS). Manually review the log files to confirm that the antenna ratios are reasonable and that any LVS errors are safe (pin mismatches are generally safe, compare the GL netlist and spice extracted netlist to confirm).cd openlane/user_proj_example && ./copy_results.sh runs/<result tag>
cd openlane && make user_project_wrapper OPENLANE_TAG=rc5
final_summary_report.csv
file to confirm 0 DRC/LVS/antenna violations.Requires mpw-one-b
openlane and PDK. Probably not strictly necessary but safest to use what eFabless will use.
OPENLANE_ROOT
and PDK_ROOT
to point to mpw-one-b
versions.make uncompress && make ship
xz
compression.make compress
The top level wrapper for this project is the Caravel harness. See Caravel Readme for more information.