EmbDev.net

Forum: FPGA, VHDL & Verilog bits_counter


von meido (Guest)


Attached files:

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.

von Jürgen von der Müllkippe (Guest)


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.

von meido (Guest)


Rate this post
useful
not useful
thank you for your replay
but I didn't understand what you want to say.(it is not a problem if you 
answer using another language)
regards

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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

: Edited by Moderator
von meido (Guest)


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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.