%% Generate DPI Component and Test Bench
% Generate a DPI component and test bench for a function fun.m and its associated test bench, fun_tb.m. The dpigen function automatically compiles the component using the default compiler. The -args option specifies that the first input is double data type and the second input is int8 data type.

% can i use a variable path? derive from modelsimpath? BaT still needs to
% set it up, too. Sandbox publish, I guess. Would be nice to generalize the
% path. 
% also need supporting files fun.m and fun_tb.m

% FIXME dpigen -testbench fun_tb.m -I E:\HDLTools\ModelSim\10.2c-mw-0\questa_sim\include fun.m 
%      -args {double(0),int8(0)}

% Copyright 2012 The MathWorks, Inc.