Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

error in my code

Altera_Forum
Honored Contributor II
2,212 Views

plz help me if anyone can this i have error in control port map line.........

0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
906 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
906 Views

 

--- Quote Start ---  

i have error in control port map line......... 

--- Quote End ---  

 

Is this a guessing game? Any reason why you didn't post the exact error message? 

 

Apparently you got confused with your port signals. It's a likely thing when using positional association in port maps.
0 Kudos
Altera_Forum
Honored Contributor II
906 Views

i will surely give you that amount if u work with me

0 Kudos
Altera_Forum
Honored Contributor II
906 Views

actully i m new in this website so not easy to understand this site for me .......you can copy the whole program and can paste in modelsim simulater.....my dear sir

0 Kudos
Altera_Forum
Honored Contributor II
906 Views

Hi, I advise you to make 1 file per 1 entity. This is more maintainable like this. And you will debug easier. 

 

Please Copy and paste your entire error message. Which entiy, which line. 

 

thanks for your proposition but you won't work ;-).  

 

As fvm said (http://www.alteraforum.com/forum/showthread.php?t=40296&p=166311#post166311) Avoid using positional port mapping, use named port mapping
0 Kudos
Altera_Forum
Honored Contributor II
906 Views

the error msg i paste here plz read it........i already make all files expect control unit and these all files are working in altera de2-115 kit..... sir if u have quartus II software then you can see rtl view of code by removing the error line only.......thanks for reply 

 

 

 

 

[# Reading C:/altera/11.1/modelsim_ase/tcl/vsim/pref.tcl  

#  

vcom -reportprogress 300 -work work C:/Users/vijay/Desktop/work/shankar.vhd 

# Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011 

# -- Loading package STANDARD 

# -- Loading package TEXTIO 

# -- Loading package std_logic_1164 

# -- Loading package std_logic_arith 

# -- Compiling package cpu_lib 

# -- Loading package cpu_lib 

# -- Compiling entity cpu 

# -- Compiling architecture rtl of cpu 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(112): Signal "shiftsel" is type work.cpu_lib.t_shift; expecting type ieee.std_logic_1164.STD_LOGIC. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(112): Signal "alusel" is type work.cpu_lib.t_alu; expecting type ieee.std_logic_1164.STD_LOGIC. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(113): Signal "regsel" is type work.cpu_lib.t_reg; expecting type ieee.std_logic_1164.STD_LOGIC. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(113): Signal "regRd" is type ieee.std_logic_1164.STD_LOGIC; expecting type work.cpu_lib.t_shift. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(113): Signal "regWr" is type ieee.std_logic_1164.STD_LOGIC; expecting type work.cpu_lib.t_alu. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(113): Signal "instrWr" is type ieee.std_logic_1164.STD_LOGIC; expecting type work.cpu_lib.t_reg. 

# ** Error: C:/Users/vijay/Desktop/work/shankar.vhd(117): VHDL Compiler exiting]
0 Kudos
Altera_Forum
Honored Contributor II
906 Views

In your entity cpu architecture rtl, at line "con: control..." do named port mapping (already said) 

There is a mismatch in positions of ports of your "control" component.
0 Kudos
Altera_Forum
Honored Contributor II
906 Views

ok sir got it.....i will try this and thanks a lot again.....

0 Kudos
Altera_Forum
Honored Contributor II
906 Views

thankyou mmTsuchi sir now my code is running properly thanks a lot...

0 Kudos
Reply