fix dg_dbg error string buf
add port simulation