cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Newbie
Newbie
552 Views
Registered: ‎11-20-2020

Error

Please help me understand and solve this error.

Screenshot (6).png
0 Kudos
Reply
3 Replies
Contributor
Contributor
348 Views
Registered: ‎11-25-2019

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

0 Kudos
Reply
Contributor
Contributor
518 Views
Registered: ‎11-25-2019

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.~**

 

Newbie
Newbie
473 Views
Registered: ‎11-20-2020

Thanks for your help. I am not getting that error anymore. But when I try simulating the program, it is giving me this error.

  • [VRFC 10-3353] formal port 'DspReset' has no actual or default value ["sevenSegSrc.vhd":10]
0 Kudos
Reply