Jump to content

Recommended Posts

I have a header file, a cpp file and a testbench. 

Now what i am trying to accomplish is :

I have a text file which has a 75 bit packet. 

I need to use this packet in an input signal declared in the header file. 

Now the problem is if i use the function to call the text file, it doesnt open up the contents of the cpp file for me so the values are not assigned i know. 

If i use a main function and not a function declared in the header file then i can see the file is being opened but then the the vcd file does not get created at all so i dont know what happens then. 

 

Once this is solved i also need to ask, if i have 10 lines of 5 bit 1s and 0s in the text file and need to assign it 10 different variables then how can i do it ?

 

I can share my code if you want ?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...