I am trying to read a text file in Matlab and convert it into bits. I then want to access and store them in a register in my module in Verilog. I then use these bits inside the module. Can I do this? If yes, how?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a couple of ways to read a text file into Verilog and strore numeric values into a variable. The easiest way is to use the
$readmembsystem task and store the values into aregarray.Another way which is a little more work, but is also more flexible, is to use the
$fopensystem task. Refer to the IEEE Verilog Std (1800-2009, for example).