Jump to content

sumi29

Members
  • Content Count

    2
  • Joined

  • Last visited

About sumi29

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location
    Stony Brook, New York.
  • Interests
    FPGA, ASIC, Logic verification, Logic design and synthesis
  1. sumi29

    "Reading" a file and passing it as input

    Thanks dakupoto for your valuable answer. Unfortunately, I can't create my own implementation as I am still learning SystemC and I would like to get a better hold of concepts and then move up. Thanks again for your time and efforts.
  2. I am writing some code that requires me to read a file and then use it as input to the SystemC module. What this means is that I should read a file, say, abc.xxx, and then send its content in the binary form to a port (another way to interpret this: I wanna read a file into the buffer and send this buffer through a SystemC port). Basically, I want to demonstrate that I can "read" any file and perform any operations on it. My questions are: 1) I could use a text file as my input. Read the text file, and store its text contents in a string (using C++, which would be enough for my purposes). But how would I send this string through a systemC port? 2) The above solution is only for text files, where I wanna use the text content of a text file. But like my original query, what would I do when I just want to transfer the file through the port? I apologize if my query isn't completely clear. Thanks in advance!!
×