Share Queue between class?

S

Shenli

Guest
Hi all,

I am using IUS583. And I want to do transaction layer class object
transfer using Queue.
I think there maybe two methods listed below.
1. share queue with two different class
2. share queue (maybe local queue) with two different tasks within one
class
My queue contain class object, is it feasible in IUS583? And is there
any simple example to do that work?

I have write method 1 and method 2 ,but it seems IUS583 always give
out ncelab error:
ncelab: *E,CUVHNF Hierarchical name component lookup failed at
'cmd_queue'.

//method 1 snippet
module top_tb;
class cmd_c;
....
endclass

cmd_c cmd_queue[$]

class transaction_gen;
task run;
...
cmd_queue.push_back (cmd)
endtask
endclass

//method 2 snippet
module top_tb;
class cmd_c;
....
endclass


class transaction_gen;
local cmd_c cmd_queue[$]
task run;
...
cmd_queue.push_back (cmd)
endtask
endclass

Best regards,
Shenli
 
Shenli wrote:
I have write method 1 and method 2 ,but it seems IUS583 always give
out ncelab error:
ncelab: *E,CUVHNF Hierarchical name component lookup failed at
'cmd_queue'.
I wrote simple testcases based on your partial code
for both methods, and both of them compiled without
any errors in IUS5.83-S1.

Either there was a problem fixed since the version
you are using (and the version I used was the first
hotfix release), or you have another problem that
is not shown in your sample code.
 
Hi Sharp,

Thanks a lot!
I have re-write a simple program, and the they work too.

Best regards,
Shenli

On Feb 3, 2:36 am, s...@cadence.com wrote:
Shenli wrote:

I have write method 1 and method 2 ,but it seems IUS583 always give
out ncelab error:
ncelab: *E,CUVHNF Hierarchical name component lookup failed at
'cmd_queue'.

I wrote simple testcases based on your partial code
for both methods, and both of them compiled without
any errors in IUS5.83-S1.

Either there was a problem fixed since the version
you are using (and the version I used was the first
hotfix release), or you have another problem that
is not shown in your sample code.
 

Welcome to EDABoard.com

Sponsor

Back
Top