jbr has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I got a netlist with logic gates as my modules. Example AND2D4, OR3D0, XOR2D1 etc. These cells definitions are put together in a a file called technology.v so my netlist.v does not have module definition of these gate module. When I read netlist with vhier I get Module refernce not found: AND2D4, OR3D0, XOR2D1 etc.. I am using $vhier -y netlist --modules netlist.v netlist is my directory and it has technology.v which has modules AND2D4, OR3D0, XOR2D1.

Replies are listed 'Best First'.
Re: vhier and netlist with library
by GrandFather (Saint) on Apr 09, 2009 at 05:19 UTC
Re: vhier and netlist with library
by toolic (Bishop) on Apr 09, 2009 at 13:49 UTC
    You must add the library file onto the vhier command line, for example:
    $ cat top.v module top; reg buf_in; wire buf_out; wire a; inv1x i0 (.in(buf_in), .out(a )); inv2x i1 (.in(a ), .out(buf_out)); endmodule $ cat technology.v module inv1x (in, out); input in; output out; assign out = ~in; endmodule module inv2x (in, out); input in; output out; assign out = ~in; endmodule $ $ vhier top.v technology.v --modules inv1x inv2x top $