Generate a SystemC TLM-2.0 model skeleton from an IP-XACT component: registers, memory maps and bus interfaces as TLM sockets.
Reads one IP-XACT component XML (1685-2009 by default, 1685-2014 with -v2014, 1685-2022 with -v2022) and writes a SystemC/TLM-2.0 model of it: <outdir>/<component>.hxx and <outdir>/<component>.cxx. With -genregmodel it also writes the C register model under the same directory.
Usage
ipxact2tlm -in <component.xml> [-outdir <dir>] [-v2014 | -v2022] [-genregmodel [-nomask]]
[-nobanner] [-quiet] [-suppress <id1:id2>]
Every option is listed by ipxact2tlm -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Exit status
- 0 on a clean run. 1 if any error was reported during generation (checked after the completion summary), and 1 when arguments were given but
-inis missing (error "No input IP-XACT file given, -in <ip-xact Component file> is mandatory ..."). 10 = license checkout failed. An unrecognised option exits 0. With-quieterrors are not counted, so the exit is 0. - Message format:
GenTLMModel: <Severity>: <id>: <text>;<id>is a 5-digit number. - Bus interface warnings:
56770(socket BUSWIDTH defaulted to 32, with the reason) and56771(a target's<memoryMapRef>names a map with no modelled address block).
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call ipxact2tlm. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- ipxact2tlm.