bits_counter

Guest #5386181
Rate this post
• ▲ useful
▼ not useful
hello guys hope you are doing well.
so I want to ask you about a simple design to count the number of '1' in 
a serial bus. so when I simulate the counter alone it gives the result 
but when I call it in an other program the  output bits stay at 
"XXXXXXX" so could anyone help me please.
thank you.
Attached files:
Guest #5386199
Rate this post
• ▲ useful
▼ not useful
Sorry my english is not so good, you schaltest two 4017 in line and the 
beiden carry out pins werden OR verknüpft. But one from them must 
invertiert werden. Than you have eine Teilung durch 10.
Moderator (Company: Titel) #5386319
Rate this post
• ▲ useful
▼ not useful
meido wrote:
> so could anyone help me please
Check out how a test bench is set up in VHDL (the test bench entity has 
no ports!). The strategy is much different to what you do.

How did you generate the clock? By forcing signals? That's the wrong 
way, also...

BTW:  its nearly impossible to edit or cut out source code that's posted 
as a picture. Here are tools to post code as text, so it can be edited 
easily....
Guest #5386516
Rate this post
• ▲ useful
▼ not useful
thak ou for your relay
for the clock generation in the global project it is done using the plls 
but the code I posted is just to simplify the task.
also for the test I already did a test bench but I get the same result

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.