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 38 and 48

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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