minor change: revised directory structure, added MIT license

This commit is contained in:
2025-06-06 16:37:26 -04:00
parent a94823b44a
commit 018b7a3fcf
7 changed files with 7 additions and 0 deletions

21
src/fabric/routing.svh Normal file
View 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