Remove dead EEQ code.

The EEQ function is handled by vvp_cmp_eeq, an arithmetic expression
processor and the logic version of EEQ is never used.
This commit is contained in:
Stephen Williams 2008-08-28 22:08:46 -07:00
parent 3b778b1a06
commit 8d21c0390e
2 changed files with 0 additions and 43 deletions

View File

@ -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();

View File

@ -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.