pulp-platform / debug_bridge

BSD 3-Clause "New" or "Revised" License
7 stars 9 forks source link

Unable to connect to localhost port 4567 (Connection refused) #2

Open jpavieira opened 7 years ago

jpavieira commented 7 years ago

When I try to run debug_bridge after the previous steps for the simulation part, this error occurs:

Unable to connect to localhost port 4567 (Connection refused)

When running source tcl_files/run_memdpi.tcl on modelsim SE 10.2c on Linux Mint Sarah:

source tcl_files/run_memdpi.tcl
# vsim +nowarnTRAN +nowarnTSCALE +nowarnTFMPC +MEMLOAD=PRELOAD -L pulpino_lib -L apb_gpio_lib -L axi_slice_dc_lib -L apb_event_unit_lib -L axi_node_lib -L riscv_lib -L apb_pulpino_lib -L axi_mem_if_DP_lib -L apb_fll_if_lib -L axi_slice_lib -L apb_uart_lib -L apb_spi_master_lib -L apb_timer_lib -L axi2apb_lib -L axi_spi_slave_lib -L apb_i2c_lib -L adv_dbg_if_lib -L axi_spi_master_lib -L core2axi_lib -L apb_node_lib -L apb2per_lib {-voptargs=+acc -suppress 2103} -quiet -t ps -gTEST=MEM_DPI tb 
# ** Warning: (vsim-7032) The 32-bit glibc RPM does not appear to be installed on this machine.  Calls to gcc may fail.
# 
# ** Warning: (vsim-7032) The 32-bit glibc RPM does not appear to be installed on this machine.  Calls to gcc may fail.
# 
# ** Note: (vsim-3812) Design is being optimized...
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__1)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__2)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__3)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__4)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__5)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__6)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__7)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__8)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__9)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__10)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast__11)".
# ** Note: (vopt-143) Recognized 1 FSM in module "sleep_unit(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "spi_master_rx(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "i2c_eeprom_model(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in architecture body "uart_receiver(rtl)".
# ** Note: (vopt-143) Recognized 1 FSM in architecture body "uart_transmitter(rtl)".
# ** Note: (vopt-143) Recognized 2 FSMs in architecture body "apb_uart(rtl)".
# ** Note: (vopt-143) Recognized 1 FSM in module "i2c_master_bit_ctrl(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_BR_allocator(fast)".
# ** Note: (vopt-143) Recognized 2 FSMs in module "spi_slave_axi_plug(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "spi_slave_controller(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "core2axi(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "adbg_tap_top(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_write_only_ctrl(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_write_only_ctrl(fast__1)".
# ** Note: (vopt-143) Recognized 2 FSMs in module "apb_spi_master(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_address_decoder_AW(fast)".
# ** Note: (vopt-143) Recognized 2 FSMs in module "riscv_prefetch_buffer(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_BW_allocator(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "apb_fll_if(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "riscv_alu_div(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "i2c_master_byte_ctrl(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "generic_fifo(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "adbg_axi_module(fast)".
# ** Note: (vopt-143) Recognized 2 FSMs in module "riscv_debug_unit(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "adbg_axi_biu(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "adbg_or1k_module(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "spi_master_controller(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "riscv_mult(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "riscv_load_store_unit(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "riscv_controller(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi2apb32(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_read_only_ctrl(fast)".
# ** Note: (vopt-143) Recognized 1 FSM in module "axi_read_only_ctrl(fast__1)".
# ** Warning: (vsim-3770) Failed to find user specified function 'mem_init' in DPI C/C++ source files.
#    Time: 0 ps  Iteration: 0  Instance: /tb File: /mnt/sda5/Dropbox/EE/Mestrado/Tese/pulpino/vsim/..//tb/tb.sv
# ** Warning: (vsim-3770) Failed to find user specified function 'mem_poll' in DPI C/C++ source files.
#    Time: 0 ps  Iteration: 0  Instance: /tb File: /mnt/sda5/Dropbox/EE/Mestrado/Tese/pulpino/vsim/..//tb/tb.sv
# ** Warning: (vsim-3770) Failed to find user specified function 'mem_push' in DPI C/C++ source files.
#    Time: 0 ps  Iteration: 0  Instance: /tb File: /mnt/sda5/Dropbox/EE/Mestrado/Tese/pulpino/vsim/..//tb/tb.sv
# ** Warning: (vsim-3770) Failed to find user specified function 'mem_push' in DPI C/C++ source files.
#    Time: 0 ps  Iteration: 0  Instance: /tb File: /mnt/sda5/Dropbox/EE/Mestrado/Tese/pulpino/vsim/..//tb/tb.sv

Can someone please help me ASAP?

Thank you

haugoug commented 7 years ago

Your warnings seem to indicate that you had issues when compiling the DPI module called mem_dpi, which is required for the gdb connection. You should first get rid of these warnings, you probably have an issue with your modelsim version.

f2013619 commented 6 years ago

@jpavieira Hi, I am also getting similar errors were you able to remove them.

GSpinach commented 5 years ago

I have the same problem with those warnings ,And eventually I found a problem with the “make vcompile” script "vcompile_tb.sh",and solved DPI compilation problems.

stefanct commented 5 years ago

@GSpinach if you don't want to taunt people with the same problems you ought not to post messages like "haha I got it resolved but I won't tell you how!"... :/ What's your solution?

stefanct commented 5 years ago

@haugoug do you have any suggestions what I could try to fix that? There is nothing obviously wrong in vcompile_tb.sh AFAICT. I am currently using Questasim 10.6c_1.

stefanct commented 5 years ago

Explicitly setting the DPI compiler via dpicpppath seems to help with the warnings https://github.com/pulp-platform/pulpino/issues/110#issuecomment-326100024

haugoug commented 5 years ago

Sorry, no idea, I've never used pulpino.