Binary value representation issue [duplicate]
My task is to create a text file and put my first name as binary data in the text file, and then to read this file and convert this binary data to characters and put it in another file as characters. How do I represent my name in binary? I tried: reg [255:0] myname = 01001110011010010110101101101111011011000110111101111010; But, it did not work. The error says the number is too big. Then I tried: reg [1:0] myname1 = 2'b0100_1110_0110_1001_0110_1011_0110_1111_0110_1100_0110_1111_0111_1010; This also did not work. It always gave "_" as an output.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.