Move files into docs directory.

This commit is contained in:
Wilson Snyder 2019-06-13 07:19:44 -04:00
parent e4a3f9b38c
commit b6c905dffc
15 changed files with 87 additions and 20 deletions

View File

@ -28,6 +28,8 @@
^Makefile$
bin/verilator_bin.*
bin/verilator_coverage_bin.*
docs/Makefile$
docs/doxygen-doc/.*
src/Makefile$
src/Makefile_obj$
include/verilated.mk$
@ -47,7 +49,6 @@ nodist/
/simv.daidir/
/vc_hdrs.h$
/csrc/
doxygen-doc/.*
obj_dir/.*
TAGS
.*~

View File

@ -114,9 +114,9 @@ INFOS = README README.html README.pdf internals.txt internals.html \
# Files that can be generated, but should be up to date for a distribution.
DISTDEP = info Makefile
DISTFILES_INC = $(INFOS) .gitignore Artistic COPYING COPYING.LESSER \
DISTFILES_INC = $(INFOS) .gitignore \
*.in *.ac \
Changes TODO \
Changes \
MANIFEST.SKIP \
bin/verilator \
bin/verilator_coverage \
@ -124,8 +124,16 @@ DISTFILES_INC = $(INFOS) .gitignore Artistic COPYING COPYING.LESSER \
bin/verilator_gantt \
bin/verilator_includer \
bin/verilator_profcfunc \
docs/.gitignore \
docs/Artistic \
docs/CONTRIBUTORS \
doxygen-mainpage doxygen.config verilator_logo.png \
docs/COPYING \
docs/COPYING.LESSER \
docs/Makefile.in \
docs/TODO \
docs/doxygen-mainpage \
docs/doxygen.config \
docs/verilator_logo.png \
install-sh configure *.pod \
include/*.[chv]* \
include/*.in \
@ -223,9 +231,11 @@ examples: all_nomsg
$(MAKE) -C $$p VERILATOR_ROOT=`pwd` || exit 10; \
done
.PHONY: docs
docs: info
info: $(INFOS)
# Use --no-split to avoid creating filenames > 14 chars.
%.1: ${srcdir}/bin/%
pod2man $< $@
@ -531,7 +541,7 @@ TAGS: $(TAGFILES)
.PHONY: doxygen
doxygen:
$(DOXYGEN) doxygen.config
$(MAKE) -C docs doxygen
######################################################################
# Test targets

View File

@ -187,25 +187,28 @@ Detailed documentation and the man page can be seen by running:
bin/verilator --help
or reading verilator.txt in the same directory as this README.
or reading verilator.pdf in the same directory as this README.
=head1 DIRECTORY STRUCTURE
The directories in the kit after de-taring are as follows:
bin/verilator => Compiler Wrapper invoked to Verilate code
include/ => Files that should be in your -I compiler path
include/verilated*.cpp => Global routines to link into your simulator
include/verilated*.h => Global headers
include/verilated.v => Stub defines for linting
include/verilated.mk => Common makefile
src/ => Translator source code
docs/ => Additional documentation
examples/hello_world_c => Example simple Verilog->C++ conversion
examples/hello_world_sc => Example simple Verilog->SystemC conversion
examples/tracing_c => Example Verilog->C++ with tracing
examples/tracing_sc => Example Verilog->SystemC with tracing
include/ => Files that should be in your -I compiler path
include/verilated*.cpp => Global routines to link into your simulator
include/verilated*.h => Global headers
include/verilated.mk => Common makefile
include/verilated.v => Stub defines for linting
src/ => Translator source code
test_regress => Internal tests
verilator.pdf => Primary documentation
verilator.txt => Primary documentation (text)
=head1 LIMITATIONS
See verilator.txt (or execute C<bin/verilator --help>) for limitations.
See verilator.pdf (or execute C<bin/verilator --help>) for limitations.

View File

@ -13,7 +13,7 @@ AC_INIT([Verilator],[4.015 devel],
# and commit using "devel release" or "Version bump" message
AC_CONFIG_HEADER(src/config_build.h)
AC_CONFIG_FILES(Makefile src/Makefile src/Makefile_obj include/verilated.mk include/verilated_config.h verilator.pc)
AC_CONFIG_FILES(Makefile docs/Makefile src/Makefile src/Makefile_obj include/verilated.mk include/verilated_config.h verilator.pc)
AC_MSG_RESULT([configuring for $PACKAGE_STRING])

1
docs/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Makefile

50
docs/Makefile.in Normal file
View File

@ -0,0 +1,50 @@
#*****************************************************************************
# DESCRIPTION: Verilator documentation: Makefile pre-configure version
#
# This file is part of Verilator.
#
# Code available from: http://www.veripool.org/verilator
#
#*****************************************************************************
#
# Copyright 2003-2019 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
#
# Verilator is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#****************************************************************************/
#
# This file is intended only to be called from the top-level Verilator Makefile.
#### Start of system configuration section. ####
DOXYGEN = doxygen
#### End of system configuration section. ####
######################################################################
.SUFFIXES:
default:
@echo "error: make not supported here, run 'make docs' from Verilator top-level"
clean mostlyclean distclean maintainer-clean::
rm -f $(SCRIPTS) *.tmp
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.idx
rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas
rm -f *.tex
distclean maintainer-clean::
rm -f *.info* *.1 $(INFOS)
rm -f Makefile
.PHONY: doxygen
doxygen:
$(DOXYGEN) doxygen.config

View File

View File

@ -45,7 +45,7 @@ PROJECT_BRIEF = "Verilog to C translator"
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
# Doxygen will copy the logo to the output directory.
PROJECT_LOGO = veripool-logo.png
PROJECT_LOGO = verilator_logo.png
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@ -26,7 +26,7 @@ my $header =
."\n"
."\\setlength{\\parindent}{0pt} \\setlength{\\parskip}{\\baselineskip}\n"
."\n"
."\\title{\\includegraphics[width=6cm]{verilator_logo.png}\\\\ ${Opt_DistTitle}}\n"
."\\title{\\includegraphics[width=6cm]{docs/verilator_logo.png}\\\\ ${Opt_DistTitle}}\n"
."\\date{${Opt_DistDate}}\n"
."\\author{http:\/\/www.veripool.org}\n"
."\\lhead[${Opt_DistTitle}]{${Opt_DistTitle}}\n"

View File

@ -11,13 +11,15 @@ scenarios(dist => 1);
my $root = "..";
my $Tabs_Exempt_Re = qr!(\.out$)|(/gtkwave)|(Makefile)|(\.mk$)!;
if (!-r "$root/.git") {
skip("Not in a git repository");
} else {
### Must trim output before and after our file list
my %warns;
my $prefix;
my $summary;
my $summary = "";
{
my $diff = `cd $root && git diff HEAD`;
#print "DS $diff\n" if $Debug;
@ -28,8 +30,7 @@ if (!-r "$root/.git") {
foreach my $line ((split /\n/, $diff), "+++ b/_the_end") {
if ($line =~ m!^\+\+\+ b/(.*)!) {
if ($file && !$atab && $btab
&& $file !~ m!\.out$!
&& $file !~ m!/gtkwave!) {
&& $file !~ $Tabs_Exempt_Re) {
$summary = "File modifications adds new tabs (please untabify the patch):";
$warns{$file} = "File modification adds new tabs (please untabify the patch): $file";
}
@ -64,6 +65,7 @@ if (!-r "$root/.git") {
if ($len >= 100
&& $file !~ /\.out$/) {
print" Wide $line\n" if $Self->{verbose};
$summary = "File modification adds a new >100 column line:" if !$summary;
$warns{$file} = "File modification adds a new >100 column line: $file:$lineno";
}
}