vaf20
Full Member level 3
hi
this is my Basic Question
suppose we have 3 signal's named A,B as input's and C as output.
C should be high by positive edge of B and should be low by negative edge of A.the simplest code is following :
//
always @(posedge B) C <= 1'b1;
always @(negedge A) C <= 1'b0;
//
or other way
//
always @(B)
begin
if(B) C <= 1;
end
always @(A)
begin
if(!A) C <= 0;
end
what's my wrong since it does not implemented in a CPLD and have a synthesis error :
ERROR:Xst:528 - Multi-source in Unit <.> on signal <C>
Sources are:
Signal <C> in Unit <.> is assigned to VCC
tnx
this is my Basic Question
suppose we have 3 signal's named A,B as input's and C as output.
C should be high by positive edge of B and should be low by negative edge of A.the simplest code is following :
//
always @(posedge B) C <= 1'b1;
always @(negedge A) C <= 1'b0;
//
or other way
//
always @(B)
begin
if(B) C <= 1;
end
always @(A)
begin
if(!A) C <= 0;
end
what's my wrong since it does not implemented in a CPLD and have a synthesis error :
ERROR:Xst:528 - Multi-source in Unit <.> on signal <C>
Sources are:
Signal <C> in Unit <.> is assigned to VCC
tnx