The invention discloses a high-level comprehensive method and
system for graph calculation, and belongs to the field of
big data processing, and the method comprises the steps: (1) generating a graphcalculation program according to a
functional programming model taking a point as a center; (2) specifying architecture parameters and micro-architecture parameters by adding an optimization instruction; (3) compiling a graph calculation program into modular data flow intermediate representation according to the data flow graph and the optimization instruction; (4) according to a mapping relationship between the IR module and the hardware template, mapping the intermediate representation of the
data stream to a bottom-layer architecture, and instantiating an
assembly line and a buffer area inthe hardware template; (5) if the instantiated parameterized hardware templates and the overall architecture meet constraint conditions, turning to the step (6); otherwise, turning to the step (3) after modifying the optimization instruction; and (6) generating a hardware
language code which can be synthesized. Effective support can be provided for generating a graph application RTL from an upper-layer language, so that the execution parallelism degree of graph calculation on an FPGA is improved.