OpenCores
URL https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [bench/] [cpp/] [ifft_tb.cpp] - Diff between revs 14 and 23

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 14 Rev 23
Line 45... Line 45...
#include <math.h>
#include <math.h>
#include <assert.h>
#include <assert.h>
 
 
#include "verilated.h"
#include "verilated.h"
#include "Vifft_tb.h"
#include "Vifft_tb.h"
 
#include "twoc.h"
 
 
#define LGWIDTH 11
#define LGWIDTH 11
#define IWIDTH  16
#define IWIDTH  16
#define MWIDTH  22
#define MWIDTH  22
#define OWIDTH  28
#define OWIDTH  28
Line 92... Line 93...
                m_iaddr = m_oaddr = 0;
                m_iaddr = m_oaddr = 0;
                m_syncd = false;
                m_syncd = false;
        }
        }
 
 
        long    twos_complement(const long val, const int bits) {
        long    twos_complement(const long val, const int bits) {
                long    r;
                return sbits(val, bits);
 
 
                r = val & ((1l<<bits)-1);
 
                if (r & (1l << (bits-1)))
 
                        r |= (-1l << bits);
 
                return r;
 
        }
        }
 
 
        void    checkresults(void) {
        void    checkresults(void) {
        /*
        /*
                double  *dp, *sp; // Complex array
                double  *dp, *sp; // Complex array

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.