Line 373... |
Line 373... |
if(got_pck_int_en) ${IP}_STATUS2_REG |= GOT_PCK_INT_EN;
|
if(got_pck_int_en) ${IP}_STATUS2_REG |= GOT_PCK_INT_EN;
|
}
|
}
|
|
|
/*
|
/*
|
The NI message sent function:
|
The NI message sent function:
|
v: virtual channel number which this packet should be sent to
|
v: virtual chanel number which this packet should be sent to
|
class_num: message class number. Diffrent message classes can be sent via isolated network resources to avoid protocol deadlock
|
class_num: message class number. Diffrent message classes can be sent via isolated network resources to avoid protocol deadlock
|
data_start_addr : The address pointer to the start location of the packet inside the NI internal buffer
|
data_start_addr : The address pointer to the start location of the packet inside the NI internal buffer
|
data_size: the message data size in words
|
data_size: the message data size in words
|
dest_x: the x address of destination core
|
dest_x: the x address of destination core
|
dest_y: the y address of destination core
|
dest_y: the y address of destination core
|
Line 393... |
Line 393... |
|
|
}
|
}
|
|
|
/*
|
/*
|
The NI message receiver function:
|
The NI message receiver function:
|
v: virtual channel number of the received packet
|
v: virtual chanel number of the received packet
|
data_start_addr : The address pointer to the start location of the memory where the newly arrived packet must be stored by NI in.
|
data_start_addr : The address pointer to the start location of the memory where the newly arrived packet must be stored by NI in.
|
max_buffer_size : The allocated receive-memory buffer size in words.
|
max_buffer_size : The allocated receive-memory buffer size in words.
|
*/
|
*/
|
|
|
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){
|
Line 734... |
Line 734... |
'out_ack_o',
|
'out_ack_o',
|
'irq'
|
'irq'
|
],
|
],
|
'version' => 47,
|
'version' => 47,
|
'module_name' => 'ni_slave',
|
'module_name' => 'ni_slave',
|
'file_name' => '/home/alireza/mywork/mpsoc/src_peripheral/ni/ni_slave.v',
|
'file_name' => 'mpsoc/src_peripheral/ni/ni_slave.v',
|
'plugs' => {
|
'plugs' => {
|
'reset' => {
|
'reset' => {
|
'reset' => {},
|
'reset' => {},
|
'type' => 'num',
|
'type' => 'num',
|
'value' => 1,
|
'value' => 1,
|