Parsing a txt file

Joined
Aug 16, 2007
Messages
1
Reaction score
0
Hi,

I am trying to parse a file to simulate a cpu. Then, when I am parsing I identify which command (read/write from/to reg ...) and I am translating this command in VHDL..

My problem is when I want to execute a while command: The only solution that I found is to execute "loop: {...} if (..) GOTO loop" for it I have to save the line number of "loop:" and then going back to this line when I'll see "GOTO loop".

Anyone know how to do it?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top