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/] [Other/] [gcd.IP] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 alirezamon
#######################################################################
2
##      File: gcd.IP
3
##
4 48 alirezamon
##      Copyright (C) 2014-2019  Alireza Monemi
5 43 alirezamon
##
6 48 alirezamon
##      This file is part of ProNoC 1.9.1
7 43 alirezamon
##
8
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
9 48 alirezamon
##      MAY CAUSE UNEXPECTED BEHAVIOR.
10 43 alirezamon
################################################################################
11
 
12
$ipgen = bless( {
13 48 alirezamon
                  'system_h' => '#define ${IP}_DONE_ADDR (*((volatile unsigned int *) ($BASE)))
14
#define ${IP}_IN_1_ADDR (*((volatile unsigned int *) ($BASE+4)))
15
#define ${IP}_IN_2_ADDR (*((volatile unsigned int *) ($BASE+8)))
16
#define ${IP}_GCD_ADDR (*((volatile unsigned int *) ($BASE+12)))
17
 
18
 
19
#define ${IP}_IN1_WRITE(value) ${IP}_IN_1_ADDR=value
20
#define ${IP}_IN2_WRITE(value) ${IP}_IN_2_ADDR=value
21
#define ${IP}_DONE_READ() ${IP}_DONE_ADDR
22
#define ${IP}_READ() ${IP}_GCD_ADDR
23
 
24
unsigned int gcd_hardware ( unsigned int p, unsigned int q );',
25
                  'system_c' => 'unsigned int gcd_hardware ( unsigned int p, unsigned int q ){
26
        ${IP}_IN1_WRITE(p);
27
        ${IP}_IN2_WRITE(q);
28
        while (${IP}_DONE_READ()!=1);
29
        return ${IP}_READ();
30
}',
31 43 alirezamon
                  'ports' => {
32 48 alirezamon
                               's_cyc_i' => {
33
                                              'intfc_name' => 'plug:wb_slave[0]',
34
                                              'intfc_port' => 'cyc_i',
35 43 alirezamon
                                              'type' => 'input',
36 48 alirezamon
                                              'range' => ''
37 43 alirezamon
                                            },
38 48 alirezamon
                               's_dat_o' => {
39
                                              'range' => 'Dw-1       :   0',
40
                                              'intfc_name' => 'plug:wb_slave[0]',
41
                                              'intfc_port' => 'dat_o',
42
                                              'type' => 'output'
43
                                            },
44 43 alirezamon
                               's_stb_i' => {
45 48 alirezamon
                                              'intfc_port' => 'stb_i',
46 43 alirezamon
                                              'intfc_name' => 'plug:wb_slave[0]',
47
                                              'type' => 'input',
48 48 alirezamon
                                              'range' => ''
49 43 alirezamon
                                            },
50
                               's_dat_i' => {
51 48 alirezamon
                                              'range' => 'Dw-1       :   0',
52
                                              'intfc_name' => 'plug:wb_slave[0]',
53 43 alirezamon
                                              'intfc_port' => 'dat_i',
54 48 alirezamon
                                              'type' => 'input'
55 43 alirezamon
                                            },
56 48 alirezamon
                               's_rty_o' => {
57
                                              'range' => '',
58
                                              'intfc_port' => 'rty_o',
59 43 alirezamon
                                              'intfc_name' => 'plug:wb_slave[0]',
60 48 alirezamon
                                              'type' => 'output'
61 43 alirezamon
                                            },
62 48 alirezamon
                               'clk' => {
63
                                          'range' => '',
64
                                          'type' => 'input',
65
                                          'intfc_name' => 'plug:clk[0]',
66
                                          'intfc_port' => 'clk_i'
67
                                        },
68 43 alirezamon
                               's_sel_i' => {
69 48 alirezamon
                                              'type' => 'input',
70
                                              'intfc_name' => 'plug:wb_slave[0]',
71 43 alirezamon
                                              'intfc_port' => 'sel_i',
72 48 alirezamon
                                              'range' => 'SELw-1     :   0'
73 43 alirezamon
                                            },
74 48 alirezamon
                               's_ack_o' => {
75 43 alirezamon
                                              'range' => '',
76
                                              'type' => 'output',
77 48 alirezamon
                                              'intfc_port' => 'ack_o',
78 43 alirezamon
                                              'intfc_name' => 'plug:wb_slave[0]'
79
                                            },
80 48 alirezamon
                               's_we_i' => {
81
                                             'range' => '',
82
                                             'intfc_port' => 'we_i',
83
                                             'intfc_name' => 'plug:wb_slave[0]',
84
                                             'type' => 'input'
85
                                           },
86 43 alirezamon
                               'reset' => {
87 48 alirezamon
                                            'range' => '',
88 43 alirezamon
                                            'type' => 'input',
89
                                            'intfc_name' => 'plug:reset[0]',
90
                                            'intfc_port' => 'reset_i'
91
                                          },
92 48 alirezamon
                               's_tag_i' => {
93
                                              'intfc_port' => 'tag_i',
94
                                              'intfc_name' => 'plug:wb_slave[0]',
95
                                              'type' => 'input',
96
                                              'range' => 'TAGw-1     :   0'
97
                                            },
98 43 alirezamon
                               's_addr_i' => {
99 48 alirezamon
                                               'intfc_name' => 'plug:wb_slave[0]',
100 43 alirezamon
                                               'intfc_port' => 'adr_i',
101
                                               'type' => 'input',
102
                                               'range' => 'Aw-1       :   0'
103
                                             },
104
                               's_err_o' => {
105
                                              'type' => 'output',
106
                                              'intfc_name' => 'plug:wb_slave[0]',
107 48 alirezamon
                                              'intfc_port' => 'err_o',
108
                                              'range' => ''
109 43 alirezamon
                                            }
110
                             },
111
                  'ip_name' => 'gcd',
112 48 alirezamon
                  'unused' => {
113
                                'plug:wb_slave[0]' => [
114
                                                        'cti_i',
115
                                                        'bte_i'
116
                                                      ]
117
                              },
118
                  'version' => 4,
119
                  'module_name' => 'gcd_ip',
120 43 alirezamon
                  'plugs' => {
121
                               'clk' => {
122 48 alirezamon
                                          'value' => 1,
123 43 alirezamon
                                          '0' => {
124
                                                   'name' => 'clk'
125
                                                 },
126 48 alirezamon
                                          'type' => 'num'
127 43 alirezamon
                                        },
128
                               'wb_slave' => {
129 48 alirezamon
                                               'value' => 1,
130 43 alirezamon
                                               'type' => 'num',
131
                                               '0' => {
132 48 alirezamon
                                                        'name' => 'wb_slave',
133 43 alirezamon
                                                        'width' => 5,
134 48 alirezamon
                                                        'addr' => '0xb800_0000  0xbfff_ffff             custom devices'
135 43 alirezamon
                                                      }
136
                                             },
137
                               'reset' => {
138
                                            'type' => 'num',
139
                                            '0' => {
140
                                                     'name' => 'reset'
141 48 alirezamon
                                                   },
142
                                            'value' => 1
143 43 alirezamon
                                          }
144
                             },
145 48 alirezamon
                  'file_name' => '/home/alireza/mywork/workshop/files/gcd_ip.v',
146 43 alirezamon
                  'ports_order' => [
147
                                     'clk',
148
                                     'reset',
149
                                     's_dat_i',
150
                                     's_sel_i',
151
                                     's_addr_i',
152
                                     's_tag_i',
153
                                     's_stb_i',
154
                                     's_cyc_i',
155
                                     's_we_i',
156
                                     's_dat_o',
157
                                     's_ack_o',
158
                                     's_err_o',
159
                                     's_rty_o'
160
                                   ],
161 48 alirezamon
                  'parameters_order' => [
162
                                          'GCDw',
163
                                          'Dw',
164
                                          'Aw',
165
                                          'TAGw',
166
                                          'SELw'
167
                                        ],
168
                  'hdl_files_ticked' => [],
169
                  'parameters' => {
170
                                    'Aw' => {
171
                                              'global_param' => 'Localparam',
172
                                              'default' => '5',
173
                                              'content' => '',
174
                                              'redefine_param' => 1,
175
                                              'type' => 'Fixed',
176
                                              'info' => 'Parameter'
177
                                            },
178
                                    'Dw' => {
179
                                              'info' => 'Parameter',
180
                                              'content' => '',
181
                                              'redefine_param' => 1,
182
                                              'type' => 'Fixed',
183
                                              'global_param' => 'Localparam',
184
                                              'default' => 'GCDw'
185
                                            },
186
                                    'GCDw' => {
187
                                                'info' => 'GCD\'s Input/output width in bits',
188
                                                'global_param' => 'Parameter',
189
                                                'default' => '32',
190
                                                'content' => '8,16,32',
191
                                                'redefine_param' => 1,
192
                                                'type' => 'Combo-box'
193
                                              },
194
                                    'SELw' => {
195
                                                'info' => 'Parameter',
196
                                                'global_param' => 'Localparam',
197
                                                'default' => '4',
198
                                                'redefine_param' => 1,
199
                                                'content' => '',
200
                                                'type' => 'Fixed'
201
                                              },
202
                                    'TAGw' => {
203
                                                'info' => 'Parameter',
204
                                                'type' => 'Fixed',
205
                                                'content' => '',
206
                                                'redefine_param' => 1,
207
                                                'default' => '3',
208
                                                'global_param' => 'Localparam'
209
                                              }
210
                                  },
211
                  'category' => 'Other',
212
                  'description' => 'gcd module',
213 43 alirezamon
                  'hdl_files' => [
214 48 alirezamon
                                   '/mpsoc/rtl/src_peripheral/Other/gcd_ip.v',
215
                                   '/mpsoc/rtl/src_peripheral/Other/gcd.v'
216 43 alirezamon
                                 ],
217 48 alirezamon
                  'modules' => {
218
                                 'gcd_ip' => {}
219
                               },
220
                  'gui_status' => {
221
                                    'status' => 'ideal',
222
                                    'timeout' => 0
223
                                  }
224 43 alirezamon
                }, 'ip_gen' );

powered by: WebSVN 2.1.0

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