0
\$\begingroup\$

I am interested in implementing an ASCII-based communication protocol in Verilog for an FPGA. The communication protocol is FIX, and would require various string manipulations.

What tools/libraries should I use for synthesisable string manipulation?

asked Oct 30, 2012 at 10:23
\$\endgroup\$
7
  • 1
    \$\begingroup\$ Hi Randomblue! Did you mean to write two different questions, both similar? Do you expect different answers? \$\endgroup\$ Commented Oct 30, 2012 at 10:26
  • \$\begingroup\$ Hi back. I was intending one question to be specific to SystemVerilog, which is a language I do not know, and the other question to be specific to Verilog, which is a language I do know. I'd be happy to merge the questions if required. \$\endgroup\$ Commented Oct 30, 2012 at 10:30
  • \$\begingroup\$ I think it's enough to make the questions different. I don't know SystemVerilog too, but someone might find that it needs a new tag \$\endgroup\$ Commented Oct 30, 2012 at 10:33
  • \$\begingroup\$ Ok. I will retag the other question. \$\endgroup\$ Commented Oct 30, 2012 at 10:34
  • \$\begingroup\$ You could first ask on Meta if a new tag is needed :) \$\endgroup\$ Commented Oct 30, 2012 at 10:36

1 Answer 1

2
\$\begingroup\$

If you are manipulating strings that is going to be faster to do on a microprocessor than in hardware. However, for FIX you aren't really dealing with strings so much as you are dealing with numbers. Sure the fields are ASCII but you need to convert a lot of them from ASCII to numbers to make any sense of them (e.g. volumes).

I'm not sure that there are any Verilog libraries that will help you with string manipulations but basically, a Verilog compiler can understand ASCII and convert it to its bit representation, e.g. see this answer to Assign ASCII character to wire in Verilog.

answered Nov 1, 2012 at 11:54
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.