11-20-2020 10:21 PM
Please help me understand and solve this error.
11-21-2020 01:15 AM - edited 11-21-2020 01:16 AM
Hi @theuser1303,
The problem is that you should not make circuits in port map if you use in this type. So, you should not write "not DspReset". You should declare a signal and you should assign "not DspReset" to it and then put it in your port map. I wrote two example about how to do port mapping properly.
1)In this way, you will not get any error but you will continue taking warnings which you do not have be worried about them:
signal DspReset_signal : std_logic;
DspReset_signal <= not DspReset;
dispCnter : counterSrc generic map(20) port map(clock, '1', DspReset_signal , segDisp);
2) I suggest you to use this way because if you use it, you will not get any errors or warnings:
signal DspReset_signal : std_logic;
DspReset_signal <= not DspReset;
dispCnter : counterSrc generic map(20) port map(
clock => clock,
enable_ct => '1',
reset_ct => DspReset_signal ,
output_ct => segDisp);
I hope I could help you in the right way.
Good luck.
------------------------------------------------------------
Consider giving "Kudos" if you like my answer. Please mark my post "Accept as solution" if my answer has solved your problem
11-21-2020 01:24 AM - edited 11-21-2020 01:26 AM
Hi @theuser1303,
You should not use combinatorial circuits in your port map. So I wrote you two ways to do port mapping in the right way:
1) In this way, you will not get any errors and you will continue taking warnings which are not so important.
signal DspReset_notSignal :std_logic;
DspReset_notSignal <= not DspReset;
dispCnter : counterSrc generic map (20) port map (clock, '1', DspReset_notSignal , segDisp);
2) In this way, you will not take any errors or warnings:
signal DspReset_notSignal :std_logic;
DspReset_notSignal <= not DspReset;
dispCnter : counterSrc generic map (z => 20) port map (
clock => clock,
enable_ct => '1',
reset_ct => DspReset_notSignal ,
output_ct => segDisp);
I hope this can help you. Good luck.
Yunus,
**~ Don't forget to reply, give kudos, and accept as solution.~**
11-21-2020 07:10 AM
Thanks for your help. I am not getting that error anymore. But when I try simulating the program, it is giving me this error.