You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
Microwatt eSim Integration
Overview
This directory contains initial integration support for running the OpenPOWER Microwatt core inside the eSim/NGHDL co-simulation environment.
The integration flow enables Microwatt to be compiled with GHDL and wrapped for NGHDL/XSPICE-based simulation inside eSim.
Files
microwatt_cosim.vhdl
NGHDL-compatible wrapper for Microwatt.
Exposed ports:
clk: Clock inputrst: Reset inputuart_tx: UART transmit output
compile_for_nghdl.sh
Build script used to:
- Compile Microwatt using GHDL
- Build required helper objects
- Elaborate the wrapper for NGHDL/XSPICE integration
Build Flow
Run:
bash esim/compile_for_nghdl.sh
Successful compilation generates the NGHDL-compatible elaborated design.
eSim Workflow
-
Compile Microwatt using the provided script
-
Generate the NGHDL/XSPICE codemodel
-
Import the generated block into eSim
-
Create a schematic using:
- clock pulse
- reset pulse
- UART probe
-
Run transient simulation
Current Status
- Wrapper compilation successful
- NGHDL integration validated
- Basic schematic-level simulation setup completed
Future Work
- Add memory and peripheral models
- Expand validation workflows
- Add example system-level designs