Farid Shamani
Newbie level 6
- Joined
- Jun 11, 2013
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 95
Hi guys,
I have a code which can be written briefly as:
----------------
P1: FOR i IN 0 TO 10 GENERATE
PROCESS (clk, reset)
BEGIN
IF clk'EVENT........
X(0,i) <= Y(2i) + Y(2i+1); ---- e.g, X(0,1) <= Y(0,2) + Y(0,3)
END IF;
END PROCESS;
END GENERATE;
--------------
P2: PROCESS (clk, reset)
VARIABLE j : INTEGER := 1;
VARIABLE i : INTEGER := 0;
BEGIN
IF clk'EVENT...........
X(j,i) <= X(j-1, 2i) + X(j-1, 2i+1); ---- e.g, X(1,1) <= X(0,2) + X(0,3)
...
...
...
-----------------------
Could someone help me why i get famous fatal error " signal x has multiple drivers..... " in ModelSim please??????
When i change i & j to any integer number, in process P2, there is no error at all. I mean if i write the code such "X(1,1) <= X(0,2) + X(0,3)", the error will not occur!!!
I have a code which can be written briefly as:
----------------
P1: FOR i IN 0 TO 10 GENERATE
PROCESS (clk, reset)
BEGIN
IF clk'EVENT........
X(0,i) <= Y(2i) + Y(2i+1); ---- e.g, X(0,1) <= Y(0,2) + Y(0,3)
END IF;
END PROCESS;
END GENERATE;
--------------
P2: PROCESS (clk, reset)
VARIABLE j : INTEGER := 1;
VARIABLE i : INTEGER := 0;
BEGIN
IF clk'EVENT...........
X(j,i) <= X(j-1, 2i) + X(j-1, 2i+1); ---- e.g, X(1,1) <= X(0,2) + X(0,3)
...
...
...
-----------------------
Could someone help me why i get famous fatal error " signal x has multiple drivers..... " in ModelSim please??????
When i change i & j to any integer number, in process P2, there is no error at all. I mean if i write the code such "X(1,1) <= X(0,2) + X(0,3)", the error will not occur!!!