Spelling fixes
Mostly comments, but includes quite a few user-visible error, debug, and help messages.
This commit is contained in:
parent
659714f45d
commit
eed4ff7e2d
2
Module.h
2
Module.h
|
|
@ -102,7 +102,7 @@ class Module : public PScope, public LineInfo {
|
|||
bool signed_flag;
|
||||
// Value expression
|
||||
PExpr*expr;
|
||||
// If there are range constrants, list them here
|
||||
// If there are range constraints, list them here
|
||||
range_t*range;
|
||||
};
|
||||
map<perm_string,param_expr_t>parameters;
|
||||
|
|
|
|||
|
|
@ -506,7 +506,7 @@ int process_generation(const char*name)
|
|||
" 2005 -- IEEE1364-2005\n"
|
||||
"Other generation flags:\n"
|
||||
" specify | no-specify\n"
|
||||
" verilog-ams | no-verinlog-ams\n"
|
||||
" verilog-ams | no-verilog-ams\n"
|
||||
" std-include | no-std-include\n"
|
||||
" xtypes | no-xtypes\n"
|
||||
" icarus-misc | no-icarus-misc\n"
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ void PGBuiltin::elaborate(Design*des, NetScope*scope) const
|
|||
high = msb.as_long();
|
||||
|
||||
if (debug_elaborate) {
|
||||
cerr << get_fileline() << ": debug: PGBuiltin: Make arrray "
|
||||
cerr << get_fileline() << ": debug: PGBuiltin: Make array "
|
||||
<< "[" << high << ":" << low << "]"
|
||||
<< " of " << count << " gates for " << name << endl;
|
||||
}
|
||||
|
|
@ -1189,8 +1189,8 @@ void PGModule::elaborate_mod_(Design*des, Module*rmod, NetScope*scope) const
|
|||
identifier elaborates to the same NetNet in
|
||||
both cases so the extra elaboration has no
|
||||
effect. But if the expression passed to the
|
||||
inout port is a part select, aspecial part
|
||||
select must be created that can paqss data in
|
||||
inout port is a part select, a special part
|
||||
select must be created that can pass data in
|
||||
both directions.
|
||||
|
||||
Use the elaborate_bi_net method to handle all
|
||||
|
|
@ -3055,7 +3055,7 @@ NetProc* PForStatement::elaborate(Design*des, NetScope*scope) const
|
|||
sig = des->find_signal(scope, id2->path());
|
||||
if (sig == 0) {
|
||||
cerr << get_fileline() << ": error: Unable to find variable "
|
||||
<< id2->path() << " in for-loop increment expressin." << endl;
|
||||
<< id2->path() << " in for-loop increment expression." << endl;
|
||||
des->errors += 1;
|
||||
return body;
|
||||
}
|
||||
|
|
|
|||
2
emit.cc
2
emit.cc
|
|
@ -362,7 +362,7 @@ void NetScope::emit_scope(struct target_t*tgt) const
|
|||
/* Run the signals again, but this time to connect the
|
||||
delay paths. This is done as a second pass because
|
||||
the paths reference other signals that may be later
|
||||
in the list. We can do it here becase delay paths are
|
||||
in the list. We can do it here because delay paths are
|
||||
always connected within the scope. */
|
||||
cur = signals_->sig_next_;
|
||||
do {
|
||||
|
|
|
|||
|
|
@ -459,7 +459,7 @@ NetNet* NetEBDiv::synthesize(Design*des)
|
|||
|
||||
default: {
|
||||
cerr << get_fileline() << ": internal error: "
|
||||
<< "NetEBDiv has unexpeced op() code: "
|
||||
<< "NetEBDiv has unexpected op() code: "
|
||||
<< op() << endl;
|
||||
des->errors += 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -941,7 +941,7 @@ static void do_define()
|
|||
}
|
||||
|
||||
/* Detect the continuation sequence. If I find it, remove it
|
||||
* and the white space that preceeds it, then replace all that
|
||||
* and the white space that precedes it, then replace all that
|
||||
* with a single newline.
|
||||
*/
|
||||
if ((cp > yytext) && (cp[-1] == '\\'))
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ static verinum*make_unsized_dec(const char*ptr)
|
|||
if (ptr[0] == '\'') {
|
||||
/* The number has decorations of the form 'sd<digits>,
|
||||
possibly with space between the d and the <digits>.
|
||||
Also, the 's' is optional, and markes the number as
|
||||
Also, the 's' is optional, and marks the number as
|
||||
signed. */
|
||||
ptr += 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ bool NetScope::replace_parameter(perm_string key, NetExpr*expr)
|
|||
|
||||
/*
|
||||
* This is not really complete (msb, lsb, sign). It is currently only
|
||||
* used to add a genver to the local parameter list.
|
||||
* used to add a genvar to the local parameter list.
|
||||
*/
|
||||
NetExpr* NetScope::set_localparam(perm_string key, NetExpr*expr,
|
||||
const LineInfo&file_line)
|
||||
|
|
@ -275,7 +275,7 @@ const NetFuncDef* NetScope::func_def() const
|
|||
void NetScope::set_module_name(perm_string n)
|
||||
{
|
||||
assert(type_ == MODULE);
|
||||
module_name_ = n; /* NOTE: n mus have been permallocated. */
|
||||
module_name_ = n; /* NOTE: n must have been permallocated. */
|
||||
}
|
||||
|
||||
perm_string NetScope::module_name() const
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ void join_island(NetObj*obj)
|
|||
if (branch->island == 0) {
|
||||
if (debug_elaborate)
|
||||
cerr << obj->get_fileline() << ": debug: "
|
||||
<< "Join brach to existing island." << endl;
|
||||
<< "Join branch to existing island." << endl;
|
||||
branch->island = tmp_branch->island;
|
||||
|
||||
} else if (branch->island != tmp_branch->island) {
|
||||
|
|
@ -139,7 +139,7 @@ void join_island(NetObj*obj)
|
|||
}
|
||||
}
|
||||
|
||||
// If after all that we did not find an idland to join, then
|
||||
// If after all that we did not find an island to join, then
|
||||
// start the island not and join it.
|
||||
if (branch->island == 0) {
|
||||
branch->island = new ivl_island_s;
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ class NetScope : public Attrib {
|
|||
|
||||
/*
|
||||
* This class implements the LPM_ABS component. The node has a single
|
||||
* input, a signe expression, that it converts to the absolute
|
||||
* input, a signed expression, that it converts to the absolute
|
||||
* value. The gate is simple: pin(0) is the output and pin(1) is the input.
|
||||
*/
|
||||
class NetAbs : public NetNode {
|
||||
|
|
|
|||
4
parse.y
4
parse.y
|
|
@ -432,7 +432,7 @@ block_item_decl
|
|||
|
||||
/* Integer declarations are simpler in that they do not have all the
|
||||
trappings of a general variable declaration. All of that is
|
||||
implicit in the "integer" of the declaratin. */
|
||||
implicit in the "integer" of the declaration. */
|
||||
|
||||
| attribute_list_opt K_integer register_variable_list ';'
|
||||
{ pform_set_reg_integer($3);
|
||||
|
|
@ -445,7 +445,7 @@ block_item_decl
|
|||
|
||||
/* real declarations are fairly simple as there is no range of
|
||||
signed flag in the declaration. Create the real as a NetNet::REG
|
||||
with real value. Note that real and realtime are interchangable
|
||||
with real value. Note that real and realtime are interchangeable
|
||||
in this context. */
|
||||
|
||||
| attribute_list_opt K_real real_variable_list ';'
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
# sh scripts/MAKE_SNAPSHOT.sh 20080428 ~/tmp
|
||||
#
|
||||
# The above assumes that there is a tag "s20080428" at the point
|
||||
# to be snaphot. (The tag has the "s", but the argument to this
|
||||
# to be snapshot. (The tag has the "s", but the argument to this
|
||||
# script does not have the "s"). This script extracts based on the
|
||||
# tag, uses the temporary directory to stage intermediate results,
|
||||
# and finally creates a file called verilog-20080428.tar.gz that
|
||||
|
|
|
|||
|
|
@ -598,7 +598,7 @@ bool NetCondit::synth_sync(Design*des, NetScope*scope, NetFF*ff,
|
|||
delete expr_input;
|
||||
|
||||
/* Detect the case that this is a *synchronous* set/reset. It
|
||||
is not asyncronous because we know the condition is not
|
||||
is not asynchronous because we know the condition is not
|
||||
included in the sensitivity list, but if the if_ case is
|
||||
constant (has no inputs) then we can model this as a
|
||||
synchronous set/reset.
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ extern void pad_expr_in_place(ivl_expr_t exp, struct vector_info res, unsigned s
|
|||
* draw_modpath arranges for a .modpath record to be written out.
|
||||
*
|
||||
* cleanup_modpath() cleans up any pending .modpath records that may
|
||||
* have been scheduled by draw_modpath() but not yet writte.
|
||||
* have been scheduled by draw_modpath() but not yet written.
|
||||
*
|
||||
* Note: draw_modpath drive_label must be malloc'ed by the
|
||||
* caller. This function will free the string sometime in the future.
|
||||
|
|
|
|||
|
|
@ -508,7 +508,7 @@ verinum trim_vnum(const verinum&that)
|
|||
|
||||
/* Now top is the index of the highest non-zero bit. If
|
||||
that turns out to the highest bit in the vector, then
|
||||
tere is no trimming possible. */
|
||||
there is no trimming possible. */
|
||||
if (top+1 == that.len())
|
||||
return that;
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static int lookup_keyword(const char*text)
|
|||
}
|
||||
|
||||
/*
|
||||
* Create a string witout the leading and trailing quotes.
|
||||
* Create a string without the leading and trailing quotes.
|
||||
*/
|
||||
static void process_quoted_string(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ static void format_time(unsigned mcd, int fsize,
|
|||
/* Fill the leading characters to make up the desired
|
||||
width. This may require a '0' if the last character
|
||||
written was the decimal point. This may also require a '0'
|
||||
if there are no other characters at all in the ouput. */
|
||||
if there are no other characters at all in the output. */
|
||||
if (fusize > 0) {
|
||||
while (bp > start_address) {
|
||||
if (*bp == '.' || strcmp(bp, timeformat_info.suff) == 0)
|
||||
|
|
@ -1415,7 +1415,7 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus,
|
|||
vpi_printf("WARNING: incompatible value for %s%s.\n", info->name,
|
||||
fmtb);
|
||||
} else {
|
||||
/* If a width was not giveni, use a width of zero. */
|
||||
/* If a width was not given, use a width of zero. */
|
||||
if (width == -1) width = 0;
|
||||
if (ljust == 0) sprintf(result, "%*c", width,
|
||||
value.value.str[strlen(value.value.str)-1]);
|
||||
|
|
@ -1659,7 +1659,7 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus,
|
|||
/* If a width was not given use a width of zero. */
|
||||
if (width == -1) width = 0;
|
||||
nbits = vpi_get(vpiSize, info->items[*idx]);
|
||||
/* This is 4 chars for all but the last bit (strenght + "_")
|
||||
/* This is 4 chars for all but the last bit (strength + "_")
|
||||
* which only needs three chars (strength), but then you need
|
||||
* space for the EOS '\0', so it is just number of bits * 4. */
|
||||
rsize = nbits*4;
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ static PLI_INT32 sys_rand_two_args_compiletf(PLI_BYTE8 *name)
|
|||
break;
|
||||
default:
|
||||
vpi_printf("ERROR: %s's seed must be an integer/time"
|
||||
" varible or a register.\n", name);
|
||||
" variable or a register.\n", name);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -449,7 +449,7 @@ static PLI_INT32 sys_rand_three_args_compiletf(PLI_BYTE8 *name)
|
|||
break;
|
||||
default:
|
||||
vpi_printf("ERROR: %s's seed must be an integer/time"
|
||||
" varible or a register.\n", name);
|
||||
" variable or a register.\n", name);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -484,7 +484,7 @@ static PLI_INT32 sys_random_compiletf(PLI_BYTE8 *name)
|
|||
break;
|
||||
default:
|
||||
vpi_printf("ERROR: %s's seed must be an integer/time"
|
||||
" varible or a register.\n", name);
|
||||
" variable or a register.\n", name);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -445,7 +445,7 @@ static PLI_INT32 sys_writemem_calltf(PLI_BYTE8*name)
|
|||
/* Open the data file. */
|
||||
file = fopen(path, "w");
|
||||
if (file == 0) {
|
||||
vpi_printf("%s: Unable to open %s for writeing.\n", name, path);
|
||||
vpi_printf("%s: Unable to open %s for writing.\n", name, path);
|
||||
free(path);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ static int scan_format(vpiHandle sys, struct byte_source*src, vpiHandle argv)
|
|||
if (isspace(*fmtp)) {
|
||||
/* White space matches a string of white space in
|
||||
the input. The number of spaces is not
|
||||
relevent, and the match may be 0 or more
|
||||
relevant, and the match may be 0 or more
|
||||
spaces. */
|
||||
while (*fmtp && isspace(*fmtp))
|
||||
fmtp += 1;
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ void vcd_names_sort(struct vcd_names_list_s*tab)
|
|||
|
||||
The new signal will be listed as a $var, but no callback
|
||||
will be installed. This saves considerable CPU time and leads
|
||||
to smalle VCD files.
|
||||
to smaller VCD files.
|
||||
|
||||
The _vpiNexusId is a private (int) property of IVL simulators.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ void vpip_run_value_changes(struct __vpiSignal*sig)
|
|||
/*
|
||||
* Handle read-only synch events. This causes the callback to be
|
||||
* scheduled for a moment at the end of the time period. This method
|
||||
* handles scheduling with itme delays.
|
||||
* handles scheduling with time delays.
|
||||
*/
|
||||
static void go_readonly_synch(struct __vpiCallback*rfp)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -795,7 +795,7 @@ The &PV<> argument is a reference to part of a signal. The syntax is:
|
|||
|
||||
The <symbol> is the label for a signal, the <base> is the cannonical
|
||||
starting bit of the part select and <width> is the number of bits in
|
||||
the select. The second form retreives the <base> from thread space
|
||||
the select. The second form retrieves the <base> from thread space
|
||||
using <twid> bits starting at <tbase>.
|
||||
|
||||
* The T<> argument
|
||||
|
|
|
|||
|
|
@ -912,7 +912,7 @@ void array_word_change(vvp_array_t array, unsigned long addr)
|
|||
for (vvp_fun_arrayport*cur = array->ports_; cur; cur = cur->next_)
|
||||
cur->check_word_change(addr);
|
||||
|
||||
// Run callbacks attatched to the array itself.
|
||||
// Run callbacks attached to the array itself.
|
||||
struct __vpiCallback *next = array->vpi_callbacks;
|
||||
struct __vpiCallback *prev = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ extern void array_set_word(vvp_array_t arr,
|
|||
unsigned off,
|
||||
vvp_vector4_t val);
|
||||
|
||||
extern vvp_vector4_t array_get_word(vvp_array_t array, unsigned adddress);
|
||||
extern vvp_vector4_t array_get_word(vvp_array_t array, unsigned address);
|
||||
|
||||
/* VPI hooks */
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
/*
|
||||
* The vvp_dff implements a D-type FF that is agnostic to the data
|
||||
* type that is holds. The clock and clock-enable inputs are single
|
||||
* bits and may be invertable. An output is propagated on the logical
|
||||
* bits and may be invertible. An output is propagated on the logical
|
||||
* rising edge of the clock input, or whenever an asynchronous input
|
||||
* is received. Ports are:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ m .var "m", 6,0;
|
|||
;;; memory words occupy 8 bits each, that is 7 rounded up to the next
|
||||
;;; multiple of 4.
|
||||
|
||||
;;; Four bits ber byte. Word fill bits are included. Commas are
|
||||
;;; Four bits per byte. Word fill bits are included. Commas are
|
||||
;;; optional, there may be a comma after the last byte.
|
||||
|
||||
.mem/init memory[20],
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ int main(int argc, char*argv[])
|
|||
" -M path VPI module directory\n"
|
||||
" -M - Clear VPI module path\n"
|
||||
" -m module Load vpi module.\n"
|
||||
" -n Non-interctive ($stop = $finish).\n"
|
||||
" -n Non-interactive ($stop = $finish).\n"
|
||||
" -s $stop right away.\n"
|
||||
" -v Verbose progress messages.\n" );
|
||||
exit(0);
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ describes the specific behavior of each opcode, in enough detail
|
|||
|
||||
General principles of Arithmetic:
|
||||
|
||||
The binary arithmetic instruction in general take three parameters,
|
||||
The binary arithmetic instruction in general takes three parameters,
|
||||
the left operand, the right operand, and the base. The left operand is
|
||||
replaced with the result, which is the same width as the left and
|
||||
right operands.
|
||||
|
||||
* %abs/wr <bit-o>, <bit-i>
|
||||
|
||||
This instructure calculate the absolute value of a real value. It uses
|
||||
This instruction calculates the absolute value of a real value. It uses
|
||||
the fabs() function in the run-time to do the work.
|
||||
|
||||
* %add <bit-l>, <bit-r>, <wid>
|
||||
|
|
@ -510,7 +510,7 @@ into the destination vector. This is useful for filling a vector.
|
|||
|
||||
The %movi variant moves a binary value, LSB first, into the
|
||||
destination vector. The immediate value is up to 32bits, padded with
|
||||
zeros to fillout the width.
|
||||
zeros to fill out the width.
|
||||
|
||||
* %mul <bit-l>, <bit-r>, <wid>
|
||||
|
||||
|
|
|
|||
|
|
@ -906,7 +906,7 @@ vpiHandle vpi_handle_by_name(const char *name, vpiHandle scope)
|
|||
the modpath vpiHandle
|
||||
|
||||
|
||||
baiscally, they will redirect the generic vpi_interface
|
||||
basically, they will redirect the generic vpi_interface
|
||||
|
||||
vpi_get_delay ( .. )
|
||||
vpi_put_delay ( .. )
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ static void unlink_from_driver(vvp_net_t*src, vvp_net_ptr_t dst_ptr)
|
|||
}
|
||||
|
||||
/*
|
||||
* The CHUNK_LINK instruction is a specla next pointer for linking
|
||||
* The CHUNK_LINK instruction is a special next pointer for linking
|
||||
* chunks of code space. It's like a simplified %jmp.
|
||||
*/
|
||||
bool of_CHUNK_LINK(vthread_t thr, vvp_code_t code)
|
||||
|
|
@ -3903,7 +3903,7 @@ bool of_FORK_UFUNC(vthread_t thr, vvp_code_t cp)
|
|||
|
||||
/* After this function, the .ufunc code has placed an of_JOIN
|
||||
to pause this thread. Since the child was pushed by the
|
||||
flag to schecule_vthread, the called function starts up
|
||||
flag to schedule_vthread, the called function starts up
|
||||
immediately. */
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class vvp_island : private vvp_gen_event_s {
|
|||
virtual void run_island() =0;
|
||||
|
||||
protected:
|
||||
// The base class collects a list of all the braches in the
|
||||
// The base class collects a list of all the branches in the
|
||||
// island. The derived island class can access this list for
|
||||
// scanning the mesh.
|
||||
vvp_island_branch*branches_;
|
||||
|
|
@ -135,7 +135,7 @@ class vvp_island_port : public vvp_net_fun_t {
|
|||
private:
|
||||
vvp_island*island_;
|
||||
|
||||
private: // not imlemented
|
||||
private: // not implemented
|
||||
vvp_island_port(const vvp_island_port&);
|
||||
vvp_island_port& operator = (const vvp_island_port&);
|
||||
};
|
||||
|
|
@ -157,7 +157,7 @@ static void send_value(vvp_net_t*net, const vvp_vector8_t&val)
|
|||
}
|
||||
|
||||
/*
|
||||
* Branches are connected together to form a mesh of brances. Each
|
||||
* Branches are connected together to form a mesh of branches. Each
|
||||
* endpoint (there are two) connects circularly to other branch
|
||||
* endpoints that are connected together. This list of endpoints forms
|
||||
* a node. Thus it is possible for branches to fully specify the mesh
|
||||
|
|
@ -217,7 +217,7 @@ void vvp_island::flag_island()
|
|||
|
||||
/*
|
||||
* This method handles the callback from the scheduler. It does basic
|
||||
* housecleaning and calles the run_island() method implemented by the
|
||||
* housecleaning and calls the run_island() method implemented by the
|
||||
* derived class.
|
||||
*/
|
||||
void vvp_island::run_run()
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ class vvp_vector4_t {
|
|||
|
||||
void allocate_words_(unsigned size, unsigned long inita, unsigned long initb);
|
||||
|
||||
// Values in the vvp_vector4_t are stored split accross two
|
||||
// Values in the vvp_vector4_t are stored split across two
|
||||
// arrays. For each bit in the vector, there is an abit and a
|
||||
// bbit. the encoding of a vvp_vector4_t is:
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue