1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-27 04:12:35 +00:00
Olof Kindgren b9bf19f912 Added synthesis target
The synth target can be used to analyze the core after synthesis
without running P&R. Currently, the only edalize backends that
support synthesis without P&R are vivado and icestorm, and icestorm
needs yosys built with verific support to parse vhdl.

To run synthesis only for a part, run

fusesoc run --target=synth --tool=vivado microwatt --part=<part>

where part is a valid Xilinx part such as xc7a100tcsg324-1
2019-08-23 14:20:20 +02:00
2019-08-23 13:19:11 +02:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-23 14:20:20 +02:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00

Microwatt

A tiny Open POWER ISA softcore written in VHDL 2008. It aims to be simple and easy to understand.

Simulation

  • Build micropython. If you aren't building on a ppc64le box you will need a cross compiler. If it isn't available on your distro grab the powerpc64le-power8 toolchain from https://toolchains.bootlin.com
git clone https://github.com/mikey/micropython
cd micropython
git checkout powerpc
cd ports/powerpc
make -j$(nproc)
cd ../../../
  • Microwatt uses ghdl for simulation. Either install this from your distro or build it. Next build microwatt:
git clone https://github.com/antonblanchard/microwatt
cd microwatt
make
  • Link in the micropython image:
ln -s ../micropython/ports/powerpc/build/firmware.bin simple_ram_behavioural.bin
  • Now run microwatt, sending debug output to /dev/null:
./core_tb > /dev/null

Testing

  • A simple test suite containing random execution test cases and a couple of micropython test cases can be run with:
make -j$(nproc) check

Issues

This is functional, but very simple. We still have quite a lot to do:

  • Need to implement a simple non pipelined divide
  • There are a few instructions still to be implemented
  • Need to add caches and bypassing (in progress)
  • Need to add supervisor state (in progress)
Description
A tiny Open POWER ISA softcore written in VHDL 2008
Readme 75 MiB
Languages
Verilog 79.8%
VHDL 14.8%
C 3.2%
Tcl 1.1%
Assembly 0.6%
Other 0.4%