How machineware-gmbh/vcml works
Main Components
a) Core Framework Layer:
• Component System (core/component.h, core/model.h)
• Module Management (core/module.h)
• Peripheral Management (core/peripheral.h)
• Processor Abstraction (core/processor.h)
• Register Framework (core/register.h)
• System Management (core/system.h)
b) Protocol Layer:
• TLM Base Infrastructure
• Custom Protocols (CAN, GPIO, I2C, PCI, Serial, SPI, etc.)
• Protocol Adapters and Sockets
c) Models Layer:
• ARM Models (GIC, PL011, etc.)
• Generic Models (Bus, Memory, etc.)
• RISC-V Models (CLINT, PLIC, etc.)
• Peripheral Models (USB, Ethernet, etc.)
• Virtual I/O Models (VirtIO)
d) Supporting Systems:
• Debugging Infrastructure
• Logging System
• Property System
• Tracing System
• UI Components
┌─────────────────────────────────────────────────────────────┐
• Application Layer │
• (Virtual Platforms built using VCML Components) │
• ┘
• ▲
┌─────────────────────────────────────────────────────────────┐
• Models Layer │
• ┬─────────────┬────────────────┬──────────────┤
• ARM Models │ RISC-V │ Generic │ Virtual I/O │
• GIC │ CLINT/PLIC │ Bus/Memory │ Models │
• ┴─────────────┴────────────────┴──────────────┘
• ▲
┌─────────────────────────────────────────────────────────────┐
• Protocol Layer │
• ┬────────────┬────────────────┬────────────────┤
• TLM Base │ Custom │ Protocol │ Socket │
• Protocols │ Adapters │ Management │
• ┴────────────┴────────────────┴────────────────┘
• ▲
┌─────────────────────────────────────────────────────────────┐
• Core Layer │
• ┬────────────┬────────────────┬────────────────┤
• Component │ Module │ Register │ System │
• Framework │ System │ Management │ Control │
• ┴────────────┴────────────────┴────────────────┘
• ▲
┌─────────────────────────────────────────────────────────────┐
• SystemC/TLM │
• ┘
Connection Types
• Double lines: Primary data paths
Supporting Systems (show as side panels)
┌─────────────┐
• Debugging │
• System │──┐
• ┘ │
┌─────────────┐ │
• Logging │ │
• System │──┼─────► Main Architecture
• ┘ │
┌─────────────┐ │
• Property │ │
• System │──┘
• ┘
Important Notes
• Version information (from core/version.h.in)
• External dependencies (SystemC, SDL2, etc.)
• Optional components (like UI support)
• Configuration paths for different build types