From 9ad46044b4e3fe9358522218661aa3aed88af5e3 Mon Sep 17 00:00:00 2001 From: Michele Castellana Date: Thu, 30 Jun 2016 17:18:09 +0200 Subject: [PATCH] Cleanup --- netlist.h | 1 - tgt-vvp/vvp_scope.c | 10 +++++----- vvp/vpi_priv.h | 6 +----- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/netlist.h b/netlist.h index b034da71d..f28d18b51 100644 --- a/netlist.h +++ b/netlist.h @@ -250,7 +250,6 @@ class NetPins : public LineInfo { */ class NetObj : public NetPins, public Attrib { - public: public: // The name of the object must be a permallocated string. A // lex_strings string, for example. diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index c6e1059ee..f27066a19 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -1737,29 +1737,29 @@ static void draw_lpm_ff(ivl_lpm_t net) nex = ivl_lpm_data(net,0); assert(nex); fprintf(vvp_out, "%s", draw_net_input(nex)); - assert(width_of_nexus(nex) == width);; + assert(width_of_nexus(nex) == width); nex = ivl_lpm_clk(net); assert(nex); - assert(width_of_nexus(nex) == 1);; + assert(width_of_nexus(nex) == 1); fprintf(vvp_out, ", %s", draw_net_input(nex)); nex = ivl_lpm_enable(net); if (nex) { - assert(width_of_nexus(nex) == 1);; + assert(width_of_nexus(nex) == 1); fprintf(vvp_out, ", %s", draw_net_input(nex)); } else { fprintf(vvp_out, ", C4<1>"); } if ( (nex = ivl_lpm_async_clr(net)) ) { - assert(width_of_nexus(nex) == 1);; + assert(width_of_nexus(nex) == 1); fprintf(vvp_out, ", %s", draw_net_input(nex)); } if ( (nex = ivl_lpm_async_set(net)) ) { ivl_expr_t val = ivl_lpm_aset_value(net); - assert(width_of_nexus(nex) == 1);; + assert(width_of_nexus(nex) == 1); fprintf(vvp_out, ", %s", draw_net_input(nex)); if (val) { unsigned nbits = ivl_expr_width(val); diff --git a/vvp/vpi_priv.h b/vvp/vpi_priv.h index dc040e581..5479a1f0b 100644 --- a/vvp/vpi_priv.h +++ b/vvp/vpi_priv.h @@ -2,6 +2,7 @@ #define IVL_vpi_priv_H /* * Copyright (c) 2001-2015 Stephen Williams (steve@icarus.com) + * Copyright (c) 2016 CERN Michele Castellana (michele.castellana@cern.ch) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -227,11 +228,6 @@ struct __vpiScopedRealtime : public __vpiSystemTime { void vpi_get_value(p_vpi_value val); }; -struct __vpiPortInfo : public __vpiHandle { - -}; - - /* * Scopes are created by .scope statements in the source. These * objects hold the items and properties that are knowingly bound to a