K
kaush
Guest
Hi ppl,
Well, I am trying to read input from a text file which is in
hex format. If it was only one column, then i would have
used $readmemh. But there are 8 columns, and i want to read
it from a single file itself.. Ya, i can always put them into
different files and read them(which i dont wanna do).
To be clear, the input file is as below ( in hex format )
b00a 100a 0d0a 500a 000a 000a 0f0a 100a
000b 0a0b 000b 070b 500b 000b f00b 080b
e00c 000c 600c 00ac 0e0c 000c 200c f00c
000d 0e0d 0c0d 00dd 000d 400d 000d 000d
700e e00e 000e 040e 000e 000e 300e a00e
000f 000f 0a0f 080f 000f 000f 000f a00f
to check for space, i guess that one has to check with "/"
if i am not wrong..
it would be kind if anybody can help me out...
i would be thankful to you...
hoping for best replies.. ;-)
Well, I am trying to read input from a text file which is in
hex format. If it was only one column, then i would have
used $readmemh. But there are 8 columns, and i want to read
it from a single file itself.. Ya, i can always put them into
different files and read them(which i dont wanna do).
To be clear, the input file is as below ( in hex format )
b00a 100a 0d0a 500a 000a 000a 0f0a 100a
000b 0a0b 000b 070b 500b 000b f00b 080b
e00c 000c 600c 00ac 0e0c 000c 200c f00c
000d 0e0d 0c0d 00dd 000d 400d 000d 000d
700e e00e 000e 040e 000e 000e 300e a00e
000f 000f 0a0f 080f 000f 000f 000f a00f
to check for space, i guess that one has to check with "/"
if i am not wrong..
it would be kind if anybody can help me out...
i would be thankful to you...
hoping for best replies.. ;-)