HomeHomeJoin MUGContact MUGForums
   Forums
   Conferences
   SIG Info
   LUG Info
   FAQs
   Jobs
   Mentor Graphics

  MEMBERS ONLY
   Change Profile
   Email Archives
   SIG Top Issues
   User Library
   Conference
         Proceedings
   Search

 

 

 

Tech Discussion: ASIC, FPGA and IC Design >> Simulation

Pages: 1
questvlsi
member


Reged: 07/24/07
Posts: 1
Loc: Bangalore/Karnataka/India
SystemVerilog - Passing class through mailbox
      #3688 - 08/07/07 08:27 AM (125.17.142.34)

Hello All,
Iam not sure is this the correct forum to post this question since its related to Modelsim6.3a iam posting here.
Iam trying to put a class inside Mailbox, there is no compilation error in Modelsim6.3a but when i executing vsim its not getting simulated properly. There is a simulation error happening. But the same code is getting compiled in ncverilog, is this a limitation of Modelsim6.3a, i have given the code below for reference.

<code>
program test();
class test;
rand i;
randc j;
endclass

mailbox mbx;
test t1;

initial
begin
mbx = new;
t1 = new;
assert (t1.randomize());
mbx.put(t1); // Simulation error at this point

endprogram

</code>

Can any one let me know how i can pass class through mailbox using Modelsim6.3a

QuestVlsi


Post Extras: Print Post   Remind Me!   Notify Moderator  
shaohao
member


Reged: 08/29/07
Posts: 3
Loc: Shanghai, China
Re: SystemVerilog - Passing class through mailbox [Re: questvlsi]
      #3770 - 08/29/07 10:42 AM (218.81.105.201)

mailbox #(test) mbx;

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  MUGadmin, DavidZar, Phil Lindberg 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 830

Rate this topic

Jump to

Contact Us | Privacy statement | MUG Usage Statement MUGforums

Powered by UBB.threads™ 6.5.4