URL
https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk
Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc
[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [ip/] [Other/] [sim_uart.IP] - Rev 42
Go to most recent revision | Compare with Previous | Blame | View Log
#######################################################################
## File: sim_uart.IP
##
## Copyright (C) 2014-2016 Alireza Monemi
##
## This file is part of ProNoC 1.7.0
##
## WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
## MAY CAUSE UNEXPECTED BEHAIVOR.
################################################################################
$simulator_UART = bless( {
'module_name' => 'simulator_UART',
'system_h' => '#define ${IP}_DATA_REG (*((volatile unsigned int *) ($BASE)))
void ${IP}_putchar(char ch){ //print one char from jtag_uart
${IP}_DATA_REG=ch;
}
void ${IP}_putstring (char * buffer, char sz){
while (sz){
${IP}_putchar(*buffer);
buffer++;
sz--;
}
}
',
'description' => 'A simple uart that display input characters on simulator terminal using $write command.
',
'ports_order' => [
'reset',
'clk',
'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'
],
'file_name' => '/home/alireza/mywork/mpsoc/src_peripheral/Other/simulator_UART.v',
'version' => 7,
'unused' => {
'plug:wb_slave[0]' => [
'bte_i',
'rty_o',
'tag_i',
'err_o'
]
},
'modules' => {
'simulator_UART' => {}
},
'parameters' => {
'S_Aw' => {
'content' => '',
'type' => 'Fixed',
'info' => 'Parameter',
'global_param' => 'Localparam',
'redefine_param' => 1,
'default' => ' 7'
},
'M_Aw' => {
'redefine_param' => 1,
'info' => 'Parameter',
'global_param' => 'Localparam',
'default' => ' 32',
'type' => 'Fixed',
'content' => ''
},
'BUFFER_SIZE' => {
'default' => '100',
'info' => 'Internal buffer size ',
'global_param' => 'Localparam',
'redefine_param' => 1,
'content' => '2,1000,1',
'type' => 'Spin-button'
},
'Dw' => {
'default' => ' 32',
'redefine_param' => 1,
'info' => 'Parameter',
'global_param' => 'Localparam',
'type' => 'Fixed',
'content' => ''
},
'WAIT_COUNT' => {
'type' => 'Spin-button',
'content' => '2,100000,1',
'redefine_param' => 1,
'info' => 'If internal buffer has a data, the internal module timer starts counting up in each clock cycle. If Timer reach the WAIT_COUNT value, it writes the buffer vakue on simulator terminal.',
'global_param' => 'Localparam',
'default' => '1000'
},
'TAGw' => {
'type' => 'Fixed',
'content' => '',
'redefine_param' => 1,
'global_param' => 'Localparam',
'info' => 'Parameter',
'default' => ' 3'
},
'SELw' => {
'type' => 'Fixed',
'content' => '',
'default' => ' 4',
'redefine_param' => 1,
'global_param' => 'Localparam',
'info' => 'Parameter'
}
},
'category' => 'Other',
'ports' => {
's_cti_i' => {
'intfc_name' => 'plug:wb_slave[0]',
'type' => 'input',
'intfc_port' => 'cti_i',
'range' => 'TAGw-1 : 0'
},
's_sel_i' => {
'intfc_name' => 'plug:wb_slave[0]',
'range' => 'SELw-1 : 0',
'intfc_port' => 'sel_i',
'type' => 'input'
},
's_addr_i' => {
'range' => 'S_Aw-1 : 0',
'type' => 'input',
'intfc_port' => 'adr_i',
'intfc_name' => 'plug:wb_slave[0]'
},
's_dat_o' => {
'range' => 'Dw-1 : 0',
'intfc_port' => 'dat_o',
'type' => 'output',
'intfc_name' => 'plug:wb_slave[0]'
},
'clk' => {
'type' => 'input',
'intfc_port' => 'clk_i',
'range' => '',
'intfc_name' => 'plug:clk[0]'
},
's_we_i' => {
'intfc_name' => 'plug:wb_slave[0]',
'intfc_port' => 'we_i',
'type' => 'input',
'range' => ''
},
's_dat_i' => {
'intfc_port' => 'dat_i',
'type' => 'input',
'range' => 'Dw-1 : 0',
'intfc_name' => 'plug:wb_slave[0]'
},
'reset' => {
'type' => 'input',
'intfc_port' => 'reset_i',
'range' => '',
'intfc_name' => 'plug:reset[0]'
},
's_stb_i' => {
'type' => 'input',
'intfc_port' => 'stb_i',
'range' => '',
'intfc_name' => 'plug:wb_slave[0]'
},
's_cyc_i' => {
'intfc_name' => 'plug:wb_slave[0]',
'range' => '',
'intfc_port' => 'cyc_i',
'type' => 'input'
},
's_ack_o' => {
'intfc_name' => 'plug:wb_slave[0]',
'intfc_port' => 'ack_o',
'type' => 'output',
'range' => ''
}
},
'parameters_order' => [
'Dw',
'S_Aw',
'M_Aw',
'TAGw',
'SELw',
'BUFFER_SIZE',
'WAIT_COUNT'
],
'gui_status' => {
'timeout' => 0,
'status' => 'ideal'
},
'ip_name' => 'sim_uart',
'hdl_files' => [
'/mpsoc/src_peripheral/Other/simulator_UART.v'
],
'plugs' => {
'clk' => {
'clk' => {},
'0' => {
'name' => 'clk'
},
'value' => 1,
'type' => 'num'
},
'wb_slave' => {
'type' => 'num',
'value' => 1,
'0' => {
'addr' => '0xa500_0000 0xa5ff_ffff Debug',
'width' => 1,
'name' => 'wb_slave'
},
'wb_slave' => {}
},
'reset' => {
'type' => 'num',
'0' => {
'name' => 'reset'
},
'value' => 1,
'reset' => {}
}
}
}, 'ip_gen' );
Go to most recent revision | Compare with Previous | Blame | View Log