diff --git a/vvp/logic.cc b/vvp/logic.cc index ecfc947d7..3ba7c965b 100644 --- a/vvp/logic.cc +++ b/vvp/logic.cc @@ -109,35 +109,6 @@ void vvp_fun_and::run_run() vvp_send_vec4(ptr->out, result); } -vvp_fun_eeq::vvp_fun_eeq(unsigned wid, bool invert) -: vvp_fun_boolean_(wid), invert_(invert) -{ - count_functors_logic += 1; -} - -vvp_fun_eeq::~vvp_fun_eeq() -{ -} - -void vvp_fun_eeq::run_run() -{ - vvp_net_t*ptr = net_; - net_ = 0; - - vvp_vector4_t result (input_[0]); - - for (unsigned idx = 0 ; idx < result.size() ; idx += 1) { - vvp_bit4_t bitbit = result.value(idx); - bitbit = (bitbit == input_[1].value(idx))? BIT4_1 : BIT4_0; - if (invert_) - bitbit = ~bitbit; - - result.set_bit(idx, bitbit); - } - - vvp_send_vec4(ptr->out, result); -} - vvp_fun_buf::vvp_fun_buf() { net_ = 0; @@ -579,9 +550,6 @@ void compile_functor(char*label, char*type, unsigned width, } else if (strcmp(type, "RPMOS") == 0) { obj = new vvp_fun_rpmos(false); - } else if (strcmp(type, "EEQ") == 0) { - obj = new vvp_fun_eeq(width, false); - } else if (strcmp(type, "NOT") == 0) { obj = new vvp_fun_not(); diff --git a/vvp/logic.h b/vvp/logic.h index 24df457d2..841ce4aaa 100644 --- a/vvp/logic.h +++ b/vvp/logic.h @@ -52,17 +52,6 @@ class vvp_fun_and : public vvp_fun_boolean_ { bool invert_; }; -class vvp_fun_eeq : public vvp_fun_boolean_ { - - public: - explicit vvp_fun_eeq(unsigned wid, bool invert); - ~vvp_fun_eeq(); - - private: - void run_run(); - bool invert_; -}; - /* * The buffer functor is a very primitive functor that takes the input * from port-0 (and only port-0) and retransmits it as a vvp_vector4_t.