The Torii API reference is a work in progress and we are actively working on improving it, however it may be deficient or missing in places.
- exception torii.hdl.ir.DriverConflict
- class torii.hdl.ir.Instance(type, *args, **kwargs)
Allows for the direct instantiation of external modules, cells, or primitives.
It accepts the name of the object to instantiate and a collection of keyword arguments that define the ports, attributes, and parameters to it.
It is defined by a prefix followed by the canonical name of the element the value is setting. For instance, if you have a cell called
dffwith ports named
Qyou are able to instantiate it as follows:
dff = Instance( 'dff', i_D = sig_in, i_CLK = clk, o_Q = sig_out, )
The meaning of the prefix for the arguments are as follows:
type (str) – The name/type of object to instantiate
- exception torii.hdl.ir.UnusedElaboratable