list index out of range
I am trying to triplicate a module call LDTU_Encoder with two sub-modules, one (Delay_enc) defined in the same verilog file of the offending one, the other in a different file (LDTU_FSM). If I triplicate only LDTU_FSM, it works. When I triplicate LDTU_Encoder, the program crashes with the error attached. I do not understand where is the issue. Can you please help me? I attach the file LDTU_Encoder, which must be triplicated, the file LDTU_FSM which include the sub-module used, and the config file used.
I run the program with tmrg -c TMR_Config/3_Encoder.cfg --tmr-dir=../LiteDTUv2_0_AUTOTMR/ -vvv
Traceback (most recent call last):
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/tmrg", line 6, in <module>
main()
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 2029, in main
tmrg.triplicate()
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 1757, in triplicate
tmrTokens = self.__triplicate(tokens)
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 257, in __triplicate
tmrToks = self.__triplicate(tokens[j], i+" ")
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 248, in __triplicate
tokens = self.triplicator[name](tokens)
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 860, in __triplicate_module
moduleBody = self.__triplicate(moduleBody)
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 257, in __triplicate
tmrToks = self.__triplicate(tokens[j], i+" ")
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 248, in __triplicate
tokens = self.triplicator[name](tokens)
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/tmrg.py", line 579, in __triplicate_ModuleInstantiation
if len(port[3]): # if the port is disconected, the lenght will be 0
File "/export/elt159xl/disk0/users/soldi/LiTE-DTU_v2.0_2021_Simulations/tmrg/bin/../tmrg/pyparsing152.py", line 320, in __getitem__
return self.__toklist[i]
IndexError: list index out of range
Edited by Stefan Biereigel