Hello,
Just trying to run some pre-made SystemVerilog (SV) code (just the register incrementer) through PyMTL3. But I am getting a
TypeError: 'module' object is not callable
coming back from my test code (just a very basic "test_small( cmdline_opts )" function) .
The test code is part of exactly the same *_test.py file that works for a PyMTL3 implementation of the register incrementer so I must not be creating and/or linking correctly (among other things?). My intuition is that I may not be "placing" and "translating" the SV correctly and I provide an example of my register incrementer code below the sign-off (mostly a copy of the example from ECE5745). I'm hoping that that's enough to indicate what my error is.
Thanks again,
Sebastian
my
class RegIncrVRTL( Component, Placeholder ):
def construct( s ):
s.in_ = InPort ( Bits8 )
s.out = OutPort ( Bits8 )
s.config_placeholder = VerilogPlaceholderConfigs(src_file='/my/path/regincr/RegIncrVRTL.v')
s.config_verilog_translate = VerilogTranslationConfigs(explicit_module_name='RegIncrRTL')
RegIncrRTL = RegIncrVRTL
a snippet of my test code is
def test_small( cmdline_opts ):run_test_vector_sim( RegIncrRTL(), [
('in_ out*'),
…
], cmdline_opts )