R
raghu
Guest
Is it possible to convert a text message into a binary format using
verilog language???
Thanks a lot.
Regards,
Raghu
verilog language???
Thanks a lot.
Regards,
Raghu
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Is it possible to convert a text message into a binary format using
verilog language???
Thanks a lot.
Regards,
Raghu
You may need to describe more precisely what you are trying to do,I would like to give the binary output of text message as an input to
an algorithm which i have implemented using verilog.
can you please suggest me how to convert the text to binary.
raghu wrote:
I would like to give the binary output of text message as an input to
an algorithm which i have implemented using verilog.
can you please suggest me how to convert the text to binary.
You may need to describe more precisely what you are trying to do,
since an English description is not entirely clear.
You have some text. If it is in a file, you can read it with a %s
format into a reg. If it is already in a reg, then you can skip that
step. At this point, the reg contains binary bits that represent the
ASCII encoding of the text characters. If that is what you mean by
converting it to binary, then you don't have to do anything. That is
already how it is stored. Your Verilog algorithm can operate on the
contents of the reg.
If you want to do something else, then you need to describe it more
precisely.
Assuming that your simulator supports Verilog-2001 file I/O, you have aThanks a lot for your valuable response.
As you said that a text in a file can be read with %s format. can you
please give me more detailed description on this. I mean ,the syntax
and where the file should be kept i.e in which directory ,in order to
access the file.