Entity: spid_jedec

Diagram

clk_i rst_ni clk_out_i inclk_csb_asserted_pulse_i [23:0] sys_jedec_i sel_datapath_e sel_dp_i cmd_info_t cmd_info_i [CmdInfoIdxW-1:0] cmd_info_idx_i outclk_p2s_sent_i io_mode_e io_mode_o outclk_p2s_valid_o spi_byte_t outclk_p2s_byte_o

Description

Copyright lowRISC contributors. Licensed under the Apache License, Version 2.0, see LICENSE for details. SPDX-License-Identifier: Apache-2.0

SPI Flash Read JEDEC ID handler

Ports

Port name Direction Type Description
clk_i input
rst_ni input
clk_out_i input Output clock (inverted SCK)
inclk_csb_asserted_pulse_i input
sys_jedec_i input [23:0] from CSR
io_mode_o output io_mode_e
sel_dp_i input sel_datapath_e
cmd_info_i input cmd_info_t
cmd_info_idx_i input [CmdInfoIdxW-1:0]
outclk_p2s_valid_o output
outclk_p2s_byte_o output spi_byte_t
outclk_p2s_sent_i input

Signals

Name Type Description
st_q st_e
st_d st_e
jedec logic [23:0]
p2s_valid logic
p2s_byte spi_byte_t
next_byte logic
byte_sel_q logic [1:0]
byte_sel_d logic [1:0]
unused_cmd_info logic Unused
p2s_byte begin
else end
p2s_byte begin
p2s_byte_logic end

Types

Name Type Description
st_e enum logic {
StIdle,
StActive }

Processes

Type: always_ff

Description
//////////// Datapath // //////////// Jedec latch

Type: always_ff

Description
Output to Parallel-to-Serial

Type: always_comb

Type: always_ff

Type: always_ff

Description
///////// State // /////////

Type: always_comb