Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>X-HEEP IDE (Alpha)New to Visual Studio Code? Get it now.
X-HEEP IDE (Alpha)

X-HEEP IDE (Alpha)

Preview

Luigi Giuffrida

|
15 installs
| (4) | Free
Build, simulate, flash and debug X-HEEP applications
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

X-HEEP IDE (Alpha)

VS Code extension for developing software on X-HEEP, in simulation and on FPGA. Open an X-HEEP clone in VS Code and the extension activates.

Features

  • Applications view (X-HEEP icon in the activity bar): your apps and the X-HEEP examples, with Build, Run and Debug.
  • Run modes (status bar):
    • Simulation: runs the app on the Verilator (or Questasim) model. Debug uses GDB on a JTAG-enabled model.
    • FPGA · JTAG: loads the app into X-HEEP's RAM through the JTAG adapter that is plugged in. Run runs it, Debug opens GDB.
    • FPGA · Flash: writes the app to the SPI flash, and X-HEEP boots it by itself, as the chip would.
  • Run button (status bar): builds and runs the active app, the one whose file is open. In Simulation it tells the model: green when ready, a red cross when its build failed, a wrench when Run will build it first. The app name next to it tells the app's build. Both count what you build by hand (make verilator-build, make app).
  • X-HEEP tab in the bottom panel (next to Problems, Output, Terminal): the app's UART output on the left, closed by the program's exit code, and the log on the right: commands, mcu-gen, model and app builds, simulator, OpenOCD. Both are also in the X-HEEP UART and X-HEEP Output channels.
  • Errors explained: memory overflows, functions that need an OS (sleep, pthread_*), stack overflows, exceptions, and programs stuck on the board.
  • Environment check: Python environment, toolchain, Verilator and verible versions, FPGA hardware and permissions. Each problem comes with what to do about it.
  • Set Up Tools: uses a setup script that puts the tools on PATH (as on many servers), finds or installs the missing tools, or reopens the project in the X-HEEP container (Docker or WSL), where everything is preinstalled.

Platform configurations

Click the configuration in the status bar to pick a configuration, or to create one as Python code or with the experimental editor. The editor is a form for CPU, bus, memory and peripherals. It saves a small Python file on top of the configuration you started from, and never edits the original.

Hardware development

For changes to the X-HEEP RTL:

  • Model kept up to date, only when needed: Build regenerates the platform only when it is missing or older than its configuration, and Run also rebuilds the simulation model only when it is missing or older than an RTL file in hw/ or tb/. What you generate or build by hand (make mcu-gen, make verilator-build) counts, so a mixed flow works. A platform generated by hand shows as manual in the status bar: the extension uses it as it is and never regenerates it, until you pick a configuration (or run Regenerate Platform). The Memory Map then shows the platform as generated, read from its C header. Verilator and Questasim errors, and warnings outside vendored IPs, go to the Problems panel.
  • Waveforms: Open Waveform opens the waveform.fst of the last Verilator run in Surfer, or in GTKWave.
  • SystemVerilog editing with the Verible extension: lint, go to definition across modules (the extension writes verible.filelist from the model's files), and formatting on save as X-HEEP's util/format-verible does, only in the folders it covers (xheep.formatRtlOnSave).
  • Memory Map view: RAM, address regions, peripherals, and their registers and fields from the regtool descriptions. Copy Address copies the C define (UART_START_ADDRESS + UART_CTRL_REG_OFFSET).
  • App regression in the Testing view: runs the apps on the simulation model of the active platform. An app passes when it exits with 0. Apps X-HEEP's own app test leaves out are skipped, unless you run them one by one.

FPGA

Officially supported boards: PYNQ-Z2 and AUP-ZU3.

On the PYNQ-Z2, OpenOCD loads the bitstream (no Vivado needed). Set xheep.bitstream to a .bit file, or build one with Build Bitstream, which only appears when Vivado is installed. The extension warns when the active configuration does not match the hardware of the bitstream.

Software-only projects

Run X-HEEP: New X-HEEP Software Project in an empty folder to keep your apps in your own repo, with X-HEEP added as a git submodule (or a link to an existing clone) in x-heep/. Update X-HEEP moves that submodule to the latest X-HEEP commit tested with the extension, or to main.

Hardware projects

Run X-HEEP: New Hardware Project to start a new repo from gr-heep, to extend X-HEEP with your own hardware. It is renamed after its folder: my-chip gives hw/my-chip/my_chip.sv, module my_chip, core x-heep:systems:my-chip. The extension works in gr-heep and its forks (X-HEEP vendored in hw/vendor/x-heep): mcu-gen, the simulation models and the bitstream are built with the project's Makefile, the configuration defaults to config/mcu-gen-config.py, and apps go in sw/applications. Update the vendored X-HEEP with make vendor-update.

X-ALP

The extension also works with X-ALP (CVA6, RV64), opened as a clone or as a software project from New X-ALP Software Project (X-ALP in x-alp/). Build and Run work in simulation (Verilator), from the SPM or from the DRAM: pick it in the status bar. Debug starts X-ALP's JTAG model, OpenOCD and GDB, but X-ALP's JTAG debugging does not run programs to the end in simulation yet. The Memory Map view shows the SPM, the DRAM and the peripherals. The platform editor has X-ALP's knobs: the cache geometry (which sizes the SPM), the DRAM and the peripherals. FPGA and flash are X-HEEP's only for now, and the stack checks are off (X-ALP's Makefile takes no extra compiler flags). XHEEP_SOC=x-alp node out/test/e2e.js runs the end-to-end test against X-ALP.

Settings

All under xheep.*. The defaults work for most setups. setupScript, envSetup, riscvToolchain, fpgaBoard, bitstream and serialPort are the ones you may need to set.

Development

npm install
npm run compile   # or: npm run watch
npm test

Press F5 to open an Extension Development Host, then open an X-HEEP folder in it. make e2e runs the software-project steps against a fresh X-HEEP clone (it needs the X-HEEP tools).

Releasing: add the version to CHANGELOG.md, then make patch (or minor, major). CI tests, publishes to the Marketplace and creates the GitHub release.

X-HEEP compatibility: XHEEP_COMMIT pins the last X-HEEP commit the extension works with, and new projects clone that commit. A nightly workflow tests each new X-HEEP main commit. It moves the pin when the commit passes, and opens an issue labelled xheep-canary when it fails.

Contributors

  • Luigi Giuffrida
  • Alessandro Varaldi
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft