minor change: revised directory structure, added MIT license
This commit is contained in:
21
src/fabric/routing.svh
Normal file
21
src/fabric/routing.svh
Normal file
@ -0,0 +1,21 @@
|
||||
`ifndef __ROUTING__SVH__
|
||||
`define __ROUTING__SVH__
|
||||
|
||||
`include <params.svh>
|
||||
|
||||
function automatic logic [INTERFACE_ADDR_LEN - 1:0] next_hop(input logic [ROSE_ADDR_LEN - 1:0] interface_addr);
|
||||
case(interface_addr)
|
||||
0:
|
||||
return 0;
|
||||
1:
|
||||
return 1;
|
||||
2:
|
||||
return 2;
|
||||
3:
|
||||
return 3;
|
||||
default:
|
||||
return 0;
|
||||
endcase // case (interface_addr)
|
||||
endfunction // next_hop
|
||||
|
||||
`endif
|
Reference in New Issue
Block a user