A
Anshul Bansal
Guest
Hello All
I am trying to use the following specify block in my program.
reg nX1, nX0, X1, X0;
specify
specparam D1=10;
specparam D2=20;
(A0,A1,B0,B1,Xe,en *> nX1) = D1;
(A0,A1,B0,B1,Xe,en *> nX0) = D1;
(A0,A1,B0,B1,Xe,en *> X0) = D2;
(A0,A1,B0,B1,Xe,en *> X1) = D2;
endspecify
I am also using an "always" block further down in my program which uses
the values of nX1, nX0, X0 and X1.
When I try to compile this entire design in NC Verilog simulator then
it gives me an error that "Register Encountered in specify block".
So I figured out that I can't use registers in specify block. Moreover
when I compile the same design in Modelsim simulator, it
compiles properly without giving any error.
So I need to convert the reg to wire somehow before the specify block
and then convert wire back to reg after the specify block so that I can
use them in the always block. Can you give me directions and specific
commands (if any) to do this.
Please help.
Thanks
Anshul
I am trying to use the following specify block in my program.
reg nX1, nX0, X1, X0;
specify
specparam D1=10;
specparam D2=20;
(A0,A1,B0,B1,Xe,en *> nX1) = D1;
(A0,A1,B0,B1,Xe,en *> nX0) = D1;
(A0,A1,B0,B1,Xe,en *> X0) = D2;
(A0,A1,B0,B1,Xe,en *> X1) = D2;
endspecify
I am also using an "always" block further down in my program which uses
the values of nX1, nX0, X0 and X1.
When I try to compile this entire design in NC Verilog simulator then
it gives me an error that "Register Encountered in specify block".
So I figured out that I can't use registers in specify block. Moreover
when I compile the same design in Modelsim simulator, it
compiles properly without giving any error.
So I need to convert the reg to wire somehow before the specify block
and then convert wire back to reg after the specify block so that I can
use them in the always block. Can you give me directions and specific
commands (if any) to do this.
Please help.
Thanks
Anshul