FYI: v2html

P

pallav

Guest
I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here: http://www.burbleland.com/v2html/v2html.html

Apparently its free.
 
On Sep 29, 12:21 am, pallav <pallavgu...@gmail.com> wrote:
I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here:http://www.burbleland.com/v2html/v2html.html

Apparently its free.
I gave it a shot. Only got as far as:

Missing $ on loop variable at ..\v2html line 137

I'm no perl expert so I have no clue what the complaint is about.

The line in question is:

foreach my $problem (&rvp::get_problems($verilog_db)) {
if ( $problem !~ m/\n/ ) {
$problem =~ s/(.{60,79}) /$1\n /g;
}
print "$problem.\n";

I searched for "my" and found a function definition, but I can't
figure out the syntax of line 137. Any ideas?

regards,
Gabor
 
On Sep 29, 9:20 am, gabor <ga...@alacron.com> wrote:
On Sep 29, 12:21 am, pallav <pallavgu...@gmail.com> wrote:

I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here:http://www.burbleland.com/v2html/v2html.html

Apparently its free.

I gave it a shot.  Only got as far as:

Missing $ on loop variable at ..\v2html line 137

I'm no perl expert so I have no clue what the complaint is about.

The line in question is:

foreach my $problem (&rvp::get_problems($verilog_db)) {
    if ( $problem !~ m/\n/ ) {
                        $problem =~ s/(.{60,79}) /$1\n    /g;
    }
    print "$problem.\n";

I searched for "my" and found a function definition, but I can't
figure out the syntax of line 137.  Any ideas?

regards,
Gabor
OK, it looks like my PERL is too old. After replacing every instance
of "foreach my" with "foreach" I got it to run up to:

Error: this script can only run with Perl version 5.004 or greater

I'll look for a newer perl...

regards,
Gabor
 
On Sep 29, 9:27 am, gabor <ga...@alacron.com> wrote:
On Sep 29, 9:20 am, gabor <ga...@alacron.com> wrote:



On Sep 29, 12:21 am, pallav <pallavgu...@gmail.com> wrote:

I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here:http://www.burbleland.com/v2html/v2html.html

Apparently its free.

I gave it a shot.  Only got as far as:

Missing $ on loop variable at ..\v2html line 137

I'm no perl expert so I have no clue what the complaint is about.

The line in question is:

foreach my $problem (&rvp::get_problems($verilog_db)) {
    if ( $problem !~ m/\n/ ) {
                        $problem =~ s/(.{60,79}) /$1\n    /g;
    }
    print "$problem.\n";

I searched for "my" and found a function definition, but I can't
figure out the syntax of line 137.  Any ideas?

regards,
Gabor

OK, it looks like my PERL is too old.  After replacing every instance
of "foreach my" with "foreach" I got it to run up to:

Error: this script can only run with Perl version 5.004 or greater

I'll look for a newer perl...

regards,
Gabor
Hi Gabor,

I'm using perl v5.8.9 on Mac OS X Leopard and I had no problems
running the script the first time around.
Here is my simple doc-gen script:

rm -rf html
mkdir -p html
cd html
v2html -F -ni -h index.html -hc "mips32" -o . -m me@nowhere.com +incdir
+../../src ../../src/top.v

All the verilog files sit in src/ and top.v is the top-level module
from where to start from.
Here is the output of a sample run: http://www.pastey.net/125866

Kind regards.
 
On Sep 29, 12:58 pm, pallav <pallavgu...@gmail.com> wrote:
On Sep 29, 9:27 am, gabor <ga...@alacron.com> wrote:



On Sep 29, 9:20 am, gabor <ga...@alacron.com> wrote:

On Sep 29, 12:21 am, pallav <pallavgu...@gmail.com> wrote:

I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here:http://www.burbleland.com/v2html/v2html.html

Apparently its free.

I gave it a shot.  Only got as far as:

Missing $ on loop variable at ..\v2html line 137

I'm no perl expert so I have no clue what the complaint is about.

The line in question is:

foreach my $problem (&rvp::get_problems($verilog_db)) {
    if ( $problem !~ m/\n/ ) {
                        $problem =~ s/(.{60,79}) /$1\n    /g;
    }
    print "$problem.\n";

I searched for "my" and found a function definition, but I can't
figure out the syntax of line 137.  Any ideas?

regards,
Gabor

OK, it looks like my PERL is too old.  After replacing every instance
of "foreach my" with "foreach" I got it to run up to:

Error: this script can only run with Perl version 5.004 or greater

I'll look for a newer perl...

regards,
Gabor

Hi Gabor,

I'm using perl v5.8.9 on Mac OS X Leopard and I had no problems
running the script the first time around.
Here is my simple doc-gen script:

rm -rf html
mkdir -p html
cd html
v2html -F -ni -h index.html -hc "mips32" -o . -m m...@nowhere.com +incdir
+../../src ../../src/top.v

All the verilog files sit in src/ and top.v is the top-level module
from where to start from.
Here is the output of a sample run:http://www.pastey.net/125866

Kind regards.
Thanks a lot. I downloaded Perl 5.10 from "Strawberry" and managed to
run the script on a subset of a project. It's pretty impressive. It
even seems to understand that it doesn't have source for some modules
like the library primitives. Right now I'm working with a mixed-
language
project, but when I'm back on my usual Verilog-only stuff I'm going
to use this for documentation.

Regards,
Gabor
 
On Sep 29, 3:04 pm, gabor <ga...@alacron.com> wrote:
On Sep 29, 12:58 pm, pallav <pallavgu...@gmail.com> wrote:



On Sep 29, 9:27 am, gabor <ga...@alacron.com> wrote:

On Sep 29, 9:20 am, gabor <ga...@alacron.com> wrote:

On Sep 29, 12:21 am, pallav <pallavgu...@gmail.com> wrote:

I was browsing the source code of the OpenSparc architecture when I
came across this very neat script v2html that will take verilog code
and generate html pages for code browsing/hierarchy viewing. It looks
very cool. I thought I'd post this as it may be helpful if you are not
already familiar with it

It can be found here:http://www.burbleland.com/v2html/v2html.html

Apparently its free.

I gave it a shot.  Only got as far as:

Missing $ on loop variable at ..\v2html line 137

I'm no perl expert so I have no clue what the complaint is about.

The line in question is:

foreach my $problem (&rvp::get_problems($verilog_db)) {
    if ( $problem !~ m/\n/ ) {
                        $problem =~ s/(.{60,79}) /$1\n    /g;
    }
    print "$problem.\n";

I searched for "my" and found a function definition, but I can't
figure out the syntax of line 137.  Any ideas?

regards,
Gabor

OK, it looks like my PERL is too old.  After replacing every instance
of "foreach my" with "foreach" I got it to run up to:

Error: this script can only run with Perl version 5.004 or greater

I'll look for a newer perl...

regards,
Gabor

Hi Gabor,

I'm using perl v5.8.9 on Mac OS X Leopard and I had no problems
running the script the first time around.
Here is my simple doc-gen script:

rm -rf html
mkdir -p html
cd html
v2html -F -ni -h index.html -hc "mips32" -o . -m m...@nowhere.com +incdir
+../../src ../../src/top.v

All the verilog files sit in src/ and top.v is the top-level module
from where to start from.
Here is the output of a sample run:http://www.pastey.net/125866

Kind regards.

Thanks a lot.  I downloaded Perl 5.10 from "Strawberry" and managed to
run the script on a subset of a project.  It's pretty impressive.  It
even seems to understand that it doesn't have source for some modules
like the library primitives.  Right now I'm working with a mixed-
language
project, but when I'm back on my usual Verilog-only stuff I'm going
to use this for documentation.

Regards,
Gabor
I've been using the parser module (rvp.pm) from this project for
several years.
I've written several scripts to look for missing modules, etc.

It's not perfect, but it's been a great tool to use.

John Providenza
 

Welcome to EDABoard.com

Sponsor

Back
Top