cocotb_dsim_sim

Rules

cocotb_dsim_sim

load("@rules_cocotb//cocotb:cocotb_dsim_sim.bzl", "cocotb_dsim_sim")

cocotb_dsim_sim(name, dsim, env)

A simulator configuration for running Siemens DSim (formerly Metrics DSim) simulations in cocotb tests.

Status

Infrastructure only. DSim is commercial, with no BCR module and no redistributable binary; rules_cocotb cannot validate this rule in CI. Wire it up downstream by pointing dsim at your own install and registering a cocotb_toolchain that routes sim = "dsim" through this rule. Cocotb's runner handles the actual build/sim via Runner.build / Runner.test.

Notes

DSim accepts both Verilog/SystemVerilog (VerilogInfo) and VHDL (VhdlInfo) modules. The dsim driver handles compile and run phases internally, so only the one binary attr is needed.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dsimThe dsim simulator binary.Labelrequired
envEnvironment variables to set when the cocotb runner invokes this simulator at test time (license-server pointers, install root vars, …). Precedence: toolchain env < sim env < rule-level cocotb_test(env = ...).Dictionary: String -> Stringoptional{}