Package: spi_host_cmd_pkg
- File: spi_host_cmd_pkg.sv
Description
Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0
Command & Configuration Options structure for SPI HOST.
Constants
Name | Type | Value | Description |
---|---|---|---|
CSW | int | prim_util_pkg::vbits(spi_host_reg_pkg::NumCS | |
CmdSize | int | CSW + 45 |
Types
Name | Type | Description |
---|---|---|
reg_direction_t | enum logic [1:0] { Dummy = 2'b00, RdOnly = 2'b01, WrOnly = 2'b10, Bidir = 2'b11 } |
For decoding the direction register |
speed_t | enum logic [1:0] { Standard = 2'b00, Dual = 2'b01, Quad = 2'b10, RsvdSpd = 2'b11 } |
For decoding the direction register |
configopts_t | struct packed { logic [15:0] clkdiv; logic [3:0] csnidle; logic [3:0] csnlead; logic [3:0] csntrail; logic full_cyc; logic cpha; logic cpol; } |
|
segment_t | struct packed { logic [1:0] speed; logic cmd_wr_en; logic cmd_rd_en; logic [8:0] len; logic csaat; } |
|
command_t | struct packed { logic [CSW-1:0] csid; segment_t segment; configopts_t configopts; } |