hi !
i am having a doubt in sv.
consider a micro processor architceture..all the bus elated signals are defined in an interface.. all these signals are shared by different blocks like alu,cu,memory, instruction decoder etc... some of these blocks dont utilize all of the signals defined in the interface. but the unused signals cant be left open like in MODULE.
then wont be there any error. how to resolve problem?
Hi
If there are unused signals in the blocks which are declared in the interface, declare this signals as bit. These signals will be in the X state.
Hope this helps
In total, the signals in the interface are connected to one or the other module & no signal is kept unconnected. Then how do you say that they left unconnected? We will be using different instances of the same interface and use the signals whichever are required for that particular module. If a signal is used nowhere, it will be deleted obviously!
The "modport" construct here will help to identify the directions even.