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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top