FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2007, 08:44 AM
newbie
Guest
 
Posts: n/a
Default Program or Interface through ports of module

Can I pass objects of Program or Package while instantiating a module,
as I can pass objects of interface.
Waiting for an early reply.

Reply With Quote
  #2 (permalink)  
Old 05-16-2007, 10:16 AM
Jonathan Bromley
Guest
 
Posts: n/a
Default Re: Program or Interface through ports of module

On 16 May 2007 00:44:27 -0700, newbie <[email protected]> wrote:

>Can I pass objects of Program or Package while instantiating a module,
>as I can pass objects of interface.


Amit,

I assume you're talking about SystemVerilog?

As you suggest, a SystemVerilog module can have a port of
interface type. When you instantiate such a module, you
then hook its interface-type port to an instance of a
suitable interface, or perhaps to a modport in such an
interface instance.

You cannot do the same thing with programs or modules,
but only with interfaces.

Packages are somewhat different. Generally you would
import a package into a module. In that way, definitions
in the package become visible to the module. There is
no way to pass a pcakage through a module's port, and
I cannot see how that would make any sense.

Hope this helps
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
[email protected]
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect SystemVerilog interface to Verilog module ? Davy Verilog 3 12-05-2006 06:18 AM
interface and module in assertion ramnarayan Verilog 2 11-02-2006 03:25 PM
Named event module ports? Robert Au Verilog 4 07-02-2006 05:56 PM
help! Can't remember name of program. unfrostedpoptart Verilog 5 02-14-2006 09:29 AM
SV: interface, class, module qn Ravi S Gowda Verilog 3 03-14-2005 09:47 AM


All times are GMT +1. The time now is 12:05 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved