CIRCT 24.0.0git
Loading...
Searching...
No Matches
test_codegen.TypedFuncMultiArg Class Reference
Inheritance diagram for test_codegen.TypedFuncMultiArg:
Collaboration diagram for test_codegen.TypedFuncMultiArg:

Public Member Functions

 construct (ports)

Static Public Attributes

 clk = Clock()
 rst = Reset()

Detailed Description

Typed function with a multi-field argument struct.

Exercises ``TypedFunction``'s emplace-style ``call(...)`` overload, which
forwards its arguments into the generated arg struct's constructor so the
C++ driver can call ``connected->call(a, b)`` instead of building the
struct itself. The body computes ``a * b`` and returns it as ``ui32``.

Definition at line 44 of file test_codegen.py.

Member Function Documentation

◆ construct()

test_codegen.TypedFuncMultiArg.construct ( ports)

Definition at line 57 of file test_codegen.py.

References wrap().

Member Data Documentation

◆ clk

test_codegen.TypedFuncMultiArg.clk = Clock()
static

Definition at line 53 of file test_codegen.py.

◆ rst

test_codegen.TypedFuncMultiArg.rst = Reset()
static

Definition at line 54 of file test_codegen.py.


The documentation for this class was generated from the following file: