Skip to content
Snippets Groups Projects
Commit be6c10fc authored by Pepping's avatar Pepping
Browse files

UPdated make_file_io method.It doesn't check the value of the first column anymore.

parent cf427ad7
No related branches found
No related tags found
No related merge requests found
......@@ -342,9 +342,7 @@ class MmmGenerate:
python_name = peripherals_vhdl2python[peripheral[0]].upper()
else:
python_name = peripheral[0].upper()
file_io_entry = ""
if(int(peripheral[1]) == 1):
file_io_entry = "u_mm_file_" + peripheral[0] + " : mm_file GENERIC MAP(mmf_unb_file_prefix(g_sim_unb_nr, c_sim_node_nr, c_sim_node_type) & " + r'"' + python_name + r'"' + ")\n PORT MAP(mm_rst, mm_clk, " + peripheral[0] + "_mosi, " + peripheral[0] + "_miso );\n"
file_io_entry = "u_mm_file_" + peripheral[0] + " : mm_file GENERIC MAP(mmf_unb_file_prefix(g_sim_unb_nr, c_sim_node_nr, c_sim_node_type) & " + r'"' + python_name + r'"' + ")\n PORT MAP(mm_rst, mm_clk, " + peripheral[0] + "_mosi, " + peripheral[0] + "_miso );\n"
return file_io_entry
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment