Skip to content
Snippets Groups Projects
Commit 8fbb609c authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[FIFO] bugfix in DeriveCharacteristic

parent fe2ea73c
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
import numpy as np import numpy as np
import qonnx.custom_op.registry as registry import qonnx.custom_op.registry as registry
from pyverilator.axi_utils import _read_signal, rtlsim_multi_io from pyverilator.util.axi_utils import _read_signal, rtlsim_multi_io
from qonnx.transformation.base import NodeLocalTransformation from qonnx.transformation.base import NodeLocalTransformation
from finn.util.fpgadataflow import is_fpgadataflow_node from finn.util.fpgadataflow import is_fpgadataflow_node
...@@ -84,9 +84,13 @@ class DeriveCharacteristic(NodeLocalTransformation): ...@@ -84,9 +84,13 @@ class DeriveCharacteristic(NodeLocalTransformation):
# try to come up with an optimistic estimate # try to come up with an optimistic estimate
exp_cycles = min(n_inps, n_outs) exp_cycles = min(n_inps, n_outs)
assert ( assert (
self.period < exp_cycles exp_cycles < self.period
), "Period %d too short to characterize %s" % (self.period, node.name) ), "Period %d too short to characterize %s : expects min %d cycles" % (
sim = inst.get_rtlsim self.period,
node.name,
exp_cycles,
)
sim = inst.get_rtlsim()
# signal name # signal name
sname = "_" + inst.hls_sname() + "_" sname = "_" + inst.hls_sname() + "_"
io_dict = { io_dict = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment