iverilog/tgt-vvp
Stephen Williams 5c69e243ac Put modpaths in correct scope.
Modpaths need to be in the proper scope in order to be available to
vpi functions. The code generator manages that by writing the modpath
records with scope switch functions. Batch the modpath records at the
end of the structural stuff so that the scope switching doesn't cause
trouble.

Also seperate the modpath code into its own source file.

Signed-off-by: Stephen Williams <steve@icarus.com>
2007-10-31 21:45:34 -07:00
..
.cvsignore vvp.conf files are generated. 2005-03-18 02:57:23 +00:00
Makefile.in Put modpaths in correct scope. 2007-10-31 21:45:34 -07:00
README.txt tgt-vvp generates code that skips nets as inputs. 2001-08-10 00:40:45 +00:00
configure.in Better configuration messages (Alan Feldstein) 2007-05-16 23:59:12 +00:00
draw_mux.c Major rework of array handling. Memories are replaced with the 2007-01-16 05:44:14 +00:00
draw_ufunc.c Fix code generation for real expressions 2007-06-29 21:10:37 -07:00
draw_vpi.c Treat BOOL and LOGIC the same according to VPI functions. 2007-02-14 05:59:24 +00:00
eval_bool.c Include stdint.h if it is present. 2005-12-07 03:43:30 +00:00
eval_expr.c Optomize runtime using immediate compare 2007-10-03 20:58:40 -07:00
eval_real.c Fix number to real mask generation 2007-10-19 17:10:34 -07:00
modpath.c Put modpaths in correct scope. 2007-10-31 21:45:34 -07:00
vector.c Fix that save expression lookaside always clears cached variable values. 2007-04-01 05:26:17 +00:00
vvp-s.conf.in Generate VVP_EXECUTABLE flag in conf files. 2003-12-07 19:28:43 +00:00
vvp.c Put modpaths in correct scope. 2007-10-31 21:45:34 -07:00
vvp.conf.in Generate VVP_EXECUTABLE flag in conf files. 2003-12-07 19:28:43 +00:00
vvp_config.h.in Include stdint.h if it is present. 2005-12-07 03:43:30 +00:00
vvp_priv.h Put modpaths in correct scope. 2007-10-31 21:45:34 -07:00
vvp_process.c Do not assign to words constant-indexed out of range. 2007-02-27 05:13:34 +00:00
vvp_scope.c Put modpaths in correct scope. 2007-10-31 21:45:34 -07:00

README.txt

THE VVP TARGET

SYMBOL NAME CONVENTIONS

There are some naming conventions that the vp target uses for
generating symbol names.

* wires and regs

Nets and variables are named V_<full-name> where <full-name> is the
full hierarchical name of the signal.

* Logic devices

Logic devices (and, or, buf, bufz, etc.) are named L_<full_name>. In
this case the symbol is attached to a functor that is the output of
the logic device.


GENERAL FUNCTOR WEB STRUCTURE

The net of gates, signals and resolvers is formed from the input
design. The basic structure is wrapped around the nexus, which is
represented by the ivl_nexus_t.

Each nexus represents a resolved value. The input of the nexus is fed
by a single driver. If the nexus in the design has multiple drivers,
the drivers are first fed into a resolver (or a tree of resolvers) to
form a single output that is the nexus.

The nexus, then, feeds its output to the inputs of other gates, or to
the .net objects in the design.