O
Olivier lemaire
Guest
Hi there,
I try to synthesize this code and that does not work. I don't understand...
module pulse_to_period(clk, in, out);
input clk, in;
output out;
wire in, clk;
reg out;
integer i;
always @(posedge in)
begin
out = 1'b1;
for (i = 0; i < 10 ; i = i + 1)
begin
@(negedge clk);
end
out = 1'b0;
end
endmodule
Anyone can help me, please.
Olivier
I try to synthesize this code and that does not work. I don't understand...
module pulse_to_period(clk, in, out);
input clk, in;
output out;
wire in, clk;
reg out;
integer i;
always @(posedge in)
begin
out = 1'b1;
for (i = 0; i < 10 ; i = i + 1)
begin
@(negedge clk);
end
out = 1'b0;
end
endmodule
Anyone can help me, please.
Olivier