Lint fixes.
This commit is contained in:
parent
760f2182ba
commit
ae88f5cc68
7
cprop.cc
7
cprop.cc
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: cprop.cc,v 1.55 2006/05/24 04:32:57 steve Exp $"
|
||||
#ident "$Id: cprop.cc,v 1.56 2007/03/07 00:38:15 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -215,7 +215,9 @@ void cprop_functor::lpm_ff(Design*des, NetFF*obj)
|
|||
|
||||
void cprop_functor::lpm_logic(Design*des, NetLogic*obj)
|
||||
{
|
||||
#if 0
|
||||
NetScope*scope = obj->scope();
|
||||
#endif
|
||||
|
||||
switch (obj->type()) {
|
||||
#if 0
|
||||
|
|
@ -948,6 +950,9 @@ void cprop(Design*des)
|
|||
|
||||
/*
|
||||
* $Log: cprop.cc,v $
|
||||
* Revision 1.56 2007/03/07 00:38:15 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.55 2006/05/24 04:32:57 steve
|
||||
* Fix handling of ternary-to-bufif0 constant propagation.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: elab_expr.cc,v 1.120 2007/03/06 05:22:49 steve Exp $"
|
||||
#ident "$Id: elab_expr.cc,v 1.121 2007/03/07 00:38:15 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -695,7 +695,7 @@ unsigned PEIdent::test_width(Design*des, NetScope*scope,
|
|||
|
||||
const NetExpr*ex1, *ex2;
|
||||
|
||||
NetScope*found_in = symbol_search(des, scope, path_,
|
||||
symbol_search(des, scope, path_,
|
||||
net, par, eve,
|
||||
ex1, ex2);
|
||||
|
||||
|
|
@ -706,7 +706,7 @@ unsigned PEIdent::test_width(Design*des, NetScope*scope,
|
|||
break;
|
||||
case SEL_PART:
|
||||
{ long msb, lsb;
|
||||
bool flag = calculate_parts_(des, scope, msb, lsb);
|
||||
calculate_parts_(des, scope, msb, lsb);
|
||||
use_width = 1 + ((msb>lsb)? (msb-lsb) : (lsb-msb));
|
||||
break;
|
||||
}
|
||||
|
|
@ -1608,6 +1608,9 @@ NetExpr* PEUnary::elaborate_expr(Design*des, NetScope*scope,
|
|||
|
||||
/*
|
||||
* $Log: elab_expr.cc,v $
|
||||
* Revision 1.121 2007/03/07 00:38:15 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.120 2007/03/06 05:22:49 steve
|
||||
* Support signed function return values.
|
||||
*
|
||||
|
|
|
|||
7
eval.cc
7
eval.cc
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: eval.cc,v 1.44 2007/01/16 05:44:15 steve Exp $"
|
||||
#ident "$Id: eval.cc,v 1.45 2007/03/07 00:38:15 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -185,7 +185,7 @@ verinum* PEIdent::eval_const(const Design*des, NetScope*scope) const
|
|||
return new verinum(scope->genvar_tmp_val);
|
||||
}
|
||||
|
||||
NetScope*found_in = symbol_search(des, scope, path_,
|
||||
symbol_search(des, scope, path_,
|
||||
net, expr, eve);
|
||||
|
||||
if (expr == 0)
|
||||
|
|
@ -275,6 +275,9 @@ verinum* PEUnary::eval_const(const Design*des, NetScope*scope) const
|
|||
|
||||
/*
|
||||
* $Log: eval.cc,v $
|
||||
* Revision 1.45 2007/03/07 00:38:15 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.44 2007/01/16 05:44:15 steve
|
||||
* Major rework of array handling. Memories are replaced with the
|
||||
* more general concept of arrays. The NetMemory and NetEMemory
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: pform_dump.cc,v 1.96 2007/03/05 05:59:10 steve Exp $"
|
||||
#ident "$Id: pform_dump.cc,v 1.97 2007/03/07 00:38:15 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "config.h"
|
||||
|
|
@ -629,6 +629,9 @@ void PFunction::dump(ostream&out, unsigned ind) const
|
|||
case PTF_REG:
|
||||
out << "reg ";
|
||||
break;
|
||||
case PTF_REG_S:
|
||||
out << "reg_s ";
|
||||
break;
|
||||
case PTF_INTEGER:
|
||||
out << "integer ";
|
||||
break;
|
||||
|
|
@ -1029,6 +1032,9 @@ void PUdp::dump(ostream&out) const
|
|||
|
||||
/*
|
||||
* $Log: pform_dump.cc,v $
|
||||
* Revision 1.97 2007/03/07 00:38:15 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.96 2007/03/05 05:59:10 steve
|
||||
* Handle processes within generate loops.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: sys_scanf.c,v 1.4 2006/10/30 22:45:37 steve Exp $"
|
||||
#ident "$Id: sys_scanf.c,v 1.5 2007/03/07 00:38:16 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "vpi_user.h"
|
||||
|
|
@ -116,7 +116,7 @@ static double float_string(struct byte_source*src)
|
|||
if (ch == '-' || ch == '+') {
|
||||
str = realloc(str, len+2);
|
||||
str[len++] = ch;
|
||||
ch - byte_getc(src);
|
||||
ch = byte_getc(src);
|
||||
}
|
||||
|
||||
while (isdigit(ch)) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: vpi_priv.cc,v 1.51 2007/01/31 22:28:55 steve Exp $"
|
||||
#ident "$Id: vpi_priv.cc,v 1.52 2007/03/07 00:38:16 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "vpi_priv.h"
|
||||
|
|
@ -416,7 +416,7 @@ void vpip_vec4_get_value(const vvp_vector4_t&word_val, unsigned width,
|
|||
if (signed_flag && word_val.size() > 0)
|
||||
pad = word_val.value(word_val.size()-1);
|
||||
|
||||
for (long idx = 0 ; idx < 8*sizeof(val) ; idx += 1) {
|
||||
for (unsigned idx = 0 ; idx < 8*sizeof(val) ; idx += 1) {
|
||||
vvp_bit4_t val4 = pad;
|
||||
if (idx < word_val.size())
|
||||
val4 = word_val.value(idx);
|
||||
|
|
@ -848,6 +848,9 @@ extern "C" void vpi_control(PLI_INT32 operation, ...)
|
|||
|
||||
/*
|
||||
* $Log: vpi_priv.cc,v $
|
||||
* Revision 1.52 2007/03/07 00:38:16 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.51 2007/01/31 22:28:55 steve
|
||||
* Fix missing check for thread bits width in ADDI
|
||||
*
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ident "$Id: vvp_net.cc,v 1.59 2007/03/02 06:13:22 steve Exp $"
|
||||
#ident "$Id: vvp_net.cc,v 1.60 2007/03/07 00:38:16 steve Exp $"
|
||||
|
||||
# include "config.h"
|
||||
# include "vvp_net.h"
|
||||
|
|
@ -637,7 +637,7 @@ bool vector4_to_value(const vvp_vector4_t&vec, double&val, bool signed_flag)
|
|||
double res = 0.0;
|
||||
if (signed_flag) {
|
||||
vvp_bit4_t carry = BIT4_1;
|
||||
for (int idx = 0 ; idx < vec.size() ; idx += 1) {
|
||||
for (unsigned idx = 0 ; idx < vec.size() ; idx += 1) {
|
||||
vvp_bit4_t a = ~vec.value(idx);
|
||||
vvp_bit4_t x = add_with_carry(a, BIT4_0, carry);
|
||||
switch (x) {
|
||||
|
|
@ -652,7 +652,7 @@ bool vector4_to_value(const vvp_vector4_t&vec, double&val, bool signed_flag)
|
|||
}
|
||||
res *= -1.0;
|
||||
} else {
|
||||
for (int idx = 0 ; idx < vec.size() ; idx += 1) {
|
||||
for (unsigned idx = 0 ; idx < vec.size() ; idx += 1) {
|
||||
switch (vec.value(idx)) {
|
||||
case BIT4_0:
|
||||
break;
|
||||
|
|
@ -2290,6 +2290,9 @@ vvp_bit4_t compare_gtge_signed(const vvp_vector4_t&a,
|
|||
|
||||
/*
|
||||
* $Log: vvp_net.cc,v $
|
||||
* Revision 1.60 2007/03/07 00:38:16 steve
|
||||
* Lint fixes.
|
||||
*
|
||||
* Revision 1.59 2007/03/02 06:13:22 steve
|
||||
* Add support for edge sensitive spec paths.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue