[sv-bc] Query on multiply instantiated modules...

From: Anand Gurusamy <gurusamy_at_.....>
Date: Tue Aug 05 2008 - 02:23:39 PDT
Hi there,

 

In the top level design "top", module "mid" is instantiated as below.

- - - - output logic dout;

- - - - mid i_mid [1:0] (

            .state_o(dout),

            -

            -

            -

            -

);

 

The above module is elaborated as,

mid \i_mid[0]  (

    .state_o(dout), 

      -

      -

      -

      -

);

 

mid \i_mid[1]  (

    .state_o(dout),

      -

      -

      -

      -

);

 

After elaboration, it looks like the signal "dout" is multiply driven
(from the output "state_o" of both the instantiations).

Would this be the correct behavior?

Or since "dout" is one bit, should some kind of truncation take place
and only the output "state_o" of module "\i_mid[0]" be connected to
dout?

 

Please let me know incase if there are any pointers on this in the LRM.

 

Thanks

-Anand

 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Aug 5 02:22:10 2008

This archive was generated by hypermail 2.1.8 : Tue Aug 05 2008 - 02:22:55 PDT