From d779c6d58bf7a8c5a354f2605d7b8aa206677f9c Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Tue, 4 May 2010 17:36:44 -0700 Subject: [PATCH] Remove dead class vvp_fun_signal8. This class is no longer used. net8 nodes exist entirely within filters (no functor at all) and strength aware variables don't exist. --- vvp/vvp_net_sig.cc | 73 ---------------------------------------------- vvp/vvp_net_sig.h | 20 ------------- 2 files changed, 93 deletions(-) diff --git a/vvp/vvp_net_sig.cc b/vvp/vvp_net_sig.cc index b45afd507..526c2d560 100644 --- a/vvp/vvp_net_sig.cc +++ b/vvp/vvp_net_sig.cc @@ -402,79 +402,6 @@ void vvp_fun_signal4_aa::operator delete(void*) assert(0); } -vvp_fun_signal8::vvp_fun_signal8(unsigned wid) -: bits8_(wid) -{ -} - -void vvp_fun_signal8::recv_vec4(vvp_net_ptr_t ptr, const vvp_vector4_t&bit, - vvp_context_t) -{ - recv_vec8(ptr, vvp_vector8_t(bit,6,6)); -} - -void vvp_fun_signal8::recv_vec8(vvp_net_ptr_t ptr, const vvp_vector8_t&bit) -{ - switch (ptr.port()) { - case 0: // Normal input (feed from net, or set from process) - if (needs_init_ || !bits8_.eeq(bit)) { - bits8_ = bit; - needs_init_ = false; - ptr.ptr()->send_vec8(bits8_); - } - break; - - case 1: // Continuous assign value - /* This is a procedural continuous assign and it can - * only be used on a register and a register is never - * strength aware. */ - assert(0); - break; - - default: - fprintf(stderr, "Unsupported port type %d.\n", ptr.port()); - assert(0); - break; - } -} - -void vvp_fun_signal8::recv_vec4_pv(vvp_net_ptr_t ptr, const vvp_vector4_t&bit, - unsigned base, unsigned wid, unsigned vwid, - vvp_context_t) -{ - recv_vec8_pv(ptr, vvp_vector8_t(bit,6,6), base, wid, vwid); -} - -void vvp_fun_signal8::recv_vec8_pv(vvp_net_ptr_t ptr, const vvp_vector8_t&bit, - unsigned base, unsigned wid, unsigned vwid) -{ - assert(bit.size() == wid); - assert(bits8_.size() == vwid); - - switch (ptr.port()) { - case 0: // Normal input - for (unsigned idx = 0 ; idx < wid ; idx += 1) { - if (base+idx >= bits8_.size()) break; - bits8_.set_bit(base+idx, bit.value(idx)); - } - needs_init_ = false; - ptr.ptr()->send_vec8(bits8_); - break; - - case 1: // Continuous assign value - /* This is a procedural continuous assign and it can - * only be used on a register and a register is never - * strength aware. */ - assert(0); - break; - - default: - fprintf(stderr, "Unsupported port type %d.\n", ptr.port()); - assert(0); - break; - } -} - /* * Testing for equality, we want a bitwise test instead of an * arithmetic test because we want to treat for example -0 different diff --git a/vvp/vvp_net_sig.h b/vvp/vvp_net_sig.h index 33ebb80bc..3121a8655 100644 --- a/vvp/vvp_net_sig.h +++ b/vvp/vvp_net_sig.h @@ -194,26 +194,6 @@ class vvp_fun_signal4_aa : public vvp_fun_signal_vec, public automatic_signal_ba unsigned size_; }; -class vvp_fun_signal8 : public vvp_fun_signal_vec { - - public: - explicit vvp_fun_signal8(unsigned wid); - - void recv_vec4(vvp_net_ptr_t port, const vvp_vector4_t&bit, - vvp_context_t context); - void recv_vec8(vvp_net_ptr_t port, const vvp_vector8_t&bit); - - // Part select variants of above - void recv_vec4_pv(vvp_net_ptr_t port, const vvp_vector4_t&bit, - unsigned base, unsigned wid, unsigned vwid, - vvp_context_t context); - void recv_vec8_pv(vvp_net_ptr_t port, const vvp_vector8_t&bit, - unsigned base, unsigned wid, unsigned vwid); - - private: - vvp_vector8_t bits8_; -}; - class vvp_fun_signal_real : public vvp_fun_signal_base { public: