http://www.perlmonks.org?node_id=748683


in reply to Re^2: verilog-perl vhier usage
in thread verilog-perl vhier usage

Since I do not have your Verilog files, I can not reproduce your problem.

However, when I add the strictures to your code (use warnings; use strict;), I get a warning message:

Bareword "hier" not allowed while "strict subs" is in use at ...

Although I doubt this is your problem, try fixing your code like this by adding the single quotes:

show_hier($cell->submod, $indent." ", 'hier', $cell->name) if $cell->s +ubmod;

Is there anything special about the "mymux" module? Is it wrapped inside `celldefine compiler directives, for example?

Since I have never used Verilog::Netlist, I can not offer you more specific information about its usage. You might try browsing (or asking a question on) the CPAN Verilog Discussion forum: http://www.cpanforum.com/dist/Verilog-Perl. It's too bad the module author is not a PerlMonk :)

Replies are listed 'Best First'.
Re^4: verilog-perl vhier usage
by perlvoyager (Initiate) on Mar 06, 2009 at 05:36 UTC
    the defines file and the timescale file
    i2c_master_defines.v // bitcontroller states `define I2C_CMD_NOP 4'b0000 `define I2C_CMD_START 4'b0001 `define I2C_CMD_STOP 4'b0010 `define I2C_CMD_WRITE 4'b0100 `define I2C_CMD_READ 4'b1000
    timescale.v `timescale 1ns / 10ps