commit | 16215b928dae1bd3f92fdf4197af135ccb914c01 | [log] [tgz] |
---|---|---|
author | Eunchan Kim <eunchan@opentitan.org> | Mon May 02 15:49:15 2022 -0700 |
committer | Eli Kim <github@elikim.dev> | Wed May 04 14:17:47 2022 -0700 |
tree | 1a9369c57c7edbf1e0c7fc4fac8eef86d1ec11de | |
parent | 0a2e246c2e321ba076f91448579d4e991ba4d267 [diff] |
[spi_device] Watermark and Flip handling This commit revises the watermark logic to handle the corner case correctly. The case is when `watermark` and `flip` both events occur at the same cycle. If both events happen at the same cycle, it means host system issues a read request to the next buffer above the threshold. For example, the threshold is configured to 0x83 (131 Byte) and the current buffer is {1kB : 2kB}. Then when the host system issues read request to 0x486 (1,158 byte), it triggers `flip` event and `watermark` events. Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at [CONTRIBUTING]({{< relref “CONTRIBUTING.md” >}}) and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).