Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

bug!! port connection problem verilog modelsim

Status
Not open for further replies.

zxy499495828

Newbie level 2
Newbie level 2
Joined
Jul 4, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
14
It is a simple port connection, as seen in the first figure, there is no problem with the port B_mem. But if go to A_mem prot, a error occur, which is "VSIM-3096, imcompatiable with "........" unpack can not assign to pack".
Then I split it like shown in the figure. but when pass the value "H_mem_0" to "A_mem_0". the A_mem_0 becomes high impedance. but the value of "H_mem_0" does not have any problem.
 

Attachments

  • Capture.PNG
    Capture.PNG
    2.6 KB · Views: 113
  • Capture1.PNG
    Capture1.PNG
    6.4 KB · Views: 107
  • Capture2.PNG
    Capture2.PNG
    8.3 KB · Views: 120

The error message is giving you a hint. Somewhere in your code, which we can't see, you have tried to connect an unpacked array to a packed one, which you cannot directly do. For example:

If you have declared the output of one module to be:

Code:
output  logic    A_data[15:0];   //This is an unpacked array

And you have declared the input of the second module to be:

Code:
input logic     [15:0]  B_data;  // This is a packed array

Then at the top level you could not directly connect the two ports and the simulator would complain of a packed/unpacked connection issue such as you are seeing.

Double check your memory modules to ensure that this is not happening.

r.b.
 
  • Like
Reactions: zel

    zel

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top