Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

systemverilog - help is needed

Status
Not open for further replies.

bradyue

Member level 2
Joined
Jan 18, 2008
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,603
readmemb in systemverilog

I want to read binary file in the class.
This is the code:
class A;
logic [63:0] INIT_MEM[431:0];

task A;
$readmemb("file", INIT_MEM);
endtask
endclass
When runnig NCVLOG, a error report

$readmemb("file", INIT_MEM);
|
ncvlog: *E,WOUPXR (/x/env.sv,37|33): An expression with an unpacked array datatype is not allowed in this context [SystemVerilog].
$readmemb("file", INIT_MEM);
|
ncvlog: *E,WOUPYR (/x/env.sv,37|33): As a temporary implementation restriction, an array class member reference is not permitted in this context.

Could anybody help me on this?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top