K
khushalgelda
Guest
// this is a code to learn how to take input from ps2 keyboard..
module ps2(clock,x,y);
input x;
input clock;
output reg [7:0] y;
integer i;
always @(negedge clock)
begin
if (~x)
begin
i=0;
repeat (10)
begin
@(negedge clock) y = x;
i=i+1;
end
end
end
endmodule
error that is ocurring is : "Unsupported Event Control Statement. "..
plz reply wats the problem in my code
module ps2(clock,x,y);
input x;
input clock;
output reg [7:0] y;
integer i;
always @(negedge clock)
begin
if (~x)
begin
i=0;
repeat (10)
begin
@(negedge clock) y = x;
i=i+1;
end
end
end
endmodule
error that is ocurring is : "Unsupported Event Control Statement. "..
plz reply wats the problem in my code