I have opal kelly ngc files converted to gatelevel VHDL for FPGA simulation using the following trick:
export PATH=/cygdrive/s/eti/EDA/xilinx/suite/14.7/ISE_DE/ISE/bin/nt:$PATH
netgen -ofmt vhdl okHostInterfaceCore.ngc
netgen -ofmt vhdl okPipeOut.ngc
netgen -ofmt vhdl okPipeIn.ngc
etc…
it simulates without error…
Now i’m wondering is it possible to drive the inputs opal kelly host interface from testbench to emulate Front panel API calls? so that i can test the design entirely in simulation without downloading the fpga boards and conecting PC host with front panel… for instance, let’s say i have the following instantiation design instance…
ok_host : entity work.okHostInterface port map(
– Host Interface to FPGA Board
ti_clk => hi_clk, – o
hi_in => HI_IN, – i[7:0]
hi_out => hi_out, – o[1:0]
hi_inout => HI_INOUT, – b[15:0]
– OK Bus
ok1 => ok1, – o[30:0]
ok2 => ok2 – i[16:0]
);
from the testbench i want to drive and monitor the post hi_in, hi_out, hi_inout from testbench of okHostInterface… I have some legacy code that attempts to do this… i have no idea where it came from…or if this was something that opal kelly once supported?! I’ll give you a little sample of what they are trying to do:
from testbench:
write(output, “-> FrontPanelReset” & LF);
FrontPanelReset (usb_clk => HI_IN(0), command => HI_IN(7 downto 4), busy => HI_OUT(0));
from package:
procedure FrontPanelReset (
signal usb_clk : in std_logic;
signal command : out std_logic_vector(7 downto 4);
signal busy : in std_logic);
procedure WriteToPipeIn (
signal usb_clk : in std_logic;
signal command : out std_logic_vector(7 downto 4);
signal write : out std_logic;
variable length : in integer;
variable pipein : in pipein_array;
signal hi_inout : inout std_logic_vector(15 downto 0);
signal busy : in std_logic);
etc…etc…
Does opal Kelly have this capability? is there some testbench package laying around somewhere that emulates Frontpanel API from simulation testbench, (no need for the gui…) just want procedure like interface for testing…
Thanks.
(NOTE: these posts were not posted by the jerks who secretly watch my computer screen at work and copy and pretend my work is there’s… so sick of that scam i could puke… obviously the person who did the work is the poor contractor working along that do the work and then gets kicked out and some other contractor jerk gang puts their name on his work and milks the contract with more fake projects…)