-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
routing: Add source-based routing algorithm (#30)
* hw(pkg): Rename `Consumption` routing to `SourceRouting` * hw(router): Implement `SourceRouting` by consumption * hw(chimney): Implement `SourceRouting` * tb: Add new `map_i` port to all chimneys * pkg: Define axi_ch enum with specific number of bits Previously an integer of size 32-bit was inferred which is unnecessary loarge * hw(routing): Support both table & address map * hw(chimney): Compute route for response packet in case of `SourceRouting` * pkg: Define the preliminary output type of the route computation * floogen(endpoint): Add additional helper functions * floogen(routing): Enable sorting by endpoint ID * floogen(routing): Add source-based routing algorithm * floogen(tpl): Adapt templates * hw(routing): Use two-stage address decoding for source-based routing * hw(chimney): Adapt to support source-based routing * floogen(test): Refactoring * floogen(utils): Modify helper functions * hw(tb): Refactor port of chimneys * floogen(examples): Add mesh example with source-based routing * hw(pkg): Regenerate package sources * floogen(test): Fix unit tests * hw(chimney): Fix multiple-driven assignments * floogen: Linting * hw(chimney): Linting * floogen: Small fix * hw(pkg): Set number of address rules to 1 by default * hw(routing): Fix address translation bug * hw(chimney): Give `route_comp` modules a proper name * floogen(tpl): Fix chimney ports * floogen(routing): Fix bit width of XY coordinates * floogen(tpl): Small fixes in templates * floogen(routing): Render the route table in reverse * doc: Update CHANGELOG * tb: Fix compilation errors with routing algorithms * lint: Make linter happy
- Loading branch information
Showing
26 changed files
with
626 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: occamy_mesh | ||
description: "Occamy mesh configuration for FlooGen with source-based routing" | ||
|
||
routing: | ||
route_algo: "SRC" | ||
use_id_table: true | ||
|
||
protocols: | ||
- name: "narrow" | ||
type: "AXI4" | ||
direction: "manager" | ||
data_width: 64 | ||
addr_width: 48 | ||
id_width: 4 | ||
user_width: 1 | ||
- name: "narrow" | ||
type: "AXI4" | ||
direction: "subordinate" | ||
data_width: 64 | ||
addr_width: 48 | ||
id_width: 2 | ||
user_width: 1 | ||
- name: "wide" | ||
type: "AXI4" | ||
direction: "manager" | ||
data_width: 512 | ||
addr_width: 48 | ||
id_width: 3 | ||
user_width: 1 | ||
- name: "wide" | ||
type: "AXI4" | ||
direction: "subordinate" | ||
data_width: 512 | ||
addr_width: 48 | ||
id_width: 1 | ||
user_width: 1 | ||
|
||
endpoints: | ||
- name: "cluster" | ||
array: [3, 8] | ||
addr_range: | ||
base: 0x0000_1000_0000 | ||
size: 0x0000_0004_0000 | ||
mgr_port_protocol: | ||
- "narrow" | ||
- "wide" | ||
sbr_port_protocol: | ||
- "narrow" | ||
- "wide" | ||
- name: "hbm" | ||
array: [8] | ||
addr_range: | ||
base: 0x0000_8000_0000 | ||
size: 0x0000_4000_0000 | ||
sbr_port_protocol: | ||
- "narrow" | ||
- "wide" | ||
- name: "serial_link" | ||
array: [3] | ||
addr_range: | ||
base: 0x0100_0000_0000 | ||
size: 0x0010_000_0000 | ||
mgr_port_protocol: | ||
- "narrow" | ||
- "wide" | ||
sbr_port_protocol: | ||
- "narrow" | ||
- "wide" | ||
- name: "cva6" | ||
mgr_port_protocol: | ||
- "narrow" | ||
- name: "peripherals" | ||
addr_range: | ||
start: 0x0000_0000_0000 | ||
end: 0x0000_0fff_ffff | ||
mgr_port_protocol: | ||
- "narrow" | ||
sbr_port_protocol: | ||
- "narrow" | ||
|
||
routers: | ||
- name: "router" | ||
array: [3, 8] | ||
|
||
connections: | ||
- src: "cluster" | ||
dst: "router" | ||
src_range: | ||
- [0, 2] | ||
- [0, 7] | ||
dst_range: | ||
- [0, 2] | ||
- [0, 7] | ||
bidirectional: true | ||
- src: "hbm" | ||
dst: "router" | ||
src_range: | ||
- [0, 7] | ||
dst_range: | ||
- [0, 0] | ||
- [0, 7] | ||
bidirectional: true | ||
- src: "serial_link" | ||
dst: "router" | ||
src_range: | ||
- [0, 2] | ||
dst_range: | ||
- [0, 2] | ||
- [0, 0] | ||
bidirectional: true | ||
- src: "cva6" | ||
dst: "router" | ||
dst_idx: [0, 7] | ||
bidirectional: true | ||
- src: "peripherals" | ||
dst: "router" | ||
dst_idx: [1, 7] | ||
bidirectional: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.