Altera_Forum
Honored Contributor
12 years agoError 10028, 10029 Verilog
I'm having a problem with Error 10028 and Error 10029 when i try and compile this in Quartus. I am using Quartus 2 Verilog HDL program language. I also receive this error but I'm hoping when what I'm doing wrong is fixed it will go away...
quartus 2 internal error Internal Error: Sub-system: VRFX, File: /quartus/synth/vrfx/vrfx_sgate.cpp, Line: 1785 oterm == clk Stack Trace: 0x190c: thr_thread_var_get + 0xc (ccl_thr) End-trace Quartus II Version 9.1 Build 350 03/24/2010 SJ Web Edition Service Pack Installed: 2 These are two separate always (AT) statements, There is more code telling what should happen when each of these states occur but I'll leave that out for now. I just don't quiet understand why I'm getting the errors I'm getting. The only coding background I have is a college level Java class as well as a little Verilog coding exercises. But here are the errors I am receiving when I put in the following code: errors Error (10028): Can't resolve multiple constant drivers for net "state.AA" at controller2.v(60) Error (10029): Constant driver at controller2.v(35) Error (10028): Can't resolve multiple constant drivers for net "state.AB" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AC" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AD" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AE" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AF" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AG" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AH" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AI" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.AJ" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.A" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.B" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.C" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.D" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.E" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.F" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.G" at controller2.v(60) Error (10028): Can't resolve multiple constant drivers for net "state.H" at controller2.v(60) Line 35 is the always (AT) (posedge enter) statement Line 60 is the always (AT) (posedge clk) statement code
/*
* Always (AT) statement that when the user presses enter, will change from 1 state to the next until it hits state "A",
* this continues on later. Cycle from states (AA to AJ) each time a certain pushbutton (enter) is pressed. Once all states have
* been cycled through, go to the start of the next set of states (A).
*
* input: enter, pushbutton using debouncer
* input: state, AA - AJ and A - N
*/
always (AT) (posedge enter) begin
case (state)
AA: state <= AB;
AB: state <= AC;
AC: state <= AD;
AD: state <= AE;
AE: state <= AF;
AF: state <= AG;
AG: state <= AH;
AH: state <= AI;
AI: state <= AJ;
AJ: state <= A;
endcase
end
/*
* Always (AT) statement that cycles between desired states (A - N) after initial states have passed (AA - AJ).
*
* input: clk, clock signal
*/
always (AT) (posedge clk) begin
case (state)
A: state <= B;
B: state <= C;
C: state <= D;
D: state <= E;
E: state <= F;
F: state <= G;
G: state <= H;
H: state <= I;
I: state <= J;
J: state <= K;
K: state <= L;
L: state <= M;
M: state <= N;
N: state <= A;
endcase
end
code description The way it works in my head is: It stays at state "AA" until I press enter, when I do it changes to the next state. Once it hits state "A" it uses a clock signal to begin the loop needed to change between stats. Any help with this would be appreciated. When I edit out each section the file compiles fine but when they are both there together I get this issue. PS: (AT) is actually the AT sign, but this forums syntax doesnt allow new people to post links and I guess it see's any AT sign as a link...