Vengineerの戯言

人生は短いけど、長いです。人生を楽しみましょう!

Xilinx SDAccelでも、エミュレーションモード


昨日のブログにも書きましたが、Xilinx SDAccelにも、エミュレーションモードがあるようですね。


Chapter 4 Application Emulation に、CPU Emulation がありました。

 compile_emulation 
というコマンドで、エミュレーションモード用のコードが生成される模様。

そして、
 run_emulation -args <command line arguments> 
で、エミュレーションモードにて、プログラムを実行できると。

Hardware Emulation というのもある。

コンパイルは、
 compile_emulation -flow hardware 

実行は、
 run_emulation -flow hardware -args <command line arguments> 
で、
引用
The run_emulation command runs the host code program to completion and invokes the Xilinx® OpenCL runtime library as well as all necessary kernels to complete the functionality. It is important to keep in mind that the compute units implementing the kernel operations are executed within a hardware simulator for this type of emulation. Therefore, the time it takes to complete this command is directly proportional to the amount of data transferred from the host to the kernels and the number of operations in a compute unit. 
とあるよ。