Forum Discussion
Altera_Forum
Honored Contributor
14 years agoobject assigned a value but never read - does this effect synthesis?
Hello, I have the following small module which is intended to store the value 0xFF in a register when a button is pressed.
module connector_test(button, txd);
input button;
output reg t...
Altera_Forum
Honored Contributor
14 years agoPerhaps you're correct - could you elaborate a little more?
I understand that declaring something as reg doesn't mean that it will be synthesized as an actual sequential element. The synthesizer could very well turn it into combinational logic - but how do you know that its being interpreted as a group of combinational cells? Since it hasn't made it into the final circuit - I'm not sure how to know what the synthesizer has interpreted it as. Secondly, you said that you used real registers - what exactly was this implementation? A look at the experimental code you used would be helpful for this. Thanks again. -k