Skip to content

Integrating custom SystemC peripheral with QEMU instance using qbox. #25

@TunaHalpert

Description

@TunaHalpert

Summary

I'm new to using Qbox and SystemC together and would like to get started by integrating a very simple custom SystemC module (like a memory block) into a QEMU-based virtual platform.

My goal is to eventually:

  • Create a small virtual platform where QEMU simulates a CPU running Linux.
  • Add a custom SystemC component (e.g., a memory model or peripheral).
  • Observe and control interactions between QEMU and SystemC.

Right now, I'm looking for step-by-step guidance or a minimal working example.


What I'm Trying to Do

I want to:

  • Understand how QEMU (inside Qbox) can interact with a SystemC TLM model.
  • Learn how to set up a SystemC module (e.g., a memory block) that can be accessed from QEMU as a memory-mapped device.

But I’m not sure:

  • How to begin writing the SystemC platform code that integrates with Qbox.
  • How memory maps and device access work between QEMU and SystemC in Qbox.
  • Whether I need to register anything explicitly with QEMU for access to happen.

What I Need Help With

  1. A simple example or tutorial that shows how to connect a custom SystemC module into a Qbox simulation.
  2. A brief explanation of how memory transactions flow from QEMU to SystemC — what makes QEMU access a SystemC model?
  3. A minimal project structure to start from — which files I need to create and how to link them into the Qbox build system.

Thanks so much for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions