I posted a message some time ago but I don't think it made it through. I have s couple of questions.
1: Are directives like timescale not allowed?
2: I cannot seem to declare primitives in a module without an identifier. ie
module my_mod(z,x,y); output z1,z2; input x,y; wire zw;
nand (z1,x,y); nand (z2,zw,x); endmodule
I know it is silly but I am forced to do this:
nand somename1 (z1,x,y); nand somename2 (z2,zw,x);
Also, if I wish to implement a delay I have to do it like this:
nand #(1,0) somename (z,x,y);
instead of just:
nand #1 somename (z,x,y);
THanks! -Al
Log in to post a comment.
I posted a message some time ago but I don't think it made it through. I have s couple of questions.
1: Are directives like timescale not allowed?
2: I cannot seem to declare primitives in a module without an identifier. ie
module my_mod(z,x,y);
output z1,z2;
input x,y;
wire zw;
nand (z1,x,y);
nand (z2,zw,x);
endmodule
I know it is silly but I am forced to do this:
nand somename1 (z1,x,y);
nand somename2 (z2,zw,x);
Also, if I wish to implement a delay I have to do it like this:
nand #(1,0) somename (z,x,y);
instead of just:
nand #1 somename (z,x,y);
THanks!
-Al