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/] [sim_uart.IP] - Blame information for rev 38

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

Line No. Rev Author Line
1 34 alirezamon
#######################################################################
2
##      File: sim_uart.IP
3
##
4
##      Copyright (C) 2014-2016  Alireza Monemi
5
##
6
##      This file is part of ProNoC 1.7.0
7
##
8
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
9
##      MAY CAUSE UNEXPECTED BEHAIVOR.
10
################################################################################
11
 
12
$simulator_UART = bless( {
13 38 alirezamon
                           'module_name' => 'simulator_UART',
14
                           'system_h' => '#define ${IP}_DATA_REG                                        (*((volatile unsigned int *) ($BASE)))
15
 
16
void ${IP}_putchar(char ch){ //print one char from jtag_uart
17
        ${IP}_DATA_REG=ch;
18
}
19
 
20
 
21
void ${IP}_putstring (char * buffer, char sz){
22
        while (sz){
23
                ${IP}_putchar(*buffer);
24
                buffer++;
25
                sz--;
26
        }
27
}
28
',
29
                           'description' => 'A simple uart that display input characters on simulator terminal using $write command.
30
',
31
                           'ports_order' => [
32
                                              'reset',
33
                                              'clk',
34
                                              's_dat_i',
35
                                              's_sel_i',
36
                                              's_addr_i',
37
                                              's_cti_i',
38
                                              's_stb_i',
39
                                              's_cyc_i',
40
                                              's_we_i',
41
                                              's_dat_o',
42
                                              's_ack_o'
43
                                            ],
44 34 alirezamon
                           'file_name' => '/home/alireza/mywork/mpsoc/src_peripheral/Other/simulator_UART.v',
45 38 alirezamon
                           'version' => 7,
46
                           'unused' => {
47
                                         'plug:wb_slave[0]' => [
48
                                                                 'bte_i',
49
                                                                 'rty_o',
50
                                                                 'tag_i',
51
                                                                 'err_o'
52
                                                               ]
53
                                       },
54 34 alirezamon
                           'modules' => {
55
                                          'simulator_UART' => {}
56
                                        },
57 38 alirezamon
                           'parameters' => {
58
                                             'S_Aw' => {
59
                                                         'content' => '',
60
                                                         'type' => 'Fixed',
61
                                                         'info' => 'Parameter',
62
                                                         'global_param' => 'Localparam',
63
                                                         'redefine_param' => 1,
64
                                                         'default' => '   7'
65
                                                       },
66
                                             'M_Aw' => {
67
                                                         'redefine_param' => 1,
68
                                                         'info' => 'Parameter',
69
                                                         'global_param' => 'Localparam',
70
                                                         'default' => '   32',
71
                                                         'type' => 'Fixed',
72
                                                         'content' => ''
73
                                                       },
74
                                             'BUFFER_SIZE' => {
75
                                                                'default' => '100',
76
                                                                'info' => 'Internal buffer size ',
77
                                                                'global_param' => 'Localparam',
78
                                                                'redefine_param' => 1,
79
                                                                'content' => '2,1000,1',
80
                                                                'type' => 'Spin-button'
81
                                                              },
82
                                             'Dw' => {
83
                                                       'default' => '   32',
84
                                                       'redefine_param' => 1,
85
                                                       'info' => 'Parameter',
86
                                                       'global_param' => 'Localparam',
87
                                                       'type' => 'Fixed',
88
                                                       'content' => ''
89
                                                     },
90
                                             'WAIT_COUNT' => {
91
                                                               'type' => 'Spin-button',
92
                                                               'content' => '2,100000,1',
93
                                                               'redefine_param' => 1,
94
                                                               'info' => 'If internal buffer has a data, the internal module timer starts counting up in each clock cycle. If Timer reach the WAIT_COUNT value, it writes the buffer vakue on simulator terminal.',
95
                                                               'global_param' => 'Localparam',
96
                                                               'default' => '1000'
97
                                                             },
98
                                             'TAGw' => {
99
                                                         'type' => 'Fixed',
100
                                                         'content' => '',
101
                                                         'redefine_param' => 1,
102
                                                         'global_param' => 'Localparam',
103
                                                         'info' => 'Parameter',
104
                                                         'default' => '   3'
105
                                                       },
106
                                             'SELw' => {
107
                                                         'type' => 'Fixed',
108
                                                         'content' => '',
109
                                                         'default' => '   4',
110
                                                         'redefine_param' => 1,
111
                                                         'global_param' => 'Localparam',
112
                                                         'info' => 'Parameter'
113
                                                       }
114
                                           },
115
                           'category' => 'Other',
116 34 alirezamon
                           'ports' => {
117 38 alirezamon
                                        's_cti_i' => {
118 34 alirezamon
                                                       'intfc_name' => 'plug:wb_slave[0]',
119
                                                       'type' => 'input',
120 38 alirezamon
                                                       'intfc_port' => 'cti_i',
121
                                                       'range' => 'TAGw-1     :   0'
122 34 alirezamon
                                                     },
123
                                        's_sel_i' => {
124 38 alirezamon
                                                       'intfc_name' => 'plug:wb_slave[0]',
125
                                                       'range' => 'SELw-1     :   0',
126 34 alirezamon
                                                       'intfc_port' => 'sel_i',
127 38 alirezamon
                                                       'type' => 'input'
128
                                                     },
129
                                        's_addr_i' => {
130
                                                        'range' => 'S_Aw-1     :   0',
131
                                                        'type' => 'input',
132
                                                        'intfc_port' => 'adr_i',
133
                                                        'intfc_name' => 'plug:wb_slave[0]'
134
                                                      },
135
                                        's_dat_o' => {
136
                                                       'range' => 'Dw-1       :   0',
137
                                                       'intfc_port' => 'dat_o',
138
                                                       'type' => 'output',
139
                                                       'intfc_name' => 'plug:wb_slave[0]'
140
                                                     },
141
                                        'clk' => {
142
                                                   'type' => 'input',
143
                                                   'intfc_port' => 'clk_i',
144
                                                   'range' => '',
145
                                                   'intfc_name' => 'plug:clk[0]'
146
                                                 },
147
                                        's_we_i' => {
148
                                                      'intfc_name' => 'plug:wb_slave[0]',
149
                                                      'intfc_port' => 'we_i',
150
                                                      'type' => 'input',
151
                                                      'range' => ''
152
                                                    },
153
                                        's_dat_i' => {
154
                                                       'intfc_port' => 'dat_i',
155 34 alirezamon
                                                       'type' => 'input',
156 38 alirezamon
                                                       'range' => 'Dw-1       :   0',
157
                                                       'intfc_name' => 'plug:wb_slave[0]'
158 34 alirezamon
                                                     },
159
                                        'reset' => {
160 38 alirezamon
                                                     'type' => 'input',
161
                                                     'intfc_port' => 'reset_i',
162 34 alirezamon
                                                     'range' => '',
163 38 alirezamon
                                                     'intfc_name' => 'plug:reset[0]'
164 34 alirezamon
                                                   },
165 38 alirezamon
                                        's_stb_i' => {
166 34 alirezamon
                                                       'type' => 'input',
167 38 alirezamon
                                                       'intfc_port' => 'stb_i',
168
                                                       'range' => '',
169
                                                       'intfc_name' => 'plug:wb_slave[0]'
170 34 alirezamon
                                                     },
171 38 alirezamon
                                        's_cyc_i' => {
172 34 alirezamon
                                                       'intfc_name' => 'plug:wb_slave[0]',
173 38 alirezamon
                                                       'range' => '',
174
                                                       'intfc_port' => 'cyc_i',
175
                                                       'type' => 'input'
176 34 alirezamon
                                                     },
177
                                        's_ack_o' => {
178 38 alirezamon
                                                       'intfc_name' => 'plug:wb_slave[0]',
179 34 alirezamon
                                                       'intfc_port' => 'ack_o',
180
                                                       'type' => 'output',
181 38 alirezamon
                                                       'range' => ''
182
                                                     }
183 34 alirezamon
                                      },
184
                           'parameters_order' => [
185
                                                   'Dw',
186
                                                   'S_Aw',
187
                                                   'M_Aw',
188
                                                   'TAGw',
189
                                                   'SELw',
190
                                                   'BUFFER_SIZE',
191
                                                   'WAIT_COUNT'
192
                                                 ],
193 38 alirezamon
                           'gui_status' => {
194
                                             'timeout' => 0,
195
                                             'status' => 'ideal'
196
                                           },
197
                           'ip_name' => 'sim_uart',
198
                           'hdl_files' => [
199
                                            '/mpsoc/src_peripheral/Other/simulator_UART.v'
200
                                          ],
201 34 alirezamon
                           'plugs' => {
202
                                        'clk' => {
203
                                                   'clk' => {},
204
                                                   '0' => {
205
                                                            'name' => 'clk'
206
                                                          },
207 38 alirezamon
                                                   'value' => 1,
208
                                                   'type' => 'num'
209 34 alirezamon
                                                 },
210
                                        'wb_slave' => {
211
                                                        'type' => 'num',
212 38 alirezamon
                                                        'value' => 1,
213 34 alirezamon
                                                        '0' => {
214 38 alirezamon
                                                                 'addr' => '0xa500_0000 0xa5ff_ffff             Debug',
215 34 alirezamon
                                                                 'width' => 1,
216 38 alirezamon
                                                                 'name' => 'wb_slave'
217 34 alirezamon
                                                               },
218 38 alirezamon
                                                        'wb_slave' => {}
219
                                                      },
220
                                        'reset' => {
221
                                                     'type' => 'num',
222
                                                     '0' => {
223
                                                              'name' => 'reset'
224
                                                            },
225
                                                     'value' => 1,
226
                                                     'reset' => {}
227
                                                   }
228
                                      }
229 34 alirezamon
                         }, 'ip_gen' );

powered by: WebSVN 2.1.0

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