MCPcopy Create free account
hub / github.com/Xilinx/Vitis_Libraries / gen_api_instance

Method gen_api_instance

dsp/scripts/instance_generator.py:144–150  ·  view source on GitHub ↗
(self, out_file_name, instance_name)

Source from the content-addressed store, hash-verified

142 return True
143
144 def gen_api_instance(self, out_file_name, instance_name):
145 #instance_name = os.path.basename(os.path.splitext(out_file_name)[0])
146 od = run_function(os.path.join(os.path.dirname(self.spec_file), self.spec_data["generator"]["file"]),
147 self.spec_data["generator"]["function"], instance_name, self.params)
148 write_file(out_file_name, od)
149 print(f"[INFO]: generated {out_file_name}")
150 return True
151
152def gen_tb_instance(out_file_name, script_name, func_name, param_file, param_name):
153 params = get_params(param_file, param_name)

Callers 1

mainFunction · 0.45

Calls 3

run_functionFunction · 0.70
write_fileFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected