04-26-2017 01:28 PM
http://fpganow.com/index.php/2017/04/20/filter-market-data-messages-in-an-fpga-part-3/
Note: Skip directly to GitHub.com to download the source code by following this link:
This post will cover the next iteration of implementing an OrderBook inside an FPGA that is based on a NASDAQ ITCH 4.1 market data feed.
Some time has passed and I have finally found enough time to finish all the code changes required for the two (2) components listed below, along with the requisite test harnesses to validate.
Here is a screenshot of the Front Panel diagram for the ITCH Parser Test Harness:
and here is a flow chart of what is going on:
What exactly is going on? The vi Host-ItchParser-TestHarness.vi, reads the file containing raw NASDAQ ITCH Market Data messages, sends them in to the FPGA Test Harness via the Host-to-Target DMA FIFO “HT-TEST_IN”. The Fpga test harness is located in the “Tests” folder and is named “Fpga-ItchParser-TestHarness.vi”, this Test Harness passes the raw Itch data as is to the Fpga-ItchParser.vi, which parses, normalized and filters each message for Add order message types only for symbol AAPL. It then sends an OrderBook command for each appropriate message back out to the Fpga-TestHarness which sends the results up to the host
And for the OrderBook Test Harness
Here is what it would look like in a production system
Why this is so important?
Well, normally to create an FPGA based anything, one needs to use Verilog, VHDL or one of any numerous “high-level” design languages. Here you can accomplish the same thing, but with a really great programming interface that matches the Verilog programming model, but only with a graphical interface.
This means you can create a custom FPGA based solution, reduce your datacenter power usage, increase your applications performance, and reap the rest of the great benefits of FPGA-based computing.
I encourage you to download the source code for this and to see for yourself what LabVIEW for FPGA can do for you and to then try it in one of your own applications.