
Initial statement problem
Hellow brother,
First of all there is one small bug in your module. You forgot
endmodule.Let me know what you want to do? you want to synthesize it or
you want to simulate it.Let me tell you one thing initial is not
synthesizable but you can simulate it.
Dear, whenever you will write code, start thinking what
hardware it will make.If you will do this practice, you will never ask
this type of silly question.
Contact me regarding any type of verilog question.
Quote:
> Hi,
> I wonder if any of you had this problem with Verilog.
> The code below generates the sytax error at line with initial
> statement.
> I am copying the code from the textbook, and I am very confued!
> module clock(clock);
> output clock;
> reg clock;
> initial
> clock = 0;
> Any help will be greatly appreciated,
> Roald.
Sent via Deja.com http://www.deja.com/
Before you buy.