[HDL] bug fix in wrapper line generator

This commit is contained in:
tangxifan 2020-11-29 12:47:22 -07:00
parent 9f82d9bf54
commit d0f9ca718d
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ for pin_info in pin_data['pins']:
curr_line = "sky130_fd_sc_hd__mux2_1 FPGA2SOC_IN_" + str(indices[0]) + "_MUX (" \ curr_line = "sky130_fd_sc_hd__mux2_1 FPGA2SOC_IN_" + str(indices[0]) + "_MUX (" \
+ ".S(" + pin_data['mode_switch_pin_name'] + "), " \ + ".S(" + pin_data['mode_switch_pin_name'] + "), " \
+ ".A1(" + pin_data['caravel_' + pin_info['caravel_pin_type'][1] + '_name'] + "[" + str(indices[2]) + "]), " \ + ".A1(" + pin_data['caravel_' + pin_info['caravel_pin_type'][1] + '_name'] + "[" + str(indices[2]) + "]), " \
+ ".A0(" + pin_data['caravel_logic_analyzer_input_name'] + str(indices[1]) + "), " \ + ".A0(" + pin_data['caravel_logic_analyzer_input_name'] + "[" + str(indices[1]) + "]), " \
+ ".X(" + pin_data['fpga_gpio_input_name'] + "[" + str(indices[0]) + "])" \ + ".X(" + pin_data['fpga_gpio_input_name'] + "[" + str(indices[0]) + "])" \
+ ");" + ");"
netlist_lines.append(" " + curr_line + "\n") netlist_lines.append(" " + curr_line + "\n")