'simulator' Submodule
Introduction¶
from streamtensor import simulator
DataflowNode(op, clock, latency, interval, tripcount, depth)
¶
Bases: ParentNode
, ChildNode
, InternalNode
Intermediate nodes that can have both parents and children
Kernel(kernel_op)
¶
print_dot(file_name, filter=lambda op: True)
¶
Prints the design space as a DOT file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name
|
str
|
The name of the DOT file. |
required |
filter
|
Callable[[TaskOp], bool]
|
A filter function to select nodes to print. |
lambda op: True
|
print_tracing(file_name)
¶
Prints a timeline visualization showing when each node is busy/idle.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name
|
str
|
Output filename for the timeline image. |
required |
KernelNode(op, clock, latency)
¶
Node(op, clock, latency, interval, tripcount, depth, **kwargs)
¶
Bases: ABC
Base class for all nodes with common properties