tutx
Full Member level 2
error e112 systemc
I tried to implement an example "2-to-4 decoder". And then, I wrote 3 other module to test this decoder. They are a generator module which will provide test data for the decoder, a monitor module which will get all of information about the outputs of the decoder, and the last module is the sc_main() module.
I compiled these codes and didn't have any error and any warning statement. It seems do not have any error but there is a problem when I tried to run the executable file. That is:
I have tried to find some errors but I cannot find any one. Could somebody help me?
Thanks in advance,
I tried to implement an example "2-to-4 decoder". And then, I wrote 3 other module to test this decoder. They are a generator module which will provide test data for the decoder, a monitor module which will get all of information about the outputs of the decoder, and the last module is the sc_main() module.
I compiled these codes and didn't have any error and any warning statement. It seems do not have any error but there is a problem when I tried to run the executable file. That is:
mystic/SYSTEMC 30 >> decoder_main.x
SystemC 2.0.1 --- Oct 7 2003 10:35:19
Copyright (c) 1996-2002 by all Contributors
ALL RIGHTS RESERVED
At time 0 scaptured :: (selec1, selec0, enable):
Error: (E112) get interface failed: index out of range: port 'MonitorWaveforms.port_1' (sc_in)
In file: ../../../../src/systemc/communication/sc_port.cpp:196
In process: MonitorWaveforms.prc_decoder_monitor @ 0 s
I have tried to find some errors but I cannot find any one. Could somebody help me?
Thanks in advance,