By default convert a recv_vec8_pv to a recv_vec4_pv
Assume that anything that is strength aware already handles a recv_vec8_pv and make the default function convert the bits to a vec4 and then call recv_vec4_pv with this new value.
This commit is contained in:
parent
0ae8f744c4
commit
3b8dc81a97
|
|
@ -2144,22 +2144,19 @@ void vvp_net_fun_t::recv_vec4(vvp_net_ptr_t, const vvp_vector4_t&)
|
|||
assert(0);
|
||||
}
|
||||
|
||||
void vvp_net_fun_t::recv_vec4_pv(vvp_net_ptr_t, const vvp_vector4_t&bits,
|
||||
void vvp_net_fun_t::recv_vec4_pv(vvp_net_ptr_t, const vvp_vector4_t&bit,
|
||||
unsigned base, unsigned wid, unsigned vwid)
|
||||
{
|
||||
cerr << "internal error: " << typeid(*this).name() << ": "
|
||||
<< "recv_vec4_pv(" << bits << ", " << base
|
||||
<< "recv_vec4_pv(" << bit << ", " << base
|
||||
<< ", " << wid << ", " << vwid << ") not implemented" << endl;
|
||||
assert(0);
|
||||
}
|
||||
|
||||
void vvp_net_fun_t::recv_vec8_pv(vvp_net_ptr_t, const vvp_vector8_t&bits,
|
||||
void vvp_net_fun_t::recv_vec8_pv(vvp_net_ptr_t port, const vvp_vector8_t&bit,
|
||||
unsigned base, unsigned wid, unsigned vwid)
|
||||
{
|
||||
cerr << "internal error: " << typeid(*this).name() << ": "
|
||||
<< "recv_vec8_pv(" << bits << ", " << base
|
||||
<< ", " << wid << ", " << vwid << ") not implemented" << endl;
|
||||
assert(0);
|
||||
recv_vec4_pv(port, reduce4(bit), base, wid, vwid);
|
||||
}
|
||||
|
||||
void vvp_net_fun_t::recv_vec8(vvp_net_ptr_t port, const vvp_vector8_t&bit)
|
||||
|
|
|
|||
|
|
@ -859,8 +859,9 @@ struct vvp_net_t {
|
|||
* port. The value is a vvp_vector4_t.
|
||||
*
|
||||
* Most nodes do not care about the specific strengths of bits, so the
|
||||
* default behavior for recv_vec8 is to reduce the operand to a
|
||||
* vvp_vector4_t and pass it on to the recv_vec4 method.
|
||||
* default behavior for recv_vec8 and recv_vec8_pv is to reduce the
|
||||
* operand to a vvp_vector4_t and pass it on to the recv_vec4 or
|
||||
* recv_vec4_pv method.
|
||||
*/
|
||||
class vvp_net_fun_t {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue