ramana
Newbie level 2
- Joined
- Aug 11, 2013
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Location
- Gollaprolu, India, India
- Activity points
- 6
i got error at "=" please help me
module sipo12(d,c,r,q);
input d,c,r;
output [2:0]q;
reg [2:0]q;
always @(negedge c);
begin
if(r)
q=3'b000;
else begin q[2]=d;
q[1]=q[2];
q[0]=q[1];end
end
module sipo12(d,c,r,q);
input d,c,r;
output [2:0]q;
reg [2:0]q;
always @(negedge c);
begin
if(r)
q=3'b000;
else begin q[2]=d;
q[1]=q[2];
q[0]=q[1];end
end