Skip to content

Commit

Permalink
hw(pkg): Use port id by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Jul 23, 2024
1 parent 2b64436 commit c159a84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion floogen/model/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ class Routing(BaseModel):
num_route_bits: Optional[int] = None
addr_width: Optional[int] = None
rob_idx_bits: int = 1
port_id_bits: int = 0
port_id_bits: int = 1
num_vc_id_bits: int = 0

@field_validator("route_algo", mode="before")
Expand Down
6 changes: 4 additions & 2 deletions hw/floo_axi_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ package floo_axi_pkg;


typedef logic [0:0] rob_idx_t;
typedef logic [0:0] port_id_t;
typedef logic [2:0] x_bits_t;
typedef logic [2:0] y_bits_t;
typedef struct packed {
x_bits_t x;
y_bits_t y;
x_bits_t x;
y_bits_t y;
port_id_t port_id;
} id_t;

typedef logic route_t;
Expand Down
6 changes: 4 additions & 2 deletions hw/floo_narrow_wide_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ package floo_narrow_wide_pkg;


typedef logic [0:0] rob_idx_t;
typedef logic [0:0] port_id_t;
typedef logic [2:0] x_bits_t;
typedef logic [2:0] y_bits_t;
typedef struct packed {
x_bits_t x;
y_bits_t y;
x_bits_t x;
y_bits_t y;
port_id_t port_id;
} id_t;

typedef logic route_t;
Expand Down

0 comments on commit c159a84

Please sign in to comment.