mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 09:09:58 +02:00
Forgot to invert nand output.
This commit is contained in:
+5
-2
@@ -17,7 +17,7 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: reduce.cc,v 1.3 2006/05/01 18:44:08 steve Exp $"
|
||||
#ident "$Id: reduce.cc,v 1.4 2006/05/01 20:47:03 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "compile.h"
|
||||
@@ -134,7 +134,7 @@ void vvp_reduce_nand::recv_vec4(vvp_net_ptr_t prt, const vvp_vector4_t&bit)
|
||||
for (unsigned idx = 0 ; idx < bit.size() ; idx += 1)
|
||||
res = res & bit.value(idx);
|
||||
|
||||
vvp_vector4_t rv (1, res);
|
||||
vvp_vector4_t rv (1, ~res);
|
||||
vvp_send_vec4(prt.ptr()->out, rv);
|
||||
}
|
||||
|
||||
@@ -241,6 +241,9 @@ void compile_reduce_xnor(char*label, struct symb_s arg)
|
||||
|
||||
/*
|
||||
* $Log: reduce.cc,v $
|
||||
* Revision 1.4 2006/05/01 20:47:03 steve
|
||||
* Forgot to invert nand output.
|
||||
*
|
||||
* Revision 1.3 2006/05/01 18:44:08 steve
|
||||
* Reduce steps to make logic output.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user