Skip to content

Commit 3629789

Browse files
committed
Rename parameters with No* to Num* when referring to number
1 parent e70cbd0 commit 3629789

39 files changed

+590
-590
lines changed

doc/axi_demux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This demultiplexer is configured through the parameters listed in the following
2323
| Name | Type | Definition |
2424
|:---------------------|:-------------------|:-----------|
2525
| `IdWidth` | `int unsigned` | The AXI ID width (of all ports). |
26-
| `NoMstPorts` | `int unsigned` | The number of AXI master ports of the demultiplexer (in other words, how many AXI slave modules can be attached). |
26+
| `NumMstPorts` | `int unsigned` | The number of AXI master ports of the demultiplexer (in other words, how many AXI slave modules can be attached). |
2727
| `MaxTrans` | `int unsigned` | The slave port can have at most this many transactions [in flight](../doc#in-flight). |
2828
| `LookBits` | `int unsigned` | The number of ID bits (starting at the least significant) the demultiplexer uses to determine the uniqueness of an AXI ID (see section *Ordering and Stalls* below). This value has to be less or equal than `IdWidth`. |
2929
| `UniqueIds` | `bit` | If you can guarantee that the ID of each transaction is always unique among all in-flight transactions in the same direction, setting this parameter to `1'b1` simplifies the demultiplexer (see section *Ordering and Stalls* below). Defaults to `1'b0`. |

doc/axi_lite_demux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This demultiplexer is configured through the parameters listed in the following
1919

2020
| Name | Type | Definition |
2121
|:---------------------|:-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
22-
| `NoMstPorts` | `int unsigned` | The number of AXI4-Lite master ports of the demultiplexer (in other words, how many AXI4-Lite slave modules can be attached). |
22+
| `NumMstPorts` | `int unsigned` | The number of AXI4-Lite master ports of the demultiplexer (in other words, how many AXI4-Lite slave modules can be attached). |
2323
| `MaxTrans` | `int unsigned` | The slave port can have at most this many transactions [in flight](../doc#in-flight). |
2424
| `FallThrough` | `bit` | Routing decisions on the AW channel fall through to the W channel (i.e. don't consume a cycle). Enabling this allows the demultiplexer to accept a W beat in the same cycle as the corresponding AW beat, but it increases the combinatorial path of the W channel with logic from `slv_aw_select_i`. |
2525
| `SpillXX` | `bit` | Inserts one spill register on the respective channel (AW, W, B, AR, and R) before the demultiplexer. |

doc/axi_lite_mux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following table shows the parameters of the module. The module further requi
1010

1111
| Name | Type | Function |
1212
|:--------------|:---------------|:---------------------------------------------------------------------------------------------------------------|
13-
| `NoSlvPorts` | `int unsigned` | How many slave ports the multiplexer features. This many master modules can be connected to the multiplexer. |
13+
| `NumSlvPorts` | `int unsigned` | How many slave ports the multiplexer features. This many master modules can be connected to the multiplexer. |
1414
| `MaxWTrans` | `int unsigned` | The depth of the FIFO holding the highest bits of the ID between the AW and W channel. |
1515
| `FallThrough` | `bit` | Is the FIFO between the AW and W channel in fall-through mode. Enabling will lead to an additional delay cycle |
1616
| `SpillXX` | `bit` | Enables the optional spill-register on the respective channel. |

doc/axi_lite_xbar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ The crossbar is configured through the `Cfg` parameter with a `axi_pkg::xbar_cfg
2828

2929
| Name | Type | Definition |
3030
|:------------------|:-------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
31-
| `NoSlvPorts` | `int unsigned` | The number of AXI4-Lite slave ports of the crossbar (in other words, how many AXI4-Lite master modules can be attached). |
32-
| `NoMstPorts` | `int unsigned` | The number of AXI4-Lite master ports of the crossbar (in other words, how many AXI4-Lite slave modules can be attached). |
31+
| `NumSlvPorts` | `int unsigned` | The number of AXI4-Lite slave ports of the crossbar (in other words, how many AXI4-Lite master modules can be attached). |
32+
| `NumMstPorts` | `int unsigned` | The number of AXI4-Lite master ports of the crossbar (in other words, how many AXI4-Lite slave modules can be attached). |
3333
| `MaxMstTrans` | `int unsigned` | Each slave port can have at most this many transactions [in flight](../doc#in-flight). |
3434
| `MaxSlvTrans` | `int unsigned` | Each master port can have at most this many transactions [in flight](../doc#in-flight). |
3535
| `FallThrough` | `bit` | Routing decisions on the AW channel fall through to the W channel. Enabling this allows the crossbar to accept a W beat in the same cycle as the corresponding AW beat, but it increases the combinatorial path of the W channel with logic from the AW channel. |
@@ -38,7 +38,7 @@ The crossbar is configured through the `Cfg` parameter with a `axi_pkg::xbar_cfg
3838
| `IdUsedSlvPorts` | `int unsigned` | Not used by the AXI4-Lite crossbar. Set `default: '0`. |
3939
| `AddrWidth` | `int unsigned` | The AXI4-Lite address width. |
4040
| `DataWidth` | `int unsigned` | The AXI4-Lite data width. |
41-
| `NoAddrRules` | `int unsigned` | The number of address map rules. |
41+
| `NumAddrRules` | `int unsigned` | The number of address map rules. |
4242

4343
The other parameters are types to define the ports of the crossbar. The `*_chan_t` and `*_req_t`/`*_rsp_t` types must be bound in accordance to the configuration with the `AXI_TYPEDEF` macros defined in `axi/typedef.svh`. The `rule_t` type must be bound to an address decoding rule with the same address width as in the configuration, and `axi_pkg` contains definitions for 64- and 32-bit addresses.
4444

doc/axi_mux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The opposite function to the AXI demultiplexer is performed by the AXI Multiplex
77
The Multiplexer module is has a simpler structure than the demultiplexer introduced in the previous section. The requests on the AW and AR channels get merged with the same round robin arbitration used for merging the responses in the demultiplexer. One key difference however is the mechanism how the multiplexer determines from which slave port a request came. It uses for this the higher bits of the `axi_id` field of a request. The number of bits can be calculated with:
88

99
```systemverilog
10-
$clog2(NoSlavePorts)
10+
$clog2(NumSlavePorts)
1111
```
1212

1313
This restricts the type of ID which can be sent through each slave port of the module. When the higher ID bits do not correspond to the index of the port the following response will be sent back through to the wrong master, leading to a breakdown of the functionality. So for using this module it is recommended to extend each AXI ID by the required amount of bits indicating the index of the respective slave port, before being sent over this module.
@@ -25,7 +25,7 @@ The following table shows the parameters of the module. The module further requi
2525
| Name | Type | Function |
2626
|:------------ |:-------------- |:----------------------------------------------------------------------------------------------------------- |
2727
| `IdWidth` | `int unsigned` | The width of the AXI transaction ID in bits. |
28-
| `NoSlvPorts` | `int unsigned` | How many slave ports the multiplexer features. This many master modules can be connected to the multiplexer.|
28+
| `NumSlvPorts`| `int unsigned` | How many slave ports the multiplexer features. This many master modules can be connected to the multiplexer.|
2929
| `MaxWTrans` | `int unsigned` | The depth of the FIFO holding the highest bits of the ID between the AW and W channel. |
3030
| `FallThrough`| `bit` | Is the FIFO between the AW and W channel in fall-through mode. Enabling will lead to longer cycle delays. |
3131
| `SpillXX` | `bit` | Enables the optional spill-register on the respective channel. |

doc/axi_xbar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A block-diagram of the crossbar is shown below:
1212

1313
The crossbar has a configurable number of slave and master ports.
1414

15-
The ID width of the master ports is wider than that of the slave ports. The additional ID bits are used by the internal multiplexers to route responses. The ID width of the master ports must be `IdWidthSlvPorts + $clog_2(NoSlvPorts)`.
15+
The ID width of the master ports is wider than that of the slave ports. The additional ID bits are used by the internal multiplexers to route responses. The ID width of the master ports must be `IdWidthSlvPorts + $clog_2(NumSlvPorts)`.
1616

1717

1818
## Address Map
@@ -41,8 +41,8 @@ The crossbar is configured through the `Cfg` parameter with a `axi_pkg::xbar_cfg
4141

4242
| Name | Type | Definition |
4343
|:------------------|:-------------------|:-----------|
44-
| `NoSlvPorts` | `int unsigned` | The number of AXI slave ports of the crossbar (in other words, how many AXI master modules can be attached). |
45-
| `NoMstPorts` | `int unsigned` | The number of AXI master ports of the crossbar (in other words, how many AXI slave modules can be attached). |
44+
| `NumSlvPorts` | `int unsigned` | The number of AXI slave ports of the crossbar (in other words, how many AXI master modules can be attached). |
45+
| `NumMstPorts` | `int unsigned` | The number of AXI master ports of the crossbar (in other words, how many AXI slave modules can be attached). |
4646
| `MaxMstTrans` | `int unsigned` | Each slave port can have at most this many transactions [in flight](../doc#in-flight). |
4747
| `MaxSlvTrans` | `int unsigned` | Each master port can have at most this many transactions per ID [in flight](../doc#in-flight). |
4848
| `FallThrough` | `bit` | Routing decisions on the AW channel fall through to the W channel. Enabling this allows the crossbar to accept a W beat in the same cycle as the corresponding AW beat, but it increases the combinatorial path of the W channel with logic from the AW channel. |
@@ -52,7 +52,7 @@ The crossbar is configured through the `Cfg` parameter with a `axi_pkg::xbar_cfg
5252
| `UniqueIds` | `bit` | If you can guarantee that the ID of each transaction is always unique among all in-flight transactions in the same direction, setting this parameter to `1'b1` simplifies the crossbar. See the [`axi_demux` documentation](axi_demux#ordering-and-stalls) for details. |
5353
| `AddrWidth` | `int unsigned` | The AXI address width. |
5454
| `DataWidth` | `int unsigned` | The AXI data width. |
55-
| `NoAddrRules` | `int unsigned` | The number of address map rules. |
55+
| `NumAddrRules` | `int unsigned` | The number of address map rules. |
5656

5757
The other parameters are types to define the ports of the crossbar. The `*_chan_t` and `*_req_t`/`*_rsp_t` types must be bound in accordance to the configuration with the `AXI_TYPEDEF` macros defined in `axi/typedef.svh`. The `rule_t` type must be bound to an address decoding rule with the same address width as in the configuration, and `axi_pkg` contains definitions for 64- and 32-bit addresses.
5858

scripts/axi_intercon_gen.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,22 +329,22 @@ def write(self):
329329
ns = len(self.slaves)
330330

331331
raw += """
332-
localparam int unsigned NoMasters = 32'd{}; // How many Axi Masters there are
333-
localparam int unsigned NoSlaves = 32'd{}; // How many Axi Slaves there are
332+
localparam int unsigned NumMasters = 32'd{}; // How many Axi Masters there are
333+
localparam int unsigned NumSlaves = 32'd{}; // How many Axi Slaves there are
334334
335335
// axi configuration
336336
localparam int unsigned IdWidthMasters = 32'd{};
337337
localparam int unsigned IdUsed = 32'd{}; // Has to be <= IdWidthMasters
338-
localparam int unsigned IdWidthSlaves = IdWidthMasters + $clog2(NoMasters);
338+
localparam int unsigned IdWidthSlaves = IdWidthMasters + $clog2(NumMasters);
339339
localparam int unsigned AddrWidth = 32'd32; // Address Width
340340
localparam int unsigned DataWidth = 32'd64; // Data Width
341341
localparam int unsigned StrbWidth = DataWidth / 8;
342342
localparam int unsigned UserWidth = 1;
343343
""".format(nm, ns, max_idw, max_idw)
344344
raw += " localparam axi_pkg::xbar_cfg_t xbar_cfg = '{\n"
345345
raw += """
346-
NoSlvPorts: NoMasters,
347-
NoMstPorts: NoSlaves,
346+
NumSlvPorts: NumMasters,
347+
NumMstPorts: NumSlaves,
348348
MaxMstTrans: 10,
349349
MaxSlvTrans: 6,
350350
FallThrough: 1'b0,
@@ -354,7 +354,7 @@ def write(self):
354354
UniqueIds: 1'b0,
355355
AddrWidth: AddrWidth,
356356
DataWidth: DataWidth,
357-
NoAddrRules: NoSlaves
357+
NumAddrRules: NumSlaves
358358
"""
359359
raw += " };\n"
360360
raw += """

src/axi_burst_splitter.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module axi_burst_splitter #(
7575
.r_chan_t ( r_chan_t ),
7676
.axi_req_t ( axi_req_t ),
7777
.axi_rsp_t ( axi_rsp_t ),
78-
.NoMstPorts ( 2 ),
78+
.NumMstPorts ( 2 ),
7979
.MaxTrans ( MaxTxns ),
8080
.LookBits ( IdWidth ),
8181
.FallThrough ( 1'b1 ),

0 commit comments

Comments
 (0)