Jump to content

Error: (E112) get interface failed: port is not bound: port 'core_pim.decoder_addr.IN' (sc_object) In file: ../../../../src/sysc/communication/sc_port.cpp:231


acc_sysC
 Share

Recommended Posts

This error points to my decoder module. But the module by itself works fine when isolated.

I think its complaining about this:

 decoder_addr.IN(FUNC_ADDR);

because the stimulus is not getting instantiated for some reason. Nothing gets printed out from the stimulus module and hence all the outputs printed are zero.

Can't figure out the reason for this. Please guide me.

 

Link to comment
Share on other sites

@David Black But I have connected the IN port. That is why I cannot find a way to rectify this error.

What is the best way to debug errors that happen during elaboration? This is something I haven't done. Some links or examples related to this would be great. So I can read and learn them.

Link to comment
Share on other sites

The problem is elsewhere (during elaboration - but not specifically because you left a port unconnected). This is your `PIM` constructor:

    PIM(sc_module_name name): sc_module(name)
    {
        SC_METHOD(concat_method_sY);
        sensitive << sY_bit << A << B;

        /* Etc.. */
      
        decoder<2*N> decoder_addr("decoder_addr");
        decoder_addr.IN(FUNC_ADDR);
        decoder_addr.OUT(sFUNC_ADDR);
      
        register_file<1<<(2*N),N> func_regs("func_regs");
        func_regs.DATA_IN(FUNC_IN);
        func_regs.WRITE_ADDR(sFUNC_ADDR);
        func_regs.WRITE_EN(LOAD);
        func_regs.READ_EN(RUN);
        func_regs.clk(clk);
        func_regs.reset(reset);
        func_regs.DATA_OUT(sFUNC);
       
        /* Etc... */
    }

Note that the `decoder_addr` (and `func_regs`, `AMux`, `BMux`, etc) are getting instantiated as local variables inside the constructor. These will get destroyed once the constructor execution is complete. You need to fix that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...