Skip to content

Commit

Permalink
SPI Engine: update sleep delay time (#119)
Browse files Browse the repository at this point in the history
Update expected sleep delays to match hdl. Also:

- remove sleep delay tests from pulsar, since this is not
something pulsar-specific

- fix SPI Engine SET_DLENGTH macro

---------

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
  • Loading branch information
LBFFilho authored Aug 29, 2024
1 parent ccace94 commit 45467d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 631 deletions.
2 changes: 1 addition & 1 deletion common/sv/spi_engine_instr_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package spi_engine_instr_pkg;
`define INST_CFG (32'h0000_2100 | (`SDO_IDLE_STATE << 3) | (`THREE_WIRE << 2) | (`CPOL << 1) | `CPHA)
`define INST_PRESCALE (32'h0000_2000 | `CLOCK_DIVIDER)
`define INST_DLENGTH (32'h0000_2200 | `DATA_DLENGTH)
`define SET_DLENGTH(d) (`INST_DLENGTH | (d & 8'hFF))
`define SET_DLENGTH(d) ((`INST_DLENGTH) & ~32'hFF | (d & 8'hFF))

// Synchronization
`define INST_SYNC (32'h0000_3000)
Expand Down
Loading

0 comments on commit 45467d4

Please sign in to comment.