Reading values from file in SystemC

Status
Not open for further replies.

omara007

Advanced Member level 4
Joined
Jan 6, 2003
Messages
1,237
Helped
50
Reputation
102
Reaction score
16
Trophy points
1,318
Location
Cairo/Egypt
Activity points
9,716
systemc reading from file

Hi guys ..

Do u guys know how to make an input port in systemc module read data from a file ?

regards
Mohammad
 

You can make one top level module. Instatiate your module in this module. Read the file in top livel module on every risiing edge of clock. Extract data in some veriables . Assing these veriables to the port .
 

In systemc, you can use "openfile(), readfile()..." as well as you do in C/C++.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…