whenyoureachme
Newbie level 3
Hi All,
I am very new to VERILOG programming as my first program i have wrote an andgate program in the gate level abstraction with inputs x, y and output z. Here is my first program
module andgate (z, x, y);
input x, y;
output z;
wire x, y;
reg z; ---------- // I end up with an Syntax Error if i use this statement.
and (z,x,y);
endmodule
Please help me in understanding the reason why we are unable to declare reg z; at this instance
Thanks in Advance:razz:
I am very new to VERILOG programming as my first program i have wrote an andgate program in the gate level abstraction with inputs x, y and output z. Here is my first program
module andgate (z, x, y);
input x, y;
output z;
wire x, y;
reg z; ---------- // I end up with an Syntax Error if i use this statement.
and (z,x,y);
endmodule
Please help me in understanding the reason why we are unable to declare reg z; at this instance
Thanks in Advance:razz: