Skip to content

Commit

Permalink
[RTLMVU] prototyping support for pyxsi rtlsim
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar authored and auphelia committed Nov 19, 2024
1 parent 8812079 commit 1115ddf
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/finn/custom_op/fpgadataflow/rtl/matrixvectoractivation_rtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,21 @@ def prepare_codegen_default(self, fpgapart, clk):

return template_path, code_gen_dict

def get_rtl_file_list(self):
verilog_files = [self.get_nodeattr("gen_top_module") + "_wrapper_sim.v"]
def get_rtl_file_list(self, abspath=False):
if abspath:
code_gen_dir = self.get_nodeattr("code_gen_dir_ipgen") + "/"
rtllib_dir = os.path.join(os.environ["FINN_ROOT"], "finn-rtllib/mvu/")
else:
code_gen_dir = ""
rtllib_dir = ""
verilog_files = [
code_gen_dir + self.get_nodeattr("gen_top_module") + "_wrapper.v",
rtllib_dir + "mvu_vvu_axi.sv",
rtllib_dir + "replay_buffer.sv",
rtllib_dir + "mvu_4sx4u.sv",
rtllib_dir + "mvu_vvu_8sx9_dsp58.sv",
rtllib_dir + "mvu_8sx8u_dsp48.sv",
]
return verilog_files

def get_verilog_paths(self):
Expand Down

0 comments on commit 1115ddf

Please sign in to comment.