OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [ip/] [Timer/] [timer.IP] - Blame information for rev 25

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 alirezamon
#######################################################################
2
##      File: timer.IP
3
##
4
##      Copyright (C) 2014-2016  Alireza Monemi
5
##
6
##      This file is part of ProNoC 1.5.0
7
##
8
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
9
##      MAY CAUSE UNEXPECTED BEHAIVOR.
10
################################################################################
11
 
12
$timer = bless( {
13
                  'hdl_files' => [
14
                                   '/mpsoc/src_peripheral/timer/timer.v'
15
                                 ],
16
                  'system_h' => '#define ${IP}_TCSR0                            (*((volatile unsigned int *) ($BASE     )))
17
 
18
/*
19
//timer control register
20
TCSR0
21
bit
22
6-3     :       clk_dev_ctrl
23
3       :       timer_isr
24
2       :       rst_on_cmp_value
25
1       :       int_enble_on_cmp_value
26
 
27
*/
28
        #define ${IP}_TLR0                              (*((volatile unsigned int *) ($BASE+4   )))
29
        #define ${IP}_TCMP0                             (*((volatile unsigned int *) ($BASE+8   )))
30
        #define ${IP}_EN                                (1 << 0)
31
        #define ${IP}_INT_EN                            (1 << 1)
32
        #define ${IP}_RST_ON_CMP                        (1 << 2)
33
',
34
                  'ip_name' => 'timer',
35
                  'description' => '32 bit timer ',
36
                  'gui_status' => {
37
                                    'status' => 'ideal',
38
                                    'timeout' => 0
39
                                  },
40
                  'parameters' => {
41
                                    'Aw' => {
42
                                              'info' => undef,
43
                                              'deafult' => '3',
44
                                              'global_param' => 'Localparam',
45
                                              'content' => '',
46
                                              'type' => 'Fixed',
47
                                              'redefine_param' => 1
48
                                            },
49
                                    'TAGw' => {
50
                                                'info' => undef,
51
                                                'deafult' => '3',
52
                                                'global_param' => 'Localparam',
53
                                                'content' => '',
54
                                                'type' => 'Fixed',
55
                                                'redefine_param' => 1
56
                                              },
57
                                    'SELw' => {
58
                                                'info' => undef,
59
                                                'deafult' => '4',
60
                                                'global_param' => 'Localparam',
61
                                                'content' => '',
62
                                                'type' => 'Fixed',
63
                                                'redefine_param' => 1
64
                                              },
65
                                    'Dw' => {
66
                                              'info' => undef,
67
                                              'deafult' => '32',
68
                                              'global_param' => 'Localparam',
69
                                              'content' => '',
70
                                              'type' => 'Fixed',
71
                                              'redefine_param' => 1
72
                                            },
73
                                    'CNTw' => {
74
                                                'info' => undef,
75
                                                'deafult' => '32     ',
76
                                                'global_param' => 'Localparam',
77
                                                'content' => '',
78
                                                'type' => 'Fixed',
79
                                                'redefine_param' => 1
80
                                              }
81
                                  },
82
                  'modules' => {
83
                                 'timer' => {}
84
                               },
85
                  'plugs' => {
86
                               'reset' => {
87
                                            'reset' => {},
88
                                            'value' => 1,
89
                                            '0' => {
90
                                                     'name' => 'reset'
91
                                                   },
92
                                            'type' => 'num'
93
                                          },
94
                               'interrupt_peripheral' => {
95
                                                           'interrupt_peripheral' => {},
96
                                                           '0' => {
97
                                                                    'name' => 'intrp'
98
                                                                  },
99
                                                           'value' => 1,
100
                                                           'type' => 'num'
101
                                                         },
102
                               'clk' => {
103
                                          'clk' => {},
104
                                          'value' => 1,
105
                                          '0' => {
106
                                                   'name' => 'clk'
107
                                                 },
108
                                          'type' => 'num'
109
                                        },
110
                               'wb_slave' => {
111
                                               '0' => {
112
                                                        'width' => 5,
113
                                                        'name' => 'wb',
114
                                                        'addr' => '0x9600_0000  0x96ff_ffff             PWM/Timer/Counter Ctrl'
115
                                                      },
116
                                               'value' => 1,
117
                                               'type' => 'num',
118
                                               'wb_slave' => {}
119
                                             }
120
                             },
121
                  'parameters_order' => [
122
                                          'CNTw',
123
                                          'Dw',
124
                                          'Aw',
125
                                          'TAGw',
126
                                          'SELw'
127
                                        ],
128
                  'ports' => {
129
                               'sa_tag_i' => {
130
                                               'intfc_name' => 'plug:wb_slave[0]',
131
                                               'intfc_port' => 'tag_i',
132
                                               'range' => 'TAGw-1     :   0',
133
                                               'type' => 'input'
134
                                             },
135
                               'sa_dat_o' => {
136
                                               'intfc_name' => 'plug:wb_slave[0]',
137
                                               'intfc_port' => 'dat_o',
138
                                               'range' => 'Dw-1       :   0',
139
                                               'type' => 'output'
140
                                             },
141
                               'sa_rty_o' => {
142
                                               'intfc_port' => 'rty_o',
143
                                               'intfc_name' => 'plug:wb_slave[0]',
144
                                               'range' => '',
145
                                               'type' => 'output'
146
                                             },
147
                               'sa_sel_i' => {
148
                                               'intfc_name' => 'plug:wb_slave[0]',
149
                                               'intfc_port' => 'sel_i',
150
                                               'range' => 'SELw-1     :   0',
151
                                               'type' => 'input'
152
                                             },
153
                               'sa_dat_i' => {
154
                                               'intfc_port' => 'dat_i',
155
                                               'intfc_name' => 'plug:wb_slave[0]',
156
                                               'range' => 'Dw-1       :   0',
157
                                               'type' => 'input'
158
                                             },
159
                               'sa_we_i' => {
160
                                              'intfc_port' => 'we_i',
161
                                              'intfc_name' => 'plug:wb_slave[0]',
162
                                              'range' => '',
163
                                              'type' => 'input'
164
                                            },
165
                               'irq' => {
166
                                          'intfc_port' => 'int_o',
167
                                          'intfc_name' => 'plug:interrupt_peripheral[0]',
168
                                          'range' => '',
169
                                          'type' => 'output'
170
                                        },
171
                               'sa_err_o' => {
172
                                               'intfc_name' => 'plug:wb_slave[0]',
173
                                               'intfc_port' => 'err_o',
174
                                               'range' => '',
175
                                               'type' => 'output'
176
                                             },
177
                               'sa_cyc_i' => {
178
                                               'intfc_port' => 'cyc_i',
179
                                               'intfc_name' => 'plug:wb_slave[0]',
180
                                               'range' => '',
181
                                               'type' => 'input'
182
                                             },
183
                               'clk' => {
184
                                          'intfc_name' => 'plug:clk[0]',
185
                                          'intfc_port' => 'clk_i',
186
                                          'range' => '',
187
                                          'type' => 'input'
188
                                        },
189
                               'reset' => {
190
                                            'intfc_name' => 'plug:reset[0]',
191
                                            'intfc_port' => 'reset_i',
192
                                            'range' => '',
193
                                            'type' => 'input'
194
                                          },
195
                               'sa_ack_o' => {
196
                                               'intfc_port' => 'ack_o',
197
                                               'intfc_name' => 'plug:wb_slave[0]',
198
                                               'range' => '',
199
                                               'type' => 'output'
200
                                             },
201
                               'sa_addr_i' => {
202
                                                'intfc_port' => 'adr_i',
203
                                                'intfc_name' => 'plug:wb_slave[0]',
204
                                                'range' => 'Aw-1       :   0',
205
                                                'type' => 'input'
206
                                              },
207
                               'sa_stb_i' => {
208
                                               'intfc_name' => 'plug:wb_slave[0]',
209
                                               'intfc_port' => 'stb_i',
210
                                               'range' => '',
211
                                               'type' => 'input'
212
                                             }
213
                             },
214
                  'file_name' => '/home/alireza/Mywork/mpsoc/src_peripheral/timer/timer.v',
215
                  'sockets' => {},
216
                  'module_name' => 'timer',
217
                  'unused' => {
218
                                'plug:wb_slave[0]' => [
219
                                                        'cti_i',
220
                                                        'bte_i'
221
                                                      ]
222
                              },
223
                  'category' => 'Timer'
224
                }, 'ip_gen' );

powered by: WebSVN 2.1.0

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