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

Subversion Repositories robust_fir

[/] [robust_fir/] [trunk/] [src/] [gen/] [prgen_delayN.v] - Blame information for rev 5

Go to most recent revision | 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 2 eyalhoc
ITER DX DELAY
31
 
32
OUTFILE prgen_NAME.v
33
INCLUDE def_delayN.txt
34
 
35
module prgen_NAME(PORTS);
36
   parameter          WIDTH = 1;
37
 
38
   input                      clk;
39
   input                      reset;
40
IF CLKEN  input                       clken;
41
 
42
   input [WIDTH-1:0]  din;
43
IFDEF PARALLEL
44
   output [WIDTH*DELAY-1:0] dout;
45
ELSE PARALLEL
46
   output [WIDTH-1:0] dout;
47
ENDIF PARALLEL
48
 
49
 
50
   wire [WIDTH-1:0]   din_d0;
51
   reg [WIDTH-1:0]         din_dEXPR(DX+1);
52
 
53
   assign din_d0 = din;
54
 
55
   always @(posedge clk or posedge reset)
56
     if (reset)
57
           begin
58
         din_dEXPR(DX+1) <= #FFD {WIDTH{1'b0}};
59
           end
60
     else
61
IFDEF CLKEN
62
         STOMP NEWLINE
63
         if (clken)
64
ENDIF CLKEN
65
           begin
66
         din_dEXPR(DX+1) <= #FFD din_dDX;
67
           end
68
 
69
 
70
IFDEF PARALLEL
71
  assign              dout = {CONCAT.REV(din_dDX ,)};
72
ELSE PARALLEL
73
   assign                     dout = din_dDELAY;
74
ENDIF PARALLEL
75
 
76
 
77
endmodule
78
 
79
 
80
 
81
 
82
 
83
 

powered by: WebSVN 2.1.0

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