Typedef not working for a parameterized class

Hi,

I am using two qvip modules in my testbench -apb3 and uart. In order to compare the data field from both the interface i have created a new scoreboard(apbu_scoreboard class). I am having difficulty in declaring the sequence item in the class. the sequence item is a parametrized class and i declared as below:

typedef apb3_host_apb3_transaction #( SLAVE_COUNT,
ADDRESS_WIDTH ,
WDATA_WIDTH ,
RDATA_WIDTH ) apb_seq_t

I am getting error :

** Error: ** while parsing file included at top_pkg.sv(20)

** at apbu_scoreboard.svh(145): (vlog-2730) Undefined variable: ‘SLAVE_COUNT’.

** Error: ** while parsing file included at top_pkg.sv(20)

** at apbu_scoreboard.svh(146): (vlog-2730) Undefined variable: ‘ADDRESS_WIDTH’.

** Error: ** while parsing file included at top_pkg.sv(20)

** at apbu_scoreboard.svh(147): (vlog-2730) Undefined variable: ‘WDATA_WIDTH’.

** Error: ** while parsing file included at top_pkg.sv(20)

** at apbu_scoreboard.svh(148): (vlog-2730) Undefined variable: ‘RDATA_WIDTH’.

is this the correct method?

thanks.

In reply to gopakumar:

It seems you do not declare the parameters SLAVE_COUNT etc. They have to have specific values.