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/] [GPIO/] [gpio.IP] - Diff between revs 34 and 38

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 34 Rev 38
#######################################################################
#######################################################################
##      File: gpio.IP
##      File: gpio.IP
##
##
##      Copyright (C) 2014-2016  Alireza Monemi
##      Copyright (C) 2014-2016  Alireza Monemi
##
##
##      This file is part of ProNoC 1.6.0
##      This file is part of ProNoC 1.8.0
##
##
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
##      MAY CAUSE UNEXPECTED BEHAIVOR.
##      MAY CAUSE UNEXPECTED BEHAIVOR.
################################################################################
################################################################################
 
 
$gpio = bless( {
$ipgen = bless( {
                 'file_name' => '/home/alireza/Mywork/mpsoc/src_peripheral/gpio/gpio.v',
 
                 'module_name' => 'gpio',
                 'module_name' => 'gpio',
 
                  'category' => 'GPIO',
 
                  'unused' => {
 
                                'plug:wb_slave[0]' => [
 
                                                        'cyc_i',
 
                                                        'bte_i',
 
                                                        'tag_i',
 
                                                        'cti_i'
 
                                                      ]
 
                              },
 
                  'hdl_files' => [
 
                                   '/mpsoc/src_peripheral/gpio/gpio.v'
 
                                 ],
 
                  'ip_name' => 'gpio',
 
                  'file_name' => '/home/alireza/Mywork/mpsoc/src_peripheral/gpio/gpio.v',
 
                  'version' => 1,
                 'modules' => {
                 'modules' => {
                                'gpo' => {},
                                'gpo' => {},
                                'gpi' => {},
                                 'gpio' => {},
                                'gpio' => {}
                                 'gpi' => {}
                              },
                              },
                 'gui_status' => {
                  'parameters' => {
                                   'status' => 'ideal',
                                    'Dw' => {
                                   'timeout' => 0
                                              'content' => '',
 
                                              'info' => undef,
 
                                              'redefine_param' => 1,
 
                                              'type' => 'Fixed',
 
                                              'global_param' => 'Localparam',
 
                                              'default' => 'PORT_WIDTH'
                                 },
                                 },
                 'sockets' => {},
                                    'PORT_WIDTH' => {
                 'category' => 'GPIO',
                                                      'redefine_param' => 1,
                 'ports' => {
                                                      'type' => 'Spin-button',
                              'sa_dat_o' => {
                                                      'content' => '1,32,1',
                                              'range' => 'Dw-1       :   0',
                                                      'info' => undef,
                                              'type' => 'output',
                                                      'default' => '1',
                                              'intfc_port' => 'dat_o',
                                                      'global_param' => 'Parameter'
                                              'intfc_name' => 'plug:wb_slave[0]'
 
                                            },
                                            },
                              'sa_dat_i' => {
                                    'SELw' => {
                                              'intfc_name' => 'plug:wb_slave[0]',
                                                'default' => '4',
                                              'range' => 'Dw-1       :   0',
                                                'global_param' => 'Localparam',
                                              'type' => 'input',
                                                'type' => 'Fixed',
                                              'intfc_port' => 'dat_i'
                                                'redefine_param' => 1,
 
                                                'info' => undef,
 
                                                'content' => ''
                                            },
                                            },
                              'sa_ack_o' => {
                                    'Aw' => {
                                              'intfc_name' => 'plug:wb_slave[0]',
                                              'type' => 'Fixed',
                                              'range' => '',
                                              'redefine_param' => 1,
                                              'type' => 'output',
                                              'info' => undef,
                                              'intfc_port' => 'ack_o'
                                              'content' => '',
 
                                              'global_param' => 'Localparam',
 
                                              'default' => '2'
 
                                            }
                                            },
                                            },
                              'sa_sel_i' => {
                  'description' => 'General purpose Wishbone bus-based input/output port',
 
                  'ports' => {
 
                               'sa_addr_i' => {
                                              'intfc_name' => 'plug:wb_slave[0]',
                                              'intfc_name' => 'plug:wb_slave[0]',
                                              'type' => 'input',
                                                'intfc_port' => 'adr_i',
                                              'range' => 'SELw-1     :   0',
                                                'range' => 'Aw-1       :   0',
                                              'intfc_port' => 'sel_i'
 
                                            },
 
                              'clk' => {
 
                                         'intfc_name' => 'plug:clk[0]',
 
                                         'intfc_port' => 'clk_i',
 
                                         'range' => '',
 
                                         'type' => 'input'
                                         'type' => 'input'
                                       },
                                       },
                              'sa_rty_o' => {
                               'sa_we_i' => {
 
                                              'intfc_port' => 'we_i',
                                              'intfc_name' => 'plug:wb_slave[0]',
                                              'intfc_name' => 'plug:wb_slave[0]',
                                              'intfc_port' => 'rty_o',
                                              'type' => 'input',
                                              'type' => 'output',
 
                                              'range' => ''
                                              'range' => ''
                                            },
                                            },
                              'reset' => {
                              'reset' => {
                                           'intfc_name' => 'plug:reset[0]',
 
                                           'range' => '',
                                           'range' => '',
                                           'type' => 'input',
                                           'type' => 'input',
                                           'intfc_port' => 'reset_i'
                                            'intfc_port' => 'reset_i',
                                         },
                                            'intfc_name' => 'plug:reset[0]'
                              'sa_stb_i' => {
 
                                              'intfc_port' => 'stb_i',
 
                                              'type' => 'input',
 
                                              'range' => '',
 
                                              'intfc_name' => 'plug:wb_slave[0]'
 
                                            },
                                            },
                              'port_io' => {
                              'port_io' => {
                                             'intfc_port' => 'IO',
 
                                             'type' => 'inout',
                                             'type' => 'inout',
                                             'range' => 'PORT_WIDTH-1     :   0',
                                             'range' => 'PORT_WIDTH-1     :   0',
 
                                              'intfc_port' => 'IO',
                                             'intfc_name' => 'IO'
                                             'intfc_name' => 'IO'
                                           },
                                           },
                              'sa_addr_i' => {
                               'sa_dat_o' => {
                                               'intfc_port' => 'adr_i',
                                               'range' => 'Dw-1       :   0',
 
                                               'type' => 'output',
 
                                               'intfc_name' => 'plug:wb_slave[0]',
 
                                               'intfc_port' => 'dat_o'
 
                                             },
 
                               'sa_dat_i' => {
                                               'type' => 'input',
                                               'type' => 'input',
                                               'range' => 'Aw-1       :   0',
                                               'range' => 'Dw-1       :   0',
 
                                               'intfc_port' => 'dat_i',
                                               'intfc_name' => 'plug:wb_slave[0]'
                                               'intfc_name' => 'plug:wb_slave[0]'
                                             },
                                             },
 
                               'sa_ack_o' => {
 
                                               'intfc_name' => 'plug:wb_slave[0]',
 
                                               'intfc_port' => 'ack_o',
 
                                               'range' => '',
 
                                               'type' => 'output'
 
                                             },
                              'sa_err_o' => {
                              'sa_err_o' => {
 
                                               'intfc_port' => 'err_o',
 
                                               'intfc_name' => 'plug:wb_slave[0]',
                                              'type' => 'output',
                                              'type' => 'output',
 
                                               'range' => ''
 
                                             },
 
                               'sa_stb_i' => {
                                              'range' => '',
                                              'range' => '',
                                              'intfc_port' => 'err_o',
                                               'type' => 'input',
 
                                               'intfc_port' => 'stb_i',
                                              'intfc_name' => 'plug:wb_slave[0]'
                                              'intfc_name' => 'plug:wb_slave[0]'
                                            },
                                            },
                              'sa_we_i' => {
                               'sa_sel_i' => {
                                             'intfc_port' => 'we_i',
                                               'range' => 'SELw-1     :   0',
 
                                               'type' => 'input',
 
                                               'intfc_name' => 'plug:wb_slave[0]',
 
                                               'intfc_port' => 'sel_i'
 
                                             },
 
                               'clk' => {
 
                                          'intfc_port' => 'clk_i',
 
                                          'intfc_name' => 'plug:clk[0]',
                                             'type' => 'input',
                                             'type' => 'input',
 
                                          'range' => ''
 
                                        },
 
                               'sa_rty_o' => {
 
                                               'intfc_port' => 'rty_o',
 
                                               'intfc_name' => 'plug:wb_slave[0]',
                                             'range' => '',
                                             'range' => '',
                                             'intfc_name' => 'plug:wb_slave[0]'
                                               'type' => 'output'
                                           }
                                           }
                            },
                            },
 
                  'system_h' => '#define ${IP}_DIR_REG   (*((volatile unsigned int *) ($BASE)))
 
#define ${IP}_WRITE_REG  (*((volatile unsigned int *) ($BASE+4)))
 
#define ${IP}_READ_REG   (*((volatile unsigned int *) ($BASE+8)))
 
 
 
 #define ${IP}_DIR_SET(value)   ${IP}_DIR_REG=value
 
#define ${IP}_WRITE(value)  ${IP}_WRITE _REG=value
 
#define ${IP}_READ()     ${IP}_READ_REG ',
 
                  'sockets' => {},
 
                  'parameters_order' => [
 
                                          'PORT_WIDTH',
 
                                          'Dw',
 
                                          'Aw',
 
                                          'SELw',
 
                                          'Dw'
 
                                        ],
                 'plugs' => {
                 'plugs' => {
                              'reset' => {
                               'clk' => {
                                           'type' => 'num',
                                           'type' => 'num',
                                           'value' => 1,
                                           'value' => 1,
 
                                          '0' => {
 
                                                   'name' => 'clk'
 
                                                 },
 
                                          'clk' => {}
 
                                        },
 
                               'reset' => {
 
                                            'type' => 'num',
                                           'reset' => {},
                                           'reset' => {},
 
                                            'value' => 1,
                                           '0' => {
                                           '0' => {
                                                    'name' => 'reset'
                                                     'name' => 'reset'
                                                  }
                                                   }
                                         },
                                          },
                              'wb_slave' => {
                              'wb_slave' => {
                                              'value' => 1,
 
                                              'type' => 'num',
 
                                              '0' => {
                                              '0' => {
                                                       'width' => 5,
                                                       'width' => 5,
                                                       'name' => 'wb',
                                                        'addr' => '0x9100_0000  0x91ff_ffff             General-Purpose I/O',
                                                       'addr' => '0x9100_0000   0x91ff_ffff             General-Purpose I/O'
                                                        'name' => 'wb'
                                                     },
                                                     },
                                              'wb_slave' => {}
 
                                            },
 
                              'clk' => {
 
                                         'type' => 'num',
                                         'type' => 'num',
                                         'clk' => {},
 
                                         'value' => 1,
                                         'value' => 1,
                                         '0' => {
                                               'wb_slave' => {}
                                                  'name' => 'clk'
 
                                                }
 
                                       }
                                       }
                            },
                            },
                 'description' => 'General inout port',
                  'gui_status' => {
                 'parameters' => {
                                    'status' => 'ideal',
                                   'Dw' => {
                                    'timeout' => 0
                                             'global_param' => 'Localparam',
 
                                             'info' => undef,
 
                                             'content' => '',
 
                                             'deafult' => 'PORT_WIDTH',
 
                                             'type' => 'Fixed',
 
                                             'redefine_param' => 1
 
                                           },
 
                                   'SELw' => {
 
                                               'global_param' => 'Localparam',
 
                                               'info' => undef,
 
                                               'deafult' => '4',
 
                                               'content' => '',
 
                                               'redefine_param' => 1,
 
                                               'type' => 'Fixed'
 
                                             },
 
                                   'PORT_WIDTH' => {
 
                                                     'info' => undef,
 
                                                     'global_param' => 'Parameter',
 
                                                     'redefine_param' => 1,
 
                                                     'type' => 'Spin-button',
 
                                                     'content' => '1,32,1',
 
                                                     'deafult' => '1'
 
                                                   },
 
                                   'Aw' => {
 
                                             'deafult' => '2',
 
                                             'content' => '',
 
                                             'type' => 'Fixed',
 
                                             'redefine_param' => 1,
 
                                             'info' => undef,
 
                                             'global_param' => 'Localparam'
 
                                           }
                                           }
                                 },
 
                 'system_h' => '#define ${IP}_DIR_REG   (*((volatile unsigned int *) ($BASE)))
 
#define ${IP}_WRITE_REG  (*((volatile unsigned int *) ($BASE+4)))
 
#define ${IP}_READ_REG   (*((volatile unsigned int *) ($BASE+8)))
 
 
 
 #define ${IP}_DIR_SET(value)   ${IP}_DIR_REG=value
 
#define ${IP}_WRITE(value)  ${IP}_WRITE _REG=value
 
#define ${IP}_READ()     ${IP}_READ_REG ',
 
                 'hdl_files' => [
 
                                  '/mpsoc/src_peripheral/gpio/gpio.v'
 
                                ],
 
                 'ip_name' => 'gpio',
 
                 'unused' => {
 
                               'plug:wb_slave[0]' => [
 
                                                       'tag_i',
 
                                                       'cyc_i',
 
                                                       'bte_i',
 
                                                       'cti_i'
 
                                                     ]
 
                             },
 
                 'parameters_order' => [
 
                                         'PORT_WIDTH',
 
                                         'Dw',
 
                                         'Aw',
 
                                         'SELw',
 
                                         'Dw'
 
                                       ]
 
               }, 'ip_gen' );
               }, 'ip_gen' );
 
 

powered by: WebSVN 2.1.0

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