Skip to content

Commit

Permalink
hw: Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Sep 19, 2023
1 parent 3499784 commit a635f7a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/um/arch.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,18 @@ The [Serial Link](https://github.com/pulp-platform/serial_link) is a fully digit

### DMA engine

The [iDMA engine](https://github.com/pulp-platform/iDMA) enables high-throughput asynchronous transfers between any two subordinate address ranges in the system. The hardware supports, if enabled, up to two dimensional transfers directly in hardware. It exposes the following parameters:
The [iDMA engine](https://github.com/pulp-platform/iDMA) enables high-throughput asynchronous transfers between any two subordinate address ranges in the system. The hardware supports, if enabled, up to two-dimensional transfers directly in hardware. It exposes the following parameters:

| Parameter | Type / Range | Description |
| ---------------------------- | ------------ | ------------------------------------------------- |
| `DmaConfMax(Read|Write)Txns` | `dw_bt` | Max. number of outstanding requests to DMA config |
| `DmaConfAmoNumCuts` | `aw_bt` | Number of timing cuts inside config AMO filter |
| `DmaNumAxInFlight` | `dw_bt` | Number of outstanding transfer the DMA launches |
| `DmaConfAmoPostCut` | `bit` | Whether to insert a cut after config AMO filter |
| `DmaConfEnableTwoD` | `bit` | Whether the 2D hardware extension is present |
| `DmaNumAxInFlight` | `dw_bt` | Number of outstanding transfers the DMA launches |
| `DmaMemSysDepth` | `dw_bt` | The *approximate* depth of the memory system |
| `DmaJobFifoDepth` | `aw_bt` | The depth of the job FIFO |
| `DmaRAWCouplingAvail` | `bit` | Whether the R-AW coupling feature is available |
| `DmaConfAmoPostCut` | `bit` | Whether to insert a cut after config AMO filter |
| `DmaConfEnableTwoD` | `bit` | Whether the 2D hardware extension is present |

### I2C, SPI, GPIOs

Expand Down
8 changes: 4 additions & 4 deletions hw/cheshire_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ package cheshire_pkg;
dw_bt DmaConfMaxReadTxns;
dw_bt DmaConfMaxWriteTxns;
aw_bt DmaConfAmoNumCuts;
bit DmaConfAmoPostCut;
bit DmaConfEnableTwoD;
dw_bt DmaNumAxInFlight;
dw_bt DmaMemSysDepth;
aw_bt DmaJobFifoDepth;
bit DmaRAWCouplingAvail;
bit DmaConfAmoPostCut;
bit DmaConfEnableTwoD;
// Parameters for GPIO
bit GpioInputSyncs;
// Parameters for AXI RT
Expand Down Expand Up @@ -581,12 +581,12 @@ package cheshire_pkg;
DmaConfMaxReadTxns : 4,
DmaConfMaxWriteTxns : 4,
DmaConfAmoNumCuts : 1,
DmaConfAmoPostCut : 1,
DmaConfEnableTwoD : 1,
DmaNumAxInFlight : 16,
DmaMemSysDepth : 8,
DmaJobFifoDepth : 2,
DmaRAWCouplingAvail : 1,
DmaConfAmoPostCut : 1,
DmaConfEnableTwoD : 1,
// GPIOs
GpioInputSyncs : 1,
// AXI RT
Expand Down
5 changes: 5 additions & 0 deletions target/xilinx/src/cheshire_top_xilinx.sv
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ module cheshire_top_xilinx
DmaConfMaxWriteTxns : 4,
DmaConfAmoNumCuts : 1,
DmaConfAmoPostCut : 1,
DmaConfEnableTwoD : 1,
DmaNumAxInFlight : 16,
DmaMemSysDepth : 8,
DmaJobFifoDepth : 2,
DmaRAWCouplingAvail : 1,
// GPIOs
GpioInputSyncs : 1,
// All non-set values should be zero
Expand Down

0 comments on commit a635f7a

Please sign in to comment.