Altera_Forum
Honored Contributor
8 years agoproblem with type matching
Hey guys!
I'm having a problem with component instantiation. I keep on getting the an error in modelsim that my types dont match up: # ** Failure: (vsim-3807) Types do not match between component and entity for port "addr_1".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 45# ** Failure: (vsim-3807) Types do not match between component and entity for port "addr_2".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 46# ** Failure: (vsim-3807) Types do not match between component and entity for port "xcol_write".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 52# ** Failure: (vsim-3807) Types do not match between component and entity for port "xrow_write".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 53# ** Failure: (vsim-3807) Types do not match between component and entity for port "xcol_read".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 54# ** Failure: (vsim-3807) Types do not match between component and entity for port "xrow_read".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 55# ** Failure: (vsim-3807) Types do not match between component and entity for port "xstate".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 58# ** Failure: (vsim-3807) Types do not match between component and entity for port "xtemp1".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 59# ** Failure: (vsim-3807) Types do not match between component and entity for port "xtemp2".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 60# ** Failure: (vsim-3807) Types do not match between component and entity for port "xtemp3".# Time: 0 ps Iteration: 0 Instance: /wvt_tb/UUT2 File: wvt.vho Line: 61 I've checked like a thousand times and it is absolutely the same type between entity and component. I've also checked my libraries for multiple definitions, here are the libraries I use: library std; use std.textio.all; library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_textio.all; use IEEE.NUMERIC_STD.ALL; I've noticed that all the errors are generated by integer types from the top entity (std_logics in the top entity and integer types in submodules dont generate the error). I know that the integers are converted to slv in the wvt.vho file to represent them physically but i've got no idea on how to deal with this. Here are the entity and component of the module in question: