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:
parent
3b778b1a06
commit
8d21c0390e
32
vvp/logic.cc
32
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();
|
||||
|
||||
|
|
|
|||
11
vvp/logic.h
11
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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue