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

Subversion Repositories robust_fir

[/] [robust_fir/] [trunk/] [src/] [base/] [def_fir.txt] - Diff between revs 2 and 5

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 2 Rev 5
 
 
 
////                                                             ////
 
////  Author: Eyal Hochberg                                      ////
 
////          eyal@provartec.com                                 ////
 
////                                                             ////
 
////  Downloaded from: http://www.opencores.org                  ////
 
/////////////////////////////////////////////////////////////////////
 
////                                                             ////
 
//// Copyright (C) 2010 Provartec LTD                            ////
 
//// www.provartec.com                                           ////
 
//// info@provartec.com                                          ////
 
////                                                             ////
 
//// This source file may be used and distributed without        ////
 
//// restriction provided that this copyright statement is not   ////
 
//// removed from the file and that any derivative work contains ////
 
//// the original copyright notice and the associated disclaimer.////
 
////                                                             ////
 
//// This source file is free software; you can redistribute it  ////
 
//// and/or modify it under the terms of the GNU Lesser General  ////
 
//// Public License as published by the Free Software Foundation.////
 
////                                                             ////
 
//// This source is distributed in the hope that it will be      ////
 
//// useful, but WITHOUT ANY WARRANTY; without even the implied  ////
 
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     ////
 
//// PURPOSE.  See the GNU Lesser General Public License for more////
 
//// details. http://www.gnu.org/licenses/lgpl.html              ////
 
////                                                             ////
 
//////////////////////////////////////////////////////////////////##>
 
 
INCLUDE def_fir_basic.txt
INCLUDE def_fir_basic.txt
SWAP.GLOBAL   #FFD    #1        ##Flip-Flop simulation delay
SWAP.GLOBAL   #FFD    #1        ##Flip-Flop simulation delay
##check all input parameters have been given
##check all input parameters have been given
CHECK CONST(ORDER)
CHECK CONST(ORDER)
CHECK CONST(COEFF_BITS)
CHECK CONST(COEFF_BITS)
CHECK CONST(DIN_BITS)
CHECK CONST(DIN_BITS)
CHECK CONST(MAC_NUM)
CHECK CONST(MAC_NUM)
IFDEF TRUE(MAC_NUM==1)
IFDEF TRUE(MAC_NUM==1)
  SWAP ARCH serial
  SWAP ARCH serial
  SWAP LATENCY 1
  SWAP LATENCY 1
ELSE TRUE(MAC_NUM==1)
ELSE TRUE(MAC_NUM==1)
  IFDEF TRUE(COEFF_NUM==MAC_NUM)
  IFDEF TRUE(COEFF_NUM==MAC_NUM)
    SWAP ARCH parallel
    SWAP ARCH parallel
    SWAP LATENCY ADD_STAGES
    SWAP LATENCY ADD_STAGES
  ELSE TRUE(COEFF_NUM==MAC_NUM)
  ELSE TRUE(COEFF_NUM==MAC_NUM)
    SWAP ARCH Nserial
    SWAP ARCH Nserial
    SWAP LATENCY EXPR(LOG2(EXPR(COEFF_NUM/MAC_NUM))+1)
    SWAP LATENCY EXPR(LOG2(EXPR(COEFF_NUM/MAC_NUM))+1)
  ENDIF TRUE(COEFF_NUM==MAC_NUM)
  ENDIF TRUE(COEFF_NUM==MAC_NUM)
ENDIF TRUE(MAC_NUM==1)
ENDIF TRUE(MAC_NUM==1)
 
 

powered by: WebSVN 2.1.0

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