Forum Discussion
9 Replies
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
--- 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. - Altera_Forum
Honored Contributor
i will surely give you that amount if u work with me
- Altera_Forum
Honored Contributor
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
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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] - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
ok sir got it.....i will try this and thanks a lot again.....
- Altera_Forum
Honored Contributor
thankyou mmTsuchi sir now my code is running properly thanks a lot...