A
Ali Karaali
Guest
Hello everybody,
I'm very newbie at verilog and I know this is very classical issue for
newbies but I haven't got rid of confusing yet. Very simple design
below;
module delay(input clk, output enable);
reg[2:0] count;
always@(posedge clk)
count = count + 1;
assign enable = (count == 7);
endmodule
module myTopModule(input clk, output out);
wire tmp;
always@(posedge clk)
out <= tmp;
delay d_i(.clk(clk), .enable(tmp));
endmodule
What is the problem of that design or are there any? I tried to give
to output 7 cycles 0 and 1 cycle 1.
I'm very newbie at verilog and I know this is very classical issue for
newbies but I haven't got rid of confusing yet. Very simple design
below;
module delay(input clk, output enable);
reg[2:0] count;
always@(posedge clk)
count = count + 1;
assign enable = (count == 7);
endmodule
module myTopModule(input clk, output out);
wire tmp;
always@(posedge clk)
out <= tmp;
delay d_i(.clk(clk), .enable(tmp));
endmodule
What is the problem of that design or are there any? I tried to give
to output 7 cycles 0 and 1 cycle 1.