Patent ID: 8336036

Claim:
A method of translating a high level language code into a HDL code, comprising the steps of: (1) marking API on a translation-targeted high level language code; (2) separating the translation-targeted high level language code marked with API into a software code part and a hardware code part and storing the software code part and the hardware code part in separate files; (3) compiling the stored software code part of the translation-targeted high level language code by means of a main compiler and translating the stored hardware code part of the translation-targeted high level language code into a HDL code by means of a translator, wherein the translation of the stored hardware code part into a HDL code by means of a translator includes translating the hardware code part into a low level IR code of the main compiler immediately before generation of a target assembly code, and translating the low level IR code into the HDL code; and (4) executing the compiled software code part in a main core and executing the HDL code in a dedicated hardware.