Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

Who's Online
There are currently, 62 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

  
Verification Guild: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

How to avoid duplicate modules in Verilog

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Simulation
View previous topic :: View next topic  
Author Message
Newsletter
Original Contribution


Joined: Dec 08, 2003
Posts: 1107

PostPosted: Mon Dec 01, 2003 12:00 am    Post subject: How to avoid duplicate modules in Verilog Reply with quote

(Originally from Issue 4.18, Item 10.0)

From: Anonymous

I have a specific problem

Normally in a test set-up, a RTL and test model will be present. In
my particular case (exception), I have two instances of the RTL model.

My test set-up is fine when running test cases etc etc. But when I do
gate simulations, since I have two instances of RTL, two modules with
same name are seen by the compilier. I want to avoid it.

One simple way to avoid it is by changing the name of the files. Is
there any other method that can be used with out changing the
names?
Back to top
View user's profile
Newsletter
Original Contribution


Joined: Dec 08, 2003
Posts: 1107

PostPosted: Wed Dec 17, 2003 5:51 pm    Post subject: How to avoid duplicate modules in Verilog Reply with quote

(Originally from Issue 4.19, Item 9.0)

From: Laurent Claudel

Which Verilog simulator are you using ?

Most compiler provide a way to have different views of a same module and while elaborating your design, you can choose which view you're using. Thus you can compile one instance in a view called rtl and the other one in a view called gate and you will have my_design:rtl and my_design:gate. And when you elaborate your design with your bench, you choose in your setup file which view should be used with the bindings. It is pretty much straight forward with NCsim.

This method as been actually normalized with the configuation feature of Verilog2001 (but your compiler may not support it yet) where each module has a symbolic notation lib.cell:config
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Simulation All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.175 Seconds