James Bond
|
Hi, all,
I wrote the veriloga code for the comparator, but when I compiled this code, it reported: "@cross(<<--? V(insin) - V(intri),0)", Does anybody know where is the problem ?
My code is like this:
`include "constants.vams" `include "disciplines.vams"
module comparator3(cout, intri, insin);
output cout; input intri,insin; electrical cout,intri,insin; parameter real td = 1n,tr = 1n,tf = 1n; analog begin @cross(V(insin) - V(intri),0) V(cout) <+ transition((V(insin) > V(intri)) ? 1:0,td,tr,tf); end
endmodule
Please give me some instructions, thank you very much.
James
|