URL
https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk
Show entire file |
Details |
Blame |
View Log
Rev 43 |
Rev 44 |
Line 38... |
Line 38... |
import "DPI-C" context function void init_py_dpi(int width, int height);
|
import "DPI-C" context function void init_py_dpi(int width, int height);
|
import "DPI-C" context function void exit_py_dpi();
|
import "DPI-C" context function void exit_py_dpi();
|
import "DPI-C" context function void c_do_it();
|
import "DPI-C" context function void c_do_it();
|
import "DPI-C" context function void c_get_array(inout video_array_t va);
|
import "DPI-C" context function void c_get_array(inout video_array_t va);
|
import "DPI-C" context function int py_run_file(string filename, int argc, string args[]);
|
import "DPI-C" context function int py_run_file(string filename, int argc, string args[]);
|
import "DPI-C" context function void init_py_to_video_frame();
|
|
export "DPI-C" task sv_write;
|
export "DPI-C" task sv_write;
|
|
|
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
`include "./sv_video_frame_dpi.svh"
|
`include "./sv_video_frame_dpi.svh"
|
|
|
Line 60... |
Line 59... |
begin
|
begin
|
vf_h = new();
|
vf_h = new();
|
vf_h.init(WIDTH, HEIGHT);
|
vf_h.init(WIDTH, HEIGHT);
|
|
|
vf_h.get_frame(va);
|
vf_h.get_frame(va);
|
// vf_h.do_it();
|
vf_h.do_it();
|
|
vf_h.py_file("try_it.py", '{"Larry", "Curly", "Moe"});
|
|
|
vf_h.exit();
|
vf_h.exit();
|
|
|
$display("DONE!!");
|
$display("DONE!!");
|
end
|
end
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.