HPS memory instatiation in top level module

Continuing the discussion from Kernel crash when uploading HPS Bridge code:

Hi, I just want to ask how to know that inout [39:0] hps_memory_mem_dq, is [39:0]? From where do I get this information that I have to write [39:0] here!!!