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

Subversion Repositories robust_fir

[/] [robust_fir/] [trunk/] [src/] [base/] [def_fir.txt] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 eyalhoc
<##//////////////////////////////////////////////////////////////////
2
////                                                             ////
3
////  Author: Eyal Hochberg                                      ////
4
////          eyal@provartec.com                                 ////
5
////                                                             ////
6
////  Downloaded from: http://www.opencores.org                  ////
7
/////////////////////////////////////////////////////////////////////
8
////                                                             ////
9
//// Copyright (C) 2010 Provartec LTD                            ////
10
//// www.provartec.com                                           ////
11
//// info@provartec.com                                          ////
12
////                                                             ////
13
//// This source file may be used and distributed without        ////
14
//// restriction provided that this copyright statement is not   ////
15
//// removed from the file and that any derivative work contains ////
16
//// the original copyright notice and the associated disclaimer.////
17
////                                                             ////
18
//// This source file is free software; you can redistribute it  ////
19
//// and/or modify it under the terms of the GNU Lesser General  ////
20
//// Public License as published by the Free Software Foundation.////
21
////                                                             ////
22
//// This source is distributed in the hope that it will be      ////
23
//// useful, but WITHOUT ANY WARRANTY; without even the implied  ////
24
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     ////
25
//// PURPOSE.  See the GNU Lesser General Public License for more////
26
//// details. http://www.gnu.org/licenses/lgpl.html              ////
27
////                                                             ////
28
//////////////////////////////////////////////////////////////////##>
29
 
30 16 eyalhoc
REQUIRE(1.5)
31 11 eyalhoc
 
32 2 eyalhoc
INCLUDE def_fir_basic.txt
33
 
34
SWAP.GLOBAL   #FFD    #1        ##Flip-Flop simulation delay
35
 
36
##check all input parameters have been given
37
CHECK CONST(ORDER)
38
CHECK CONST(COEFF_BITS)
39
CHECK CONST(DIN_BITS)
40
CHECK CONST(MAC_NUM)
41
 
42 11 eyalhoc
IFDEF MAC_EQ(1)
43 2 eyalhoc
  SWAP ARCH serial
44
  SWAP LATENCY 1
45 11 eyalhoc
ELSE MAC_EQ(1)
46
  IFDEF MAC_EQ(COEFF_NUM)
47 2 eyalhoc
    SWAP ARCH parallel
48
    SWAP LATENCY ADD_STAGES
49 11 eyalhoc
  ELSE MAC_EQ(COEFF_NUM)
50 2 eyalhoc
    SWAP ARCH Nserial
51
    SWAP LATENCY EXPR(LOG2(EXPR(COEFF_NUM/MAC_NUM))+1)
52 11 eyalhoc
  ENDIF MAC_EQ(COEFF_NUM)
53
ENDIF MAC_EQ(1)

powered by: WebSVN 2.1.0

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