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/] [NoC/] [ni_master.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: ni_master.IP
##      File: ni_master.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.
################################################################################
################################################################################
 
 
$ni_master = bless( {
$ipgen = bless( {
 
                  'description' => '',
 
                  'file_name' => '/home/alireza/mywork/mpsoc/src_peripheral/ni/ni_master.v',
                      'plugs' => {
                      'plugs' => {
 
                               'wb_master' => {
 
                                                'value' => 2,
 
                                                '1' => {
 
                                                         'name' => 'wb_receive'
 
                                                       },
 
                                                'wb_master' => {},
 
                                                '0' => {
 
                                                         'name' => 'wb_send'
 
                                                       },
 
                                                'type' => 'num'
 
                                              },
                                   'interrupt_peripheral' => {
                                   'interrupt_peripheral' => {
                                                               'type' => 'num',
 
                                                               'value' => 1,
                                                               'value' => 1,
 
                                                           'interrupt_peripheral' => {},
 
                                                           'type' => 'num',
                                                               '0' => {
                                                               '0' => {
                                                                        'name' => 'interrupt'
                                                                        'name' => 'interrupt'
                                                                      },
                                                                  }
                                                               'interrupt_peripheral' => {}
 
                                                             },
                                                             },
                                   'wb_slave' => {
                               'wb_slave' => {
                                                   'wb_slave' => {},
                                                   'wb_slave' => {},
                                                   'type' => 'num',
 
                                                   'value' => 1,
                                                   'value' => 1,
                                                   '0' => {
                                                   '0' => {
                                                            'addr' => '0xb800_0000      0xbfff_ffff             custom devices',
 
                                                            'name' => 'wb_slave',
                                                            'name' => 'wb_slave',
                                                            'width' => 10
                                                        'width' => 10,
                                                          }
                                                        'addr' => '0xb800_0000  0xbfff_ffff             custom devices'
                                                 },
 
                                   'reset' => {
 
                                                'reset' => {},
 
                                                '0' => {
 
                                                         'name' => 'reset'
 
                                                       },
                                                       },
                                                'type' => 'num',
                                               'type' => 'num'
                                                'value' => 1
 
                                              },
                                              },
                                   'clk' => {
                                   'clk' => {
                                              'clk' => {},
                                          'value' => 1,
                                              '0' => {
                                              '0' => {
                                                       'name' => 'clk'
                                                   'name' => 'clk'
                                                     },
                                                     },
                                              'value' => 1,
 
                                              'type' => 'num'
 
                                            },
 
                                   'wb_master' => {
 
                                                    '1' => {
 
                                                             'name' => 'wb_receive'
 
                                                           },
 
                                                    'type' => 'num',
                                                    'type' => 'num',
                                                    'wb_master' => {},
                                          'clk' => {}
                                                    'value' => 2,
 
                                                    '0' => {
 
                                                             'name' => 'wb_send'
 
                                                           }
 
                                                  }
 
                                 },
                                 },
                      'sockets' => {
                               'reset' => {
                                     'ni' => {
 
                                               'connection_num' => 'single connection',
 
                                               'value' => 1,
 
                                               'type' => 'num',
                                               'type' => 'num',
                                               'ni' => {},
 
                                               '0' => {
                                               '0' => {
                                                        'name' => 'ni'
                                                     'name' => 'reset'
                                                      }
                                                   },
 
                                            'reset' => {},
 
                                            'value' => 1
                                             }
                                             }
                                   },
                                   },
                      'unused' => {
                  'ports_order' => [
                                    'plug:wb_master[1]' => [
                                     'reset',
                                                             'bte_o',
                                     'clk',
                                                             'dat_i',
                                     'current_x',
                                                             'err_i',
                                     'current_y',
                                                             'tag_o',
                                     'flit_out',
                                                             'rty_i'
                                     'flit_out_wr',
                                                           ],
                                     'credit_in',
                                    'plug:wb_slave[0]' => [
                                     'flit_in',
                                                            'tag_i',
                                     'flit_in_wr',
                                                            'err_o',
                                     'credit_out',
                                                            'rty_o',
                                     's_dat_i',
                                                            'bte_i'
                                     's_sel_i',
 
                                     's_addr_i',
 
                                     's_cti_i',
 
                                     's_stb_i',
 
                                     's_cyc_i',
 
                                     's_we_i',
 
                                     's_dat_o',
 
                                     's_ack_o',
 
                                     'm_send_sel_o',
 
                                     'm_send_addr_o',
 
                                     'm_send_cti_o',
 
                                     'm_send_stb_o',
 
                                     'm_send_cyc_o',
 
                                     'm_send_we_o',
 
                                     'm_send_dat_i',
 
                                     'm_send_ack_i',
 
                                     'm_receive_sel_o',
 
                                     'm_receive_dat_o',
 
                                     'm_receive_addr_o',
 
                                     'm_receive_cti_o',
 
                                     'm_receive_stb_o',
 
                                     'm_receive_cyc_o',
 
                                     'm_receive_we_o',
 
                                     'm_receive_ack_i',
 
                                     'irq'
                                                          ],
                                                          ],
                                    'plug:wb_master[0]' => [
 
                                                             'bte_o',
 
                                                             'err_i',
 
                                                             'tag_o',
 
                                                             'dat_o',
 
                                                             'rty_i'
 
                                                           ]
 
                                  },
 
                      'ip_name' => 'ni_master',
 
                      'description' => '',
 
                      'hdl_files' => [
                      'hdl_files' => [
                                       '/mpsoc/src_noc/arbiter.v',
                                   '/mpsoc/src_noc/arbiter.v',
                                       '/mpsoc/src_noc/flit_buffer.v',
                                   '/mpsoc/src_noc/flit_buffer.v',
                                       '/mpsoc/src_noc/input_ports.v',
                                   '/mpsoc/src_noc/input_ports.v',
                                       '/mpsoc/src_noc/main_comp.v',
                                   '/mpsoc/src_noc/main_comp.v',
                                       '/mpsoc/src_noc/route_mesh.v',
                                   '/mpsoc/src_noc/route_mesh.v',
                                       '/mpsoc/src_noc/route_torus.v',
                                   '/mpsoc/src_noc/route_torus.v',
                                       '/mpsoc/src_noc/routing.v',
                                   '/mpsoc/src_noc/routing.v',
                                       '/mpsoc/src_peripheral/ni/ni_vc_dma.v',
                                   '/mpsoc/src_peripheral/ni/ni_vc_dma.v',
                                       '/mpsoc/src_peripheral/ni/ni_vc_wb_slave_regs.v',
                                   '/mpsoc/src_peripheral/ni/ni_vc_wb_slave_regs.v',
                                       '/mpsoc/src_peripheral/ni/ni_master.v',
                                   '/mpsoc/src_peripheral/ni/ni_master.v',
                                       '/mpsoc/src_peripheral/ni/ni_crc32.v'
                                   '/mpsoc/src_peripheral/ni/ni_crc32.v'
                                     ],
                                 ],
                      'parameters' => {
                      'parameters' => {
                                        'B' => {
                                    'TOPOLOGY' => {
 
                                                    'default' => '"MESH"',
 
                                                    'redefine_param' => 1,
 
                                                    'info' => 'Parameter',
                                                 'global_param' => 'Parameter',
                                                 'global_param' => 'Parameter',
                                                 'type' => 'Fixed',
                                                 'type' => 'Fixed',
                                                 'content' => '',
                                                    'content' => ''
                                                 'deafult' => ' 4',
 
                                                 'redefine_param' => 1,
 
                                                 'info' => 'Parameter'
 
                                               },
                                               },
                                        'CRC_EN' => {
                                    'MAX_BURST_SIZE' => {
                                                      'redefine_param' => 1,
                                                          'content' => '2,4,8,16,32,64,128,256,512,1024,2048',
                                                      'deafult' => '"NO"',
                                                          'type' => 'Combo-box',
                                                      'content' => '"YES","NO"',
                                                          'info' => 'Maximum burst size in words.
                                                      'info' => 'The parameter can be selected as "YES" or "NO".
The NI release wishbone bus  each time one burst is completed or when the VC\'s internal FIFO becomes full.  The bus will be released for one clock cycle. Then in case, there are other active VCs, another active VC will get access to the bus using round robin arbiter.  This process will be continued until all desired data is transferred. ',
If CRC is enabled, then two CRC32 generator modules will be added to the NI. One CRC generator for calculating CRC of sending packets and another for receiving packets.   The CRC32 value of each packet is send via tail flit and at destination NI, is will be compared with received packet generated CRC32. The matching results can be used for error-detection and can be read via NI slave interface. ',
 
                                                      'global_param' => 'Localparam',
                                                      'global_param' => 'Localparam',
                                                      'type' => 'Combo-box'
                                                          'redefine_param' => 1,
                                                    },
                                                          'default' => '16'
                                        'DEBUG_EN' => {
 
                                                        'type' => 'Fixed',
 
                                                        'global_param' => 'Parameter',
 
                                                        'info' => 'Parameter',
 
                                                        'deafult' => ' 1',
 
                                                        'content' => '',
 
                                                        'redefine_param' => 1
 
                                                      },
                                                      },
                                        'Yw' => {
                                    'ROUTING_HDR_WIDTH' => {
                                                  'info' => undef,
 
                                                  'redefine_param' => 0,
 
                                                  'content' => '',
                                                  'content' => '',
                                                  'deafult' => 'log2(NY)',
                                                             'info' => 'Parameter',
                                                  'type' => 'Fixed',
                                                  'type' => 'Fixed',
                                                  'global_param' => 'Localparam'
                                                             'global_param' => 'Localparam',
 
                                                             'redefine_param' => 1,
 
                                                             'default' => '8'
                                                },
                                                },
                                        'NY' => {
                                    'CLASS_HDR_WIDTH' => {
                                                  'info' => 'Parameter',
 
                                                  'redefine_param' => 1,
                                                  'redefine_param' => 1,
                                                  'deafult' => ' 4',
                                                           'default' => '8',
                                                  'content' => '',
                                                  'content' => '',
                                                  'type' => 'Fixed',
                                                  'type' => 'Fixed',
                                                  'global_param' => 'Parameter'
 
                                                },
 
                                        'C' => {
 
                                                 'type' => 'Fixed',
 
                                                 'global_param' => 'Parameter',
 
                                                 'info' => 'Parameter',
                                                 'info' => 'Parameter',
                                                 'content' => '',
                                                           'global_param' => 'Localparam'
                                                 'deafult' => ' 4',
 
                                                 'redefine_param' => 1
 
                                               },
                                               },
                                        'SELw' => {
                                    'S_Aw' => {
 
                                                'content' => '',
                                                    'global_param' => 'Localparam',
                                                    'global_param' => 'Localparam',
 
                                                'info' => 'Parameter',
                                                    'type' => 'Fixed',
                                                    'type' => 'Fixed',
                                                    'redefine_param' => 1,
                                                    'redefine_param' => 1,
                                                    'content' => '',
                                                'default' => '8'
                                                    'deafult' => '4',
 
                                                    'info' => 'Parameter'
 
                                                  },
                                                  },
                                        'Fpay' => {
                                    'ROUTE_TYPE' => {
                                                    'redefine_param' => 1,
                                                    'redefine_param' => 1,
                                                    'deafult' => ' 32',
                                                      'default' => '   ',
                                                    'content' => '',
                                                    'content' => '',
                                                    'info' => 'Parameter',
                                                      'info' => 'Parameter',
                                                    'global_param' => 'Parameter',
                                                      'global_param' => 'Parameter',
                                                    'type' => 'Fixed'
                                                      'type' => 'Fixed'
                                                  },
                                                  },
                                        'MAX_TRANSACTION_WIDTH' => {
                                    'DST_ADR_HDR_WIDTH' => {
                                                                     'info' => 'maximum packet size width  in words.
                                                             'content' => '',
The maximum data that can be sent via one packet will be 2 power of MAX_DMA_TRANSACTION_WIDTH in words.',
                                                             'type' => 'Fixed',
                                                                     'content' => '4,32,1',
                                                             'info' => 'Parameter',
                                                                     'deafult' => '13',
                                                             'global_param' => 'Localparam',
                                                                     'redefine_param' => 1,
                                                                     'redefine_param' => 1,
                                                                     'type' => 'Spin-button',
                                                             'default' => '8'
                                                                     'global_param' => 'Localparam'
                                                           },
 
                                    'NX' => {
 
                                              'default' => ' 4',
 
                                              'redefine_param' => 1,
 
                                              'type' => 'Fixed',
 
                                              'info' => 'Parameter',
 
                                              'global_param' => 'Parameter',
 
                                              'content' => ''
                                                                   },
                                                                   },
                                        'SRC_ADR_HDR_WIDTH' => {
                                        'SRC_ADR_HDR_WIDTH' => {
 
                                                             'default' => '8',
                                                                 'redefine_param' => 1,
                                                                 'redefine_param' => 1,
                                                                 'content' => '',
                                                             'type' => 'Fixed',
                                                                 'deafult' => '8',
 
                                                                 'info' => 'Parameter',
                                                                 'info' => 'Parameter',
                                                                 'global_param' => 'Localparam',
                                                                 'global_param' => 'Localparam',
                                                                 'type' => 'Fixed'
                                                             'content' => ''
                                                               },
                                                               },
                                        'ROUTING_HDR_WIDTH' => {
                                    'ROUTE_NAME' => {
 
                                                      'global_param' => 'Parameter',
                                                                 'type' => 'Fixed',
                                                                 'type' => 'Fixed',
                                                                 'global_param' => 'Localparam',
 
                                                                 'info' => 'Parameter',
                                                                 'info' => 'Parameter',
                                                                 'content' => '',
                                                                 'content' => '',
                                                                 'deafult' => '8',
                                                      'default' => '"XY"   ',
                                                                 'redefine_param' => 1
                                                                 'redefine_param' => 1
                                                               },
                                                               },
                                        'Fw' => {
                                    'Xw' => {
                                                  'global_param' => 'Localparam',
 
                                                  'type' => 'Fixed',
 
                                                  'redefine_param' => 0,
                                                  'redefine_param' => 0,
                                                  'deafult' => '2+V+Fpay',
                                              'default' => 'log2(NX)',
                                                  'content' => '',
                                                  'content' => '',
                                                  'info' => undef
                                              'info' => undef,
                                                },
 
                                        'DST_ADR_HDR_WIDTH' => {
 
                                                                 'global_param' => 'Localparam',
 
                                                                 'type' => 'Fixed',
                                                                 'type' => 'Fixed',
                                                                 'redefine_param' => 1,
                                              'global_param' => 'Localparam'
                                                                 'deafult' => '8',
 
                                                                 'content' => '',
 
                                                                 'info' => 'Parameter'
 
                                                               },
                                                               },
                                        'Xw' => {
                                    'TAGw' => {
                                                  'global_param' => 'Localparam',
 
                                                  'type' => 'Fixed',
                                                  'type' => 'Fixed',
                                                  'deafult' => 'log2(NX)',
 
                                                  'content' => '',
 
                                                  'redefine_param' => 0,
 
                                                  'info' => undef
 
                                                },
 
                                        'M_Aw' => {
 
                                                    'redefine_param' => 1,
 
                                                    'deafult' => '32',
 
                                                    'content' => 'Dw',
 
                                                    'info' => 'Parameter',
                                                    'info' => 'Parameter',
                                                    'global_param' => 'Localparam',
                                                    'global_param' => 'Localparam',
                                                    'type' => 'Fixed'
                                                'content' => '',
 
                                                'default' => '3',
 
                                                'redefine_param' => 1
                                                  },
                                                  },
                                        'P' => {
                                    'DEBUG_EN' => {
 
                                                    'content' => '',
 
                                                    'info' => 'Parameter',
                                                 'global_param' => 'Parameter',
                                                 'global_param' => 'Parameter',
                                                 'type' => 'Fixed',
                                                    'type' => 'Fixed',
                                                 'redefine_param' => 1,
                                                 'redefine_param' => 1,
                                                 'deafult' => '5',
                                                    'default' => ' 1'
                                                 'content' => '',
 
                                                 'info' => 'Parameter'
 
                                               },
                                               },
                                        'ROUTE_TYPE' => {
                                    'B' => {
                                                          'info' => 'Parameter',
 
                                                          'redefine_param' => 1,
                                                          'redefine_param' => 1,
                                                          'deafult' => '   ',
                                             'default' => ' 4',
                                                          'content' => '',
                                                          'content' => '',
                                                          'type' => 'Fixed',
                                             'info' => 'Parameter',
                                                          'global_param' => 'Parameter'
                                             'global_param' => 'Parameter',
                                                        },
                                             'type' => 'Fixed'
                                        'MAX_BURST_SIZE' => {
 
                                                              'type' => 'Combo-box',
 
                                                              'global_param' => 'Localparam',
 
                                                              'info' => 'Maximum burst size in words.
 
The NI release wishbone bus  each time one burst is completed or when the VC\'s internal FIFO becomes full.  The bus will be released for one clock cycle. Then in case, there are other active VCs, another active VC will get access to the bus using round robin arbiter.  This process will be continued until all desired data is transferred. ',
 
                                                              'redefine_param' => 1,
 
                                                              'content' => '2,4,8,16,32,64,128,256,512,1024,2048',
 
                                                              'deafult' => '16'
 
                                                            },
                                                            },
                                        'Dw' => {
                                        'Dw' => {
                                                  'type' => 'Spin-button',
 
                                                  'global_param' => 'Localparam',
 
                                                  'info' => 'wishbone_bus data width in bits.',
 
                                                  'redefine_param' => 1,
                                                  'redefine_param' => 1,
 
                                              'default' => '32',
                                                  'content' => '32,256,8',
                                                  'content' => '32,256,8',
                                                  'deafult' => '32'
                                              'info' => 'wishbone_bus data width in bits.',
 
                                              'global_param' => 'Localparam',
 
                                              'type' => 'Spin-button'
                                                },
                                                },
                                        'ROUTE_NAME' => {
                                    'Fpay' => {
                                                          'deafult' => '"XY"   ',
                                                'default' => ' 32',
                                                          'content' => '',
 
                                                          'redefine_param' => 1,
                                                          'redefine_param' => 1,
                                                          'info' => 'Parameter',
                                                          'info' => 'Parameter',
 
                                                'type' => 'Fixed',
                                                          'global_param' => 'Parameter',
                                                          'global_param' => 'Parameter',
                                                          'type' => 'Fixed'
                                                'content' => ''
                                                        },
                                                        },
                                        'NX' => {
                                    'NY' => {
                                                  'content' => '',
 
                                                  'deafult' => ' 4',
 
                                                  'redefine_param' => 1,
                                                  'redefine_param' => 1,
                                                  'info' => 'Parameter',
                                              'default' => ' 4',
 
                                              'content' => '',
                                                  'global_param' => 'Parameter',
                                                  'global_param' => 'Parameter',
 
                                              'info' => 'Parameter',
                                                  'type' => 'Fixed'
                                                  'type' => 'Fixed'
                                                },
                                                },
                                        'CLASS_HDR_WIDTH' => {
                                    'P' => {
                                                               'global_param' => 'Localparam',
                                             'global_param' => 'Parameter',
 
                                             'info' => 'Parameter',
                                                               'type' => 'Fixed',
                                                               'type' => 'Fixed',
                                                               'redefine_param' => 1,
 
                                                               'deafult' => '8',
 
                                                               'content' => '',
                                                               'content' => '',
                                                               'info' => 'Parameter'
                                             'default' => '5',
 
                                             'redefine_param' => 1
                                                             },
                                                             },
                                        'TOPOLOGY' => {
                                    'SELw' => {
                                                        'info' => 'Parameter',
 
                                                        'redefine_param' => 1,
                                                        'redefine_param' => 1,
 
                                                'default' => '4',
                                                        'content' => '',
                                                        'content' => '',
                                                        'deafult' => '"MESH"',
                                                'info' => 'Parameter',
                                                        'type' => 'Fixed',
                                                        'type' => 'Fixed',
                                                        'global_param' => 'Parameter'
                                                'global_param' => 'Localparam'
                                                      },
                                                      },
                                        'S_Aw' => {
                                    'V' => {
                                                    'global_param' => 'Localparam',
 
                                                    'type' => 'Fixed',
 
                                                    'redefine_param' => 1,
                                                    'redefine_param' => 1,
 
                                             'default' => '4',
                                                    'content' => '',
                                                    'content' => '',
                                                    'deafult' => '8',
                                             'info' => 'Parameter',
                                                    'info' => 'Parameter'
 
                                                  },
 
                                        'V' => {
 
                                                 'global_param' => 'Parameter',
                                                 'global_param' => 'Parameter',
 
                                             'type' => 'Fixed'
 
                                           },
 
                                    'CRC_EN' => {
 
                                                  'type' => 'Combo-box',
 
                                                  'global_param' => 'Localparam',
 
                                                  'info' => 'The parameter can be selected as "YES" or "NO".
 
If CRC is enabled, then two CRC32 generator modules will be added to the NI. One CRC generator for calculating CRC of sending packets and another for receiving packets.   The CRC32 value of each packet is send via tail flit and at destination NI, is will be compared with received packet generated CRC32. The matching results can be used for error-detection and can be read via NI slave interface. ',
 
                                                  'content' => '"YES","NO"',
 
                                                  'default' => '"NO"',
 
                                                  'redefine_param' => 1
 
                                                },
 
                                    'Yw' => {
 
                                              'default' => 'log2(NY)',
 
                                              'redefine_param' => 0,
 
                                              'global_param' => 'Localparam',
                                                 'type' => 'Fixed',
                                                 'type' => 'Fixed',
                                                 'content' => '',
                                              'info' => undef,
                                                 'deafult' => '4',
                                              'content' => ''
 
                                            },
 
                                    'M_Aw' => {
                                                 'redefine_param' => 1,
                                                 'redefine_param' => 1,
                                                 'info' => 'Parameter'
                                                'default' => '32',
 
                                                'content' => 'Dw',
 
                                                'info' => 'Parameter',
 
                                                'type' => 'Fixed',
 
                                                'global_param' => 'Localparam'
                                               },
                                               },
                                        'TAGw' => {
                                    'Fw' => {
                                                    'global_param' => 'Localparam',
 
                                                    'type' => 'Fixed',
                                                    'type' => 'Fixed',
                                                    'deafult' => '3',
                                              'info' => undef,
 
                                              'global_param' => 'Localparam',
                                                    'content' => '',
                                                    'content' => '',
 
                                              'default' => '2+V+Fpay',
 
                                              'redefine_param' => 0
 
                                            },
 
                                    'MAX_TRANSACTION_WIDTH' => {
 
                                                                 'global_param' => 'Localparam',
 
                                                                 'type' => 'Spin-button',
 
                                                                 'info' => 'maximum packet size width  in words.
 
The maximum data that can be sent via one packet will be 2 power of MAX_DMA_TRANSACTION_WIDTH in words.',
 
                                                                 'content' => '4,32,1',
 
                                                                 'default' => '13',
 
                                                                 'redefine_param' => 1
 
                                                               },
 
                                    'C' => {
 
                                             'default' => ' 4',
                                                    'redefine_param' => 1,
                                                    'redefine_param' => 1,
                                                    'info' => 'Parameter'
                                             'info' => 'Parameter',
 
                                             'global_param' => 'Parameter',
 
                                             'type' => 'Fixed',
 
                                             'content' => ''
                                                  }
                                                  }
                                      },
                                      },
                      'version' => 37,
 
                      'category' => 'NoC',
 
                      'description_pdf' => '/mpsoc/src_peripheral/ni/NI_master.pdf',
 
                      'ports' => {
                      'ports' => {
                                   's_addr_i' => {
                               's_dat_o' => {
                                                   'range' => 'S_Aw-1     :   0',
                                              'intfc_port' => 'dat_o',
                                                   'type' => 'input',
                                              'range' => 'Dw-1       :   0',
                                                   'intfc_name' => 'plug:wb_slave[0]',
                                                   'intfc_name' => 'plug:wb_slave[0]',
                                                   'intfc_port' => 'adr_i'
                                              'type' => 'output'
                                                 },
 
                                   'm_send_cti_o' => {
 
                                                       'intfc_port' => 'cti_o',
 
                                                       'intfc_name' => 'plug:wb_master[0]',
 
                                                       'type' => 'output',
 
                                                       'range' => 'TAGw-1          :   0'
 
                                                     },
 
                                   'm_send_sel_o' => {
 
                                                       'type' => 'output',
 
                                                       'intfc_port' => 'sel_o',
 
                                                       'intfc_name' => 'plug:wb_master[0]',
 
                                                       'range' => 'SELw-1          :   0'
 
                                                     },
                                                     },
                                   'm_receive_ack_i' => {
                               's_stb_i' => {
                                                          'range' => '',
 
                                                          'type' => 'input',
                                                          'type' => 'input',
                                                          'intfc_name' => 'plug:wb_master[1]',
                                              'intfc_name' => 'plug:wb_slave[0]',
                                                          'intfc_port' => 'ack_i'
 
                                                        },
 
                                   'm_send_cyc_o' => {
 
                                                       'range' => '',
                                                       'range' => '',
                                                       'type' => 'output',
                                              'intfc_port' => 'stb_i'
                                                       'intfc_port' => 'cyc_o',
 
                                                       'intfc_name' => 'plug:wb_master[0]'
 
                                                     },
                                                     },
                                   'm_receive_sel_o' => {
                               'm_receive_sel_o' => {
                                                          'range' => 'SELw-1          :   0',
                                                          'range' => 'SELw-1          :   0',
 
                                                      'intfc_name' => 'plug:wb_master[1]',
                                                          'type' => 'output',
                                                          'type' => 'output',
                                                          'intfc_port' => 'sel_o',
                                                      'intfc_port' => 'sel_o'
                                                          'intfc_name' => 'plug:wb_master[1]'
 
                                                        },
                                                        },
                                   's_dat_i' => {
                               'm_receive_ack_i' => {
 
                                                      'intfc_port' => 'ack_i',
 
                                                      'range' => '',
 
                                                      'intfc_name' => 'plug:wb_master[1]',
 
                                                      'type' => 'input'
 
                                                    },
 
                               's_cyc_i' => {
 
                                              'intfc_port' => 'cyc_i',
                                                  'type' => 'input',
                                                  'type' => 'input',
                                                  'intfc_port' => 'dat_i',
 
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'range' => 'Dw-1       :   0'
                                              'range' => ''
                                                },
                                                },
                                   'flit_out' => {
                               'm_send_addr_o' => {
                                                   'range' => 'Fw-1   :   0',
                                                    'intfc_port' => 'adr_o',
 
                                                    'range' => 'M_Aw-1          :   0',
                                                   'type' => 'output',
                                                   'type' => 'output',
                                                   'intfc_name' => 'socket:ni[0]',
                                                    'intfc_name' => 'plug:wb_master[0]'
                                                   'intfc_port' => 'flit_out'
 
                                                 },
                                                 },
                                   'm_receive_cyc_o' => {
                               'm_send_we_o' => {
                                                          'intfc_name' => 'plug:wb_master[1]',
                                                  'range' => '',
                                                          'intfc_port' => 'cyc_o',
                                                  'intfc_name' => 'plug:wb_master[0]',
                                                          'type' => 'output',
                                                          'type' => 'output',
                                                          'range' => ''
                                                  'intfc_port' => 'we_o'
                                                        },
                                                        },
                                   'current_x' => {
                                   'current_x' => {
                                                    'range' => 'Xw-1   :   0',
 
                                                    'type' => 'input',
 
                                                    'intfc_port' => 'current_x',
                                                    'intfc_port' => 'current_x',
                                                    'intfc_name' => 'socket:ni[0]'
                                                'range' => 'Xw-1   :   0',
                                                  },
 
                                   'm_receive_we_o' => {
 
                                                         'intfc_port' => 'we_o',
 
                                                         'intfc_name' => 'plug:wb_master[1]',
 
                                                         'type' => 'output',
 
                                                         'range' => ''
 
                                                       },
 
                                   'flit_out_wr' => {
 
                                                      'range' => '',
 
                                                      'intfc_name' => 'socket:ni[0]',
                                                      'intfc_name' => 'socket:ni[0]',
                                                      'intfc_port' => 'flit_out_wr',
                                                'type' => 'input'
                                                      'type' => 'output'
 
                                                    },
                                                    },
                                   's_cyc_i' => {
                               'clk' => {
                                                  'intfc_port' => 'cyc_i',
 
                                                  'intfc_name' => 'plug:wb_slave[0]',
 
                                                  'type' => 'input',
                                                  'type' => 'input',
                                                  'range' => ''
                                          'intfc_name' => 'plug:clk[0]',
 
                                          'range' => '',
 
                                          'intfc_port' => 'clk_i'
                                                },
                                                },
                                   'm_receive_addr_o' => {
                                   'm_receive_addr_o' => {
                                                           'range' => 'M_Aw-1          :   0',
 
                                                           'type' => 'output',
                                                           'type' => 'output',
                                                           'intfc_name' => 'plug:wb_master[1]',
                                                           'intfc_name' => 'plug:wb_master[1]',
 
                                                       'range' => 'M_Aw-1          :   0',
                                                           'intfc_port' => 'adr_o'
                                                           'intfc_port' => 'adr_o'
                                                         },
                                                         },
                                   's_sel_i' => {
                               's_dat_i' => {
                                                  'range' => 'SELw-1     :   0',
 
                                                  'type' => 'input',
                                                  'type' => 'input',
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'intfc_port' => 'sel_i'
                                              'range' => 'Dw-1       :   0',
 
                                              'intfc_port' => 'dat_i'
                                                },
                                                },
                                   'm_send_ack_i' => {
                               'm_receive_dat_o' => {
                                                       'type' => 'input',
                                                      'intfc_port' => 'dat_o',
                                                       'intfc_port' => 'ack_i',
                                                      'range' => 'Dw-1            :   0',
                                                       'intfc_name' => 'plug:wb_master[0]',
                                                      'type' => 'output',
                                                       'range' => ''
                                                      'intfc_name' => 'plug:wb_master[1]'
                                                     },
                                                     },
                                   'reset' => {
                               's_sel_i' => {
 
                                              'intfc_port' => 'sel_i',
                                                'type' => 'input',
                                                'type' => 'input',
                                                'intfc_name' => 'plug:reset[0]',
                                              'intfc_name' => 'plug:wb_slave[0]',
                                                'intfc_port' => 'reset_i',
                                              'range' => 'SELw-1     :   0'
                                                'range' => ''
 
                                              },
                                              },
                                   'm_send_stb_o' => {
                               's_ack_o' => {
 
                                              'intfc_port' => 'ack_o',
                                                       'range' => '',
                                                       'range' => '',
                                                       'intfc_name' => 'plug:wb_master[0]',
                                              'type' => 'output',
                                                       'intfc_port' => 'stb_o',
                                              'intfc_name' => 'plug:wb_slave[0]'
                                                       'type' => 'output'
 
                                                     },
                                                     },
                                   'm_send_dat_i' => {
                               'm_receive_stb_o' => {
                                                       'intfc_port' => 'dat_i',
                                                      'type' => 'output',
                                                       'intfc_name' => 'plug:wb_master[0]',
                                                      'intfc_name' => 'plug:wb_master[1]',
                                                       'type' => 'input',
                                                      'range' => '',
                                                       'range' => 'Dw-1           :  0'
                                                      'intfc_port' => 'stb_o'
                                                     },
                                                     },
                                   'credit_in' => {
                               'flit_out_wr' => {
                                                    'type' => 'input',
 
                                                    'intfc_name' => 'socket:ni[0]',
                                                    'intfc_name' => 'socket:ni[0]',
                                                    'intfc_port' => 'credit_in',
 
                                                    'range' => 'V-1    :   0'
 
                                                  },
 
                                   'irq' => {
 
                                              'range' => '',
 
                                              'type' => 'output',
                                              'type' => 'output',
                                              'intfc_port' => 'int_o',
 
                                              'intfc_name' => 'plug:interrupt_peripheral[0]'
 
                                            },
 
                                   's_stb_i' => {
 
                                                  'range' => '',
                                                  'range' => '',
 
                                                  'intfc_port' => 'flit_out_wr'
 
                                                },
 
                               'current_y' => {
 
                                                'intfc_port' => 'current_y',
 
                                                'intfc_name' => 'socket:ni[0]',
                                                  'type' => 'input',
                                                  'type' => 'input',
                                                  'intfc_port' => 'stb_i',
                                                'range' => 'Yw-1   :   0'
                                                  'intfc_name' => 'plug:wb_slave[0]'
 
                                                },
                                                },
                                   'm_send_we_o' => {
                               'm_send_cti_o' => {
                                                      'range' => '',
                                                   'range' => 'TAGw-1          :   0',
 
                                                   'type' => 'output',
                                                      'intfc_name' => 'plug:wb_master[0]',
                                                      'intfc_name' => 'plug:wb_master[0]',
                                                      'intfc_port' => 'we_o',
                                                   'intfc_port' => 'cti_o'
                                                      'type' => 'output'
                                                 },
 
                               'm_receive_we_o' => {
 
                                                     'range' => '',
 
                                                     'type' => 'output',
 
                                                     'intfc_name' => 'plug:wb_master[1]',
 
                                                     'intfc_port' => 'we_o'
                                                    },
                                                    },
                                   'flit_in' => {
                               'flit_in' => {
                                                  'range' => 'Fw-1   :   0',
                                              'range' => 'Fw-1   :   0',
                                                  'type' => 'input',
                                              'type' => 'input',
                                                  'intfc_name' => 'socket:ni[0]',
                                              'intfc_name' => 'socket:ni[0]',
                                                  'intfc_port' => 'flit_in'
                                              'intfc_port' => 'flit_in'
                                                },
                                                },
                                   'm_send_addr_o' => {
                               'flit_out' => {
                                                        'intfc_port' => 'adr_o',
                                               'range' => 'Fw-1   :   0',
                                                        'intfc_name' => 'plug:wb_master[0]',
 
                                                        'type' => 'output',
                                                        'type' => 'output',
                                                        'range' => 'M_Aw-1          :   0'
                                               'intfc_name' => 'socket:ni[0]',
 
                                               'intfc_port' => 'flit_out'
                                                      },
                                                      },
                                   'credit_out' => {
                               's_addr_i' => {
                                                     'range' => 'V-1    :   0',
                                               'intfc_port' => 'adr_i',
                                                     'type' => 'output',
                                               'range' => 'S_Aw-1     :   0',
                                                     'intfc_port' => 'credit_out',
                                               'intfc_name' => 'plug:wb_slave[0]',
                                                     'intfc_name' => 'socket:ni[0]'
                                               'type' => 'input'
                                                   },
                                                   },
                                   'm_receive_stb_o' => {
                               'm_send_stb_o' => {
                                                          'intfc_name' => 'plug:wb_master[1]',
 
                                                          'intfc_port' => 'stb_o',
 
                                                          'type' => 'output',
                                                          'type' => 'output',
                                                          'range' => ''
                                                   'intfc_name' => 'plug:wb_master[0]',
                                                        },
 
                                   'clk' => {
 
                                              'range' => '',
                                              'range' => '',
                                              'intfc_name' => 'plug:clk[0]',
                                                   'intfc_port' => 'stb_o'
                                              'intfc_port' => 'clk_i',
 
                                              'type' => 'input'
 
                                            },
                                            },
                                   's_we_i' => {
                               's_we_i' => {
                                                 'intfc_port' => 'we_i',
                                             'intfc_port' => 'we_i',
                                                 'intfc_name' => 'plug:wb_slave[0]',
                                             'intfc_name' => 'plug:wb_slave[0]',
                                                 'type' => 'input',
                                             'type' => 'input',
                                                 'range' => ''
                                             'range' => ''
                                               },
                                               },
                                   's_ack_o' => {
 
                                                  'intfc_port' => 'ack_o',
 
                                                  'intfc_name' => 'plug:wb_slave[0]',
 
                                                  'type' => 'output',
 
                                                  'range' => ''
 
                                                },
 
                                   'm_receive_cti_o' => {
                                   'm_receive_cti_o' => {
                                                          'range' => 'TAGw-1          :   0',
 
                                                          'type' => 'output',
 
                                                          'intfc_port' => 'cti_o',
                                                          'intfc_port' => 'cti_o',
                                                          'intfc_name' => 'plug:wb_master[1]'
                                                      'range' => 'TAGw-1          :   0',
 
                                                      'intfc_name' => 'plug:wb_master[1]',
 
                                                      'type' => 'output'
                                                        },
                                                        },
                                   's_cti_i' => {
                                   's_cti_i' => {
 
                                              'intfc_port' => 'cti_i',
                                                  'range' => 'TAGw-1     :   0',
                                                  'range' => 'TAGw-1     :   0',
                                                  'type' => 'input',
 
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                  'intfc_port' => 'cti_i'
                                              'type' => 'input'
                                                },
                                                },
                                   'current_y' => {
                               'm_send_cyc_o' => {
                                                    'range' => 'Yw-1   :   0',
                                                   'type' => 'output',
 
                                                   'intfc_name' => 'plug:wb_master[0]',
 
                                                   'range' => '',
 
                                                   'intfc_port' => 'cyc_o'
 
                                                 },
 
                               'm_send_sel_o' => {
 
                                                   'intfc_port' => 'sel_o',
 
                                                   'range' => 'SELw-1          :   0',
 
                                                   'type' => 'output',
 
                                                   'intfc_name' => 'plug:wb_master[0]'
 
                                                 },
 
                               'reset' => {
 
                                            'range' => '',
                                                    'type' => 'input',
                                                    'type' => 'input',
                                                    'intfc_port' => 'current_y',
                                            'intfc_name' => 'plug:reset[0]',
                                                    'intfc_name' => 'socket:ni[0]'
                                            'intfc_port' => 'reset_i'
                                                  },
                                                  },
                                   's_dat_o' => {
                               'credit_in' => {
                                                  'range' => 'Dw-1       :   0',
                                                'type' => 'input',
                                                  'intfc_port' => 'dat_o',
                                                'intfc_name' => 'socket:ni[0]',
                                                  'intfc_name' => 'plug:wb_slave[0]',
                                                'range' => 'V-1    :   0',
                                                  'type' => 'output'
                                                'intfc_port' => 'credit_in'
                                                },
                                                },
                                   'flit_in_wr' => {
                               'm_send_dat_i' => {
 
                                                   'intfc_port' => 'dat_i',
                                                     'type' => 'input',
                                                     'type' => 'input',
 
                                                   'intfc_name' => 'plug:wb_master[0]',
 
                                                   'range' => 'Dw-1           :  0'
 
                                                 },
 
                               'credit_out' => {
 
                                                 'range' => 'V-1    :   0',
                                                     'intfc_name' => 'socket:ni[0]',
                                                     'intfc_name' => 'socket:ni[0]',
                                                     'intfc_port' => 'flit_in_wr',
                                                 'type' => 'output',
                                                     'range' => ''
                                                 'intfc_port' => 'credit_out'
                                                   },
                                                   },
                                   'm_receive_dat_o' => {
                               'm_receive_cyc_o' => {
                                                          'range' => 'Dw-1            :   0',
 
                                                          'intfc_port' => 'dat_o',
 
                                                          'intfc_name' => 'plug:wb_master[1]',
                                                          'intfc_name' => 'plug:wb_master[1]',
                                                          'type' => 'output'
                                                      'type' => 'output',
                                                        }
                                                      'range' => '',
 
                                                      'intfc_port' => 'cyc_o'
                                 },
                                 },
                      'modules' => {
                               'm_send_ack_i' => {
                                     'ni_vc_dma' => {},
                                                   'intfc_port' => 'ack_i',
                                     'header_flit_generator' => {},
                                                   'intfc_name' => 'plug:wb_master[0]',
                                     'ni_master' => {},
                                                   'type' => 'input',
                                     'ovc_status' => {},
                                                   'range' => ''
                                     'vc_wb_slave_registers' => {}
                                                 },
 
                               'irq' => {
 
                                          'range' => '',
 
                                          'type' => 'output',
 
                                          'intfc_name' => 'plug:interrupt_peripheral[0]',
 
                                          'intfc_port' => 'int_o'
                                   },
                                   },
 
                               'flit_in_wr' => {
 
                                                 'range' => '',
 
                                                 'type' => 'input',
 
                                                 'intfc_name' => 'socket:ni[0]',
 
                                                 'intfc_port' => 'flit_in_wr'
 
                                               }
 
                             },
 
                  'description_pdf' => '/mpsoc/src_peripheral/ni/NI.pdf',
 
                  'category' => 'NoC',
                      'gui_status' => {
                      'gui_status' => {
                                        'timeout' => 0,
                                    'timeout' => 0,
                                        'status' => 'ideal'
                                    'status' => 'ideal'
                                      },
                                  },
                      'system_h' => ' /*            NI wb registers addresses
                  'system_h' => ' /*        NI wb registers addresses
            0   :   STATUS1_WB_ADDR           // status1:  {send_enable_binarry,receive_enable_binarry,send_vc_is_busy,receive_vc_is_busy,receive_vc_got_packet}
            0   :   STATUS1_WB_ADDR           // status1:  {send_enable_binarry,receive_enable_binarry,send_vc_is_busy,receive_vc_is_busy,receive_vc_got_packet}
            1   :   STATUS2_WB_ADDR           // status2:
            1   :   STATUS2_WB_ADDR           // status2:
            2   :   BURST_SIZE_WB_ADDR       // The busrt size in words
            2   :   BURST_SIZE_WB_ADDR       // The busrt size in words
            3   :   SEND_DATA_SIZE_WB_ADDR,  // The size of data to be sent in byte
            3   :   SEND_DATA_SIZE_WB_ADDR,  // The size of data to be sent in byte
            4   :   SEND_STRT_WB_ADDR,       // The address of data to be sent   in byte
            4   :   SEND_STRT_WB_ADDR,       // The address of data to be sent   in byte
            5   :   SEND_DEST_WB_ADDR        // The destination router address
            5   :   SEND_DEST_WB_ADDR        // The destination router address
            6   :   SEND_CTRL_WB_ADDR
            6   :   SEND_CTRL_WB_ADDR
            7   :   RECEIVE_DATA_SIZE_WB_ADDR // The size of recieved data in byte
            7   :   RECEIVE_DATA_SIZE_WB_ADDR // The size of recieved data in byte
            8   :   RECEIVE_STRT_WB_ADDR      // The address pointer of reciever memory in byte
            8   :   RECEIVE_STRT_WB_ADDR      // The address pointer of reciever memory in byte
            9   :   RECEIVE_SRC_WB_ADDR       // The source router (the router which is sent this packet).
            9   :   RECEIVE_SRC_WB_ADDR       // The source router (the router which is sent this packet).
            10  :   RECEIVE_CTRL_WB_ADDR      // The NI reciever control register
            10  :   RECEIVE_CTRL_WB_ADDR      // The NI reciever control register
            11  :   RECEIVE_MAX_BUFF_SIZ      // The receiver\'s  allocated buffer size in words. If the packet size is bigger tha the buffer size the rest of will be discarred
            11  :   RECEIVE_MAX_BUFF_SIZ      // The receiver\'s  allocated buffer size in words. If the packet size is bigger tha the buffer size the rest of will be discarred
*/
*/
#define ${IP}_STATUS1_REG   (*((volatile unsigned int *) ($BASE)))   //0
#define ${IP}_STATUS1_REG   (*((volatile unsigned int *) ($BASE)))   //0
#define ${IP}_STATUS2_REG   (*((volatile unsigned int *) ($BASE+4)))   //1
#define ${IP}_STATUS2_REG   (*((volatile unsigned int *) ($BASE+4)))   //1
#define ${IP}_BURST_SIZE_REG  (*((volatile unsigned int *) ($BASE+8))) //2
#define ${IP}_BURST_SIZE_REG  (*((volatile unsigned int *) ($BASE+8))) //2
#define ${IP}_NUM_VCs   ${V}
#define ${IP}_NUM_VCs   ${V}
#define ${IP}_SEND_DATA_SIZE_REG(v)  (*((volatile unsigned int *) ($BASE+12+(v<<6))))  //3
#define ${IP}_SEND_DATA_SIZE_REG(v)  (*((volatile unsigned int *) ($BASE+12+(v<<6))))  //3
#define ${IP}_SEND_START_ADDR_REG(v)   (*((volatile unsigned int *) ($BASE+16+(v<<6))))  //4
#define ${IP}_SEND_START_ADDR_REG(v)   (*((volatile unsigned int *) ($BASE+16+(v<<6))))  //4
#define ${IP}_SEND_DEST_REG(v)   (*((volatile unsigned int *) ($BASE+20+(v<<6)))) //5
#define ${IP}_SEND_DEST_REG(v)   (*((volatile unsigned int *) ($BASE+20+(v<<6)))) //5
#define ${IP}_SEND_CTRL_REG(v)    (*((volatile unsigned int *) ($BASE+24+(v<<6)))) //6
#define ${IP}_SEND_CTRL_REG(v)    (*((volatile unsigned int *) ($BASE+24+(v<<6)))) //6
#define ${IP}_RECEIVE_DATA_SIZE_REG(v)  (*((volatile unsigned int *) ($BASE+28+(v<<6)))) //7
#define ${IP}_RECEIVE_DATA_SIZE_REG(v)  (*((volatile unsigned int *) ($BASE+28+(v<<6)))) //7
#define ${IP}_RECEIVE_STRT_ADDR_REG(v)   (*((volatile unsigned int *) ($BASE+32+(v<<6)))) //8
#define ${IP}_RECEIVE_STRT_ADDR_REG(v)   (*((volatile unsigned int *) ($BASE+32+(v<<6)))) //8
#define ${IP}_RECEIVE_CTRL_REG(v)    (*((volatile unsigned int *) ($BASE+36+(v<<6))))  //9
#define ${IP}_RECEIVE_CTRL_REG(v)    (*((volatile unsigned int *) ($BASE+36+(v<<6))))  //9
#define ${IP}_RECEIVE_MAX_BUFF_SIZ_REG(v)    (*((volatile unsigned int *) ($BASE+40+(v<<6)))) //10
#define ${IP}_RECEIVE_MAX_BUFF_SIZ_REG(v)    (*((volatile unsigned int *) ($BASE+40+(v<<6)))) //10
#define ${IP}_RECEIVE_CRC_MATCH_REG(v)    (*((volatile unsigned int *) ($BASE+44+(v<<6)))) //11
#define ${IP}_RECEIVE_CRC_MATCH_REG(v)    (*((volatile unsigned int *) ($BASE+44+(v<<6)))) //11
// assign status1= {send_vc_is_busy,receive_vc_is_busy,receive_vc_packet_is_saved,receive_vc_got_packet};
// assign status1= {send_vc_is_busy,receive_vc_is_busy,receive_vc_packet_is_saved,receive_vc_got_packet};
// assign status2= {send_enable_binarry,receive_enable_binarry,crc_miss_match,got_pck_isr, save_done_isr,send_done_isr,got_pck_int_en, save_done_int_en,send_done_int_en};
// assign status2= {send_enable_binarry,receive_enable_binarry,crc_miss_match,got_pck_isr, save_done_isr,send_done_isr,got_pck_int_en, save_done_int_en,send_done_int_en};
#define ${IP}_got_packet(v)     ((${IP}_STATUS1_REG >> (v)) & 0x1)
#define ${IP}_got_packet(v)     ((${IP}_STATUS1_REG >> (v)) & 0x1)
#define ${IP}_packet_is_saved(v) ((${IP}_STATUS1_REG >> (${V}+v)) & 0x1)
#define ${IP}_packet_is_saved(v) ((${IP}_STATUS1_REG >> (${V}+v)) & 0x1)
#define ${IP}_receive_is_busy(v)        ((${IP}_STATUS1_REG >> (2*${V}+v)) & 0x1)
#define ${IP}_receive_is_busy(v)        ((${IP}_STATUS1_REG >> (2*${V}+v)) & 0x1)
#define ${IP}_send_is_busy(v)   ((${IP}_STATUS1_REG >> (3*${V}+v)) & 0x1)
#define ${IP}_send_is_busy(v)   ((${IP}_STATUS1_REG >> (3*${V}+v)) & 0x1)
void ${IP}_initial (unsigned int burst_size) {
void ${IP}_initial (unsigned int burst_size) {
         ${IP}_BURST_SIZE_REG  =  burst_size;
         ${IP}_BURST_SIZE_REG  =  burst_size;
}
}
void ${IP}_transfer (unsigned int v, unsigned int class_num, unsigned int data_start_addr,  unsigned int data_size, unsigned int dest_x,unsigned int dest_y){
void ${IP}_transfer (unsigned int v, unsigned int class_num, unsigned int data_start_addr,  unsigned int data_size, unsigned int dest_x,unsigned int dest_y){
         while (${IP}_send_is_busy(v)); // wait until VC is busy sending previous packet
         while (${IP}_send_is_busy(v)); // wait until VC is busy sending previous packet
        ${IP}_SEND_DATA_SIZE_REG(v)  = data_size;
        ${IP}_SEND_DATA_SIZE_REG(v)  = data_size;
        ${IP}_SEND_START_ADDR_REG(v)  = data_start_addr;
        ${IP}_SEND_START_ADDR_REG(v)  = data_start_addr;
        ${IP}_SEND_DEST_REG(v)   = dest_x | (dest_y<<4)| (class_num<<8) ;
        ${IP}_SEND_DEST_REG(v)   = dest_x | (dest_y<<4)| (class_num<<8) ;
}
}
void ${IP}_receive (unsigned int v, unsigned int data_start_addr,  unsigned int max_buffer_size){
void ${IP}_receive (unsigned int v, unsigned int data_start_addr,  unsigned int max_buffer_size){
         while (${IP}_receive_is_busy(v)); // wait until VC is busy saving previous packet
         while (${IP}_receive_is_busy(v)); // wait until VC is busy saving previous packet
        ${IP}_RECEIVE_STRT_ADDR_REG(v)  = data_start_addr;
        ${IP}_RECEIVE_STRT_ADDR_REG(v)  = data_start_addr;
        ${IP}_RECEIVE_MAX_BUFF_SIZ_REG(v) = max_buffer_size;
        ${IP}_RECEIVE_MAX_BUFF_SIZ_REG(v) = max_buffer_size;
        ${IP}_RECEIVE_CTRL_REG(v)   = 1;
        ${IP}_RECEIVE_CTRL_REG(v)   = 1;
}',
}',
                      'ports_order' => [
                  'modules' => {
                                         'reset',
                                 'header_flit_generator' => {},
                                         'clk',
                                 'vc_wb_slave_registers' => {},
                                         'current_x',
                                 'ni_vc_dma' => {},
                                         'current_y',
                                 'ovc_status' => {},
                                         'flit_out',
                                 'ni_master' => {}
                                         'flit_out_wr',
                               },
                                         'credit_in',
                  'version' => 38,
                                         'flit_in',
 
                                         'flit_in_wr',
 
                                         'credit_out',
 
                                         's_dat_i',
 
                                         's_sel_i',
 
                                         's_addr_i',
 
                                         's_cti_i',
 
                                         's_stb_i',
 
                                         's_cyc_i',
 
                                         's_we_i',
 
                                         's_dat_o',
 
                                         's_ack_o',
 
                                         'm_send_sel_o',
 
                                         'm_send_addr_o',
 
                                         'm_send_cti_o',
 
                                         'm_send_stb_o',
 
                                         'm_send_cyc_o',
 
                                         'm_send_we_o',
 
                                         'm_send_dat_i',
 
                                         'm_send_ack_i',
 
                                         'm_receive_sel_o',
 
                                         'm_receive_dat_o',
 
                                         'm_receive_addr_o',
 
                                         'm_receive_cti_o',
 
                                         'm_receive_stb_o',
 
                                         'm_receive_cyc_o',
 
                                         'm_receive_we_o',
 
                                         'm_receive_ack_i',
 
                                         'irq'
 
                                       ],
 
                      'module_name' => 'ni_master',
 
                      'file_name' => '/home/alireza/mywork/mpsoc/src_peripheral/ni/ni_master.v',
 
                      'parameters_order' => [
                      'parameters_order' => [
                                              'CLASS_HDR_WIDTH',
                                          'CLASS_HDR_WIDTH',
                                              'ROUTING_HDR_WIDTH',
                                          'ROUTING_HDR_WIDTH',
                                              'DST_ADR_HDR_WIDTH',
                                          'DST_ADR_HDR_WIDTH',
                                              'SRC_ADR_HDR_WIDTH',
                                          'SRC_ADR_HDR_WIDTH',
                                              'TOPOLOGY',
                                          'TOPOLOGY',
                                              'ROUTE_NAME',
                                          'ROUTE_NAME',
                                              'NX',
                                          'NX',
                                              'NY',
                                          'NY',
                                              'C',
                                          'C',
                                              'V',
                                          'V',
                                              'B',
                                          'B',
                                              'Fpay',
                                          'Fpay',
                                              'MAX_TRANSACTION_WIDTH',
                                          'MAX_TRANSACTION_WIDTH',
                                              'MAX_BURST_SIZE',
                                          'MAX_BURST_SIZE',
                                              'DEBUG_EN',
                                          'DEBUG_EN',
                                              'Dw',
                                          'Dw',
                                              'S_Aw',
                                          'S_Aw',
                                              'M_Aw',
                                          'M_Aw',
                                              'TAGw',
                                          'TAGw',
                                              'SELw',
                                          'SELw',
                                              'Xw',
                                          'Xw',
                                              'Yw',
                                          'Yw',
                                              'Fw',
                                          'Fw',
                                              'CRC_EN'
                                              'CRC_EN'
 
                                        ],
 
                  'unused' => {
 
                                'plug:wb_master[0]' => [
 
                                                         'dat_o',
 
                                                         'err_i',
 
                                                         'bte_o',
 
                                                         'rty_i',
 
                                                         'tag_o'
 
                                                       ],
 
                                'plug:wb_slave[0]' => [
 
                                                        'rty_o',
 
                                                        'bte_i',
 
                                                        'err_o',
 
                                                        'tag_i'
 
                                                      ],
 
                                'plug:wb_master[1]' => [
 
                                                         'err_i',
 
                                                         'bte_o',
 
                                                         'rty_i',
 
                                                         'dat_i',
 
                                                         'tag_o'
                                            ]
                                            ]
 
                              },
 
                  'sockets' => {
 
                                 'ni' => {
 
                                           'value' => 1,
 
                                           'ni' => {},
 
                                           'type' => 'num',
 
                                           'connection_num' => 'single connection',
 
                                           '0' => {
 
                                                    'name' => 'ni'
 
                                                  }
 
                                         }
 
                               },
 
                  'module_name' => 'ni_master',
 
                  'ip_name' => 'ni_master'
                    }, 'ip_gen' );
                    }, 'ip_gen' );
 
 

powered by: WebSVN 2.1.0

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