Altera_Forum
Honored Contributor
13 years agoNewbie Parameter Q
Could someone tell me if I am misusing Quartus/SOPC Builder or if this is an actual compiler bug (I'm betting on# 1).......
I have 4 parameters in a Verilog file... parameter P1 = 0; parameter P2 = 1; parameter P3 = 2; parameter P4 = 3; When I edit in Component Builder, no errors If I insert the component into my SOPC design and compile, no errors If I compile in Quartus no errors. Am using these the parameters as states to a state machine. Kept getting to state P3 and staying there. After some exploration, it turns out that the Verilog file created when I added the module to SOPC defined them as: parameter P1 = 0; parameter P2 = 1; parameter P3 = 2; parameter P4 = 2; ???????? If I change the name P4 and the value, it will update the first time (e.g., parameter P5 = 8). However, further changes to P5 are not reflected into the instantiation V file. Any help is appreciated, ME