pjf57 / mat-server-side

Server side code for Market Analysis Toolkit
2 stars 0 forks source link

Move core code into lib maven project #2

Closed lmihalkovic closed 11 years ago

lmihalkovic commented 12 years ago

root maven now has 2 subs: lib & editor

pjf57 commented 12 years ago

Hi Laurent,

these are the VHDL files that contain definitions that correspond to the properties file.

mat_element_defs.vhd is an include file that defines the types of elements and their config attributes. For example, you mentioned the UDP market feed which has a port set to 15000. That config item (attribute in the Java code) is defined as EL_MDF_C_UDPPORT (with config id of 5).

mat.vhd is a module that pulls together the router, udp status sender, and all of the elements. It has a bunch of constants that define IDs for each element by defining the first and last IDs in a range. for example:

constant ID_EMA_FIRST        : integer := 3;
constant ID_EMA_LAST            : integer := 5;

means that there will be EMA elements at IDs 3,4,5.

These elements are actually instantiated into the design later down in the file where you see the generate statements.

The interface to MAT is simply a config input port (this is driven when the Java code conifgures the HW) and a UDP layer input and output. The UDP input feeds the UDP_MKT_FEED element and the udp output is driven by the status module, the logger, and (soon to come) the order placement element.

Cheers, Peter