From 525137926db6a6c4dce90d35d1ce233d6a0cf27a Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 17 Feb 2015 18:06:48 -0800 Subject: Several improvements to CBA data-structure. --- src/misc/extra/extraUtilMisc.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/misc/extra') diff --git a/src/misc/extra/extraUtilMisc.c b/src/misc/extra/extraUtilMisc.c index 51bd887e..479045f9 100644 --- a/src/misc/extra/extraUtilMisc.c +++ b/src/misc/extra/extraUtilMisc.c @@ -2532,6 +2532,40 @@ void Extra_NpnTest() } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +void Extra_NtkPrintBin( word * pT, int nBits ) +{ + int i; + for ( i = nBits - 1; i >= 0; i-- ) + printf( "%d", (*pT >> (word)i) & 1 ); +} +void Extra_NtkPowerTest() +{ + int i, j, k, n = 4; + for ( i = 0; i < (1<