High signal for two clock cicles

OP #6070930
Rate this post
• ▲ useful
▼ not useful
Good morning, I'm tring to write a code able to raise up the output 
signal (called Input_err_ASCII) to '1' logic level. I tried using a 
Counter, but it doesn't work very well.

Follow a part of my code :

My_clk_counter : Counter
    generic map (Nbit => Nbit)
    port map (
      input => "00000001",
      clk => clk,
      resetn => Counter_ON,
      output => cicli_clk
       );

Counter_ON <= '1' when (unsigned(Msg_in)<97 or unsigned(cicli_clk)>2);
Input_err_ASCII <= '1' when (unsigned(Msg_in)<97 and 
unsigned(cicli_clk)<2) else '0';

Counter_on : is a signal able to activate the Counter
Cicli_clk : is the counter's output

I need your help, please.
Guest #6072837
Rate this post
• ▲ useful
▼ not useful
Francesco T. wrote:
> but it doesn't work very well.

Well, this is a little bit unspecific, isn't it?
What did you expect from your design, and how does it behave instead? 
Did you do any simulation, and what is the result? Did you check if the 
counter works correctly?
With the information you provided it is impossible to help you. This may 
be the reason why nobody is answering your question.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.