Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHow to use a module or interface instance in an interface?
Hello,every one! I have some problem in using interface of SystemVerilog: I have a predefined module and interface, and I want to use them in another interface. The example code of module in int...
Altera_Forum
Honored Contributor
10 years agoHi, Mr.Tricky:
Thanks for your replying. There are some same processes in different interfaces in my design, and I wish to purge the duplicated code in these interfaces, so, I encapsulates these same process into a module and instantiate it in these interfaces. I think this would be helpful to maintain my design codes. On the other hand, if the module could not be intantiated in interface for it is recognized as a chip, why neither interface? Just as you said, the interface is like a group of interconnections, why couldn't it contain a group of another interconnections?