Does this mean you've tried it on a Spartan-3 board and it doesn't work? Or you can't get the tools to generate a bit file? Or synthesis doesn't work? What is the problem?This is the latest version of my encoder module.
Hi
1-This is my questions :
a)Does this code works on a board (Xilinx Spartan-3)?
b)If it doesn't, What do you think the problem is?
c)How can I solve the problem and make it work (Implement on a board)?
Well simulation only works as well as the code that is used to stimulate the design. Bad/wrong testbench will result in poor or non-existent functional coverage. You've never supplied the testbench, so can't asses how well your functional coverage verified the design.2- I simulate it and it worked (as expected!!!).
3- Attached file is going to say what the code should do.
Fine, but you never did address the comment I made in the reformatted code about the counter saturating and stopping...(is reset used as a load?)4- Others things (Readability, Modularity and so on) are not important right now.
Specially if the code works on a board.
5- This module (Encoder_3v2) is a component in another module (Encode).
And right now Encode is not the major part because I didn't finished Encoder_3v2.
But I would like to know your suggestions and tips about the design of the Top module (Encode)