Skip to content

Commit 939f1b8

Browse files
authored
Merge pull request #588 from lnis-uofu/tb_port_names
Now port/wire names uses "__" to avoid collision FPGA global ports
2 parents 8a8e4c6 + 8ab0906 commit 939f1b8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/install_dependencies_build.sh

100644100755
File mode changed.

openfpga/src/fpga_verilog/verilog_top_testbench_constants.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ constexpr char* TOP_TESTBENCH_SIM_START_PORT_NAME = "sim_start";
1818

1919
constexpr char* TOP_TESTBENCH_ERROR_COUNTER = "nb_error";
2020

21-
constexpr char* TOP_TB_RESET_PORT_NAME = "greset";
22-
constexpr char* TOP_TB_SET_PORT_NAME = "gset";
23-
constexpr char* TOP_TB_PROG_RESET_PORT_NAME = "prog_reset";
24-
constexpr char* TOP_TB_PROG_SET_PORT_NAME = "prog_set";
25-
constexpr char* TOP_TB_CONFIG_DONE_PORT_NAME = "config_done";
26-
constexpr char* TOP_TB_OP_CLOCK_PORT_NAME = "op_clock";
27-
constexpr char* TOP_TB_OP_CLOCK_PORT_PREFIX = "operating_clk_";
28-
constexpr char* TOP_TB_PROG_CLOCK_PORT_NAME = "prog_clock";
29-
constexpr char* TOP_TB_INOUT_REG_POSTFIX = "_reg";
30-
constexpr char* TOP_TB_CLOCK_REG_POSTFIX = "_reg";
21+
constexpr char* TOP_TB_RESET_PORT_NAME = "__greset__";
22+
constexpr char* TOP_TB_SET_PORT_NAME = "__gset__";
23+
constexpr char* TOP_TB_PROG_RESET_PORT_NAME = "__prog_reset__";
24+
constexpr char* TOP_TB_PROG_SET_PORT_NAME = "__prog_set_";
25+
constexpr char* TOP_TB_CONFIG_DONE_PORT_NAME = "__config_done__";
26+
constexpr char* TOP_TB_OP_CLOCK_PORT_NAME = "__op_clock__";
27+
constexpr char* TOP_TB_OP_CLOCK_PORT_PREFIX = "__operating_clk_";
28+
constexpr char* TOP_TB_PROG_CLOCK_PORT_NAME = "__prog_clock__";
29+
constexpr char* TOP_TB_INOUT_REG_POSTFIX = "_reg__";
30+
constexpr char* TOP_TB_CLOCK_REG_POSTFIX = "_reg__";
3131
constexpr char* TOP_TB_BITSTREAM_LENGTH_VARIABLE = "BITSTREAM_LENGTH";
3232
constexpr char* TOP_TB_BITSTREAM_WIDTH_VARIABLE = "BITSTREAM_WIDTH";
3333
constexpr char* TOP_TB_BITSTREAM_MEM_REG_NAME = "bit_mem";

0 commit comments

Comments
 (0)