ยง 3.3.5. NOR Flash¶
Digital NOR-style flash following the common device architecture. Programming clears selected bits; block erase restores ones. It is not SRAM with a longer write delay, and it is not a NAND page/block controller.
| Component | Description | Structural | Behavioral |
|---|---|---|---|
NORFlashCell |
Nonvolatile digital bit, program 1โ0, erase to 1 | Yes | No |
NORFlashRow<C> |
Shared row selection/erase and per-column programming | Yes | Yes |
NORFlashStorageBank<W> |
Cell rows and selected-row column sensing | Yes | Yes |
NORFlashCommandControl<W> |
Write-enable latch and the timing chains of each command, as gates and delay lines | Yes | No |
NORFlash<W> |
Complete word-read/program, block-erase device | Yes | Yes |
The write-enable latch, busy interval, one-way programming and block erase are recognizable NOR-flash behaviors; in the realistic profiles the read, program and erase times are those of the Infineon S29GL256S (tACC 120 ns, 150 ยตs per word, 410 ms per block). The Winbond W25Q80BV data sheet is a real-device reference, not this component's pin/command specification: this simulator uses a parallel educational command port, not SPI opcodes or the data sheet's page-program protocol.
Configuration¶
Width W, capacity N, and words-per-row K follow 3.1.
| Parameter | Default | Meaning / constraints |
|---|---|---|
block_words (B) |
2 | Erase granularity; whole rows, divides N, B โค N |
program_ticks |
From the profile | Program pulse; at least phase_ticks, at most 10ยนยฒ |
erase_ticks |
From the profile | Erase pulse; at least program_ticks, at most 10ยนยณ |
phase_ticks |
32 | Accepted (32โฆ10,000) for compatibility; it no longer sets any timing |
The default simulation starts with every bit erased to one. This is an explicit initial-image assumption; it is not a claim that an arbitrary physical flash chip always contains ones when powered up. No per-cell refresh is required. Persistence across simulator recreation/file storage, wear, disturb, power-loss behavior, and erase/program voltage generation are outside this model.
Compile the C++ examples in page order: larger references compose the earlier ones. They cover binary controls, state and outputs; their steps use a placeholder duration, ticks, plus the program and erase pulses, where the device uses the profile's intervals (see Timing). They do not model gate propagation or analog behavior.
The configuration type is NORFlashConfig. Catalog contracts are memory.nor-flash.cell, row, bank.W, command-control.W, and device.W under the memory.nor-flash. prefix. A standalone row takes columns; banks, controllers, and devices take the geometry/timing configuration. The cell has no parameters. Only public bank/device wrappers are C++ width templates; the command controller is catalog-created.
3.3.5.1. NORFlashCell¶
One digital nonvolatile bit with separate program and erase operations.
IO pins¶
| Pin | Direction | Width | Description |
|---|---|---|---|
WL |
Input | 1 | Row selection for programming |
PROGRAM |
Input | 1 | Program excitation, qualified by WL |
ERASE |
Input | 1 | Erase independently of WL |
D |
Input | 1 | Program value: 0 clears, 1 preserves |
Q |
Output | 1 | Stored bit |
Behavior¶
Initially erased (Q=1). Programming performs Q AND D; it cannot turn zero back to one. ERASE restores one independently of WL, unless programming is simultaneously enabled, which makes Q unknown. The cell has no command port, write-enable latch, block policy, or timer.
C++ example¶
Binary controls with an optional stored bit (empty means X). Startup wiring qualification is handled separately by the simulator.
#include <optional>
struct NORFlashCellReference {
std::optional<bool> q = true;
void update(bool wl, bool program, bool erase, std::optional<bool> data) {
const bool enabled = wl && program;
if (erase) q = enabled ? std::nullopt : std::optional(true);
else if (enabled) {
if (q == false || data == false) q = false;
else if (q == true && data == true) q = true;
else q.reset();
}
}
};
Unknown inputs¶
Unknown program data cannot undo Q=0; it makes Q=1 unknown. An unknown erase loses certainty. Unknown WL/PROGRAM conservatively make a possible write unknown unless a known zero enable excludes it or Q is already zero. Z is treated as unknown, not retained charge. At startup, the erased value is held until the first fully binary WL/PROGRAM/ERASE tuple; later unknown controls are not ignored.
Implementation¶
Structural implementation¶
Terminal digital nonvolatile-charge primitive. Program and erase transitions represent storage rules, not floating-gate voltage, tunneling, wear, or disturb. A second behavioral-fidelity copy is not registered.
The visualizer shows the recorded stored bit Q and WL/PROGRAM/ERASE indicators. These are cell signals, not the device controller's busy state, and update when scrubbing backward or forward.
Examples¶
All 7 recorded rows of NORFlashCellTest, in checkpoint order. Outputs are test expectations verified against the simulation. Time is the absolute settled checkpoint time in simulator units, not milliseconds or CPU cycles.
Default scenario profile: fidelity-gate-v1 / structural (ed03f70afe360dba). Changing fidelity or the circuit can change these times.
| Checkpointzero-based number ยท timeline label | Timesimulator units | DInput ยท 1 bit |
ERASEInput ยท 1 bit |
PROGRAMInput ยท 1 bit |
WLInput ยท 1 bit |
QExpected output ยท 1 bit |
|---|---|---|---|---|---|---|
#0erased | 1 | 1 |
0 |
0 |
0 |
1 |
#1program-zero | 3 | 0 |
0 |
1 |
1 |
0 |
#2one-cannot-undo-program | 4 | 1 |
0 |
1 |
1 |
0 |
#3release | 5 | 1 |
0 |
0 |
0 |
0 |
#4erase | 7 | 1 |
1 |
0 |
0 |
1 |
#5hold-erased | 8 | 1 |
0 |
0 |
0 |
1 |
#6unknown-program-data | 10 | X |
0 |
1 |
1 |
X |
Scroll within the table for all rows and pins. Buses use hexadecimal; values containing X/Z use MSB-first binary. Inputs show the declared values in effect at each checkpoint, including retained inputs. Sequential tests also replay preparation changes between checkpoints, such as lowering the clock. Use the matching checkpoint label in the simulation below.
Checks erased one, programming zero, the inability to program that zero back to one, release, erase, and programming with unknown data.
Embedded simulation¶
The standalone NORFlashCellTest opens this component as MEMORY_ROOT. This component has one registered structural implementation.
Open NORFlashCell in the simulator
Source and tests¶
| Test | Coverage |
|---|---|
NORFlashCellTest |
The complete standalone sequence shown above |
MemoryDeviceContractTest |
Integration in the new structural devices and comparison with their compact implementations |
3.3.5.2. NORFlashRow<C>¶
C flash cells sharing row selection and row erase.
IO pins¶
| Pin | Direction | Width | Description |
|---|---|---|---|
WL |
Input | 1 | Shared program selection |
ERASE |
Input | 1 | Erase all cells in this row |
PROGRAM_c, D_c |
Input | 1 each | Column program enable/value |
Q_c |
Output | 1 each | Stored bits, 0 โค c < C |
Behavior¶
columns=C accepts 1โ512 (default 4). Each cell follows the NORFlashCell transition rule. Programming can affect columns independently. ERASE reaches all cells; device-level control selects all rows of an erase block. This row alone does not enforce block granularity.
C++ example¶
Composition of the cell reference above. Each column retains its own state.
#include <array>
#include <cstddef>
#include <optional>
template<class Cell, std::size_t C>
void flash_row_update(std::array<Cell, C>& cells, bool wl, bool erase,
const std::array<bool, C>& program,
const std::array<std::optional<bool>, C>& data) {
for (std::size_t c = 0; c < C; ++c)
cells[c].update(wl, program[c], erase, data[c]);
}
Unknown inputs¶
Initial state, startup qualification, conflicts, and X/Z handling are per-cell. Unknown shared erase can affect the whole row. Outputs settle after each cell update; there is no row-level program-latency timer.
Implementation¶
Structural implementation¶
CELL_0 through CELL_(Cโ1) share WL and ERASE. Program/data are per-column. Cells are arranged horizontally in numeric column order.
Behavioral implementation¶
Stores C four-state values and per-cell startup-qualification flags. It applies the same charge transition rule directly; it is not freely writable RAM.
Examples¶
All 4 recorded rows of NORFlashRowTest, in checkpoint order. Outputs are test expectations verified against the simulation. Time is the absolute settled checkpoint time in simulator units, not milliseconds or CPU cycles.
Default scenario profile: fidelity-gate-v1 / structural (ed03f70afe360dba). Changing fidelity or the circuit can change these times.
| Checkpointzero-based number ยท timeline label | Timesimulator units | D_0Input ยท 1 bit |
D_1Input ยท 1 bit |
ERASEInput ยท 1 bit |
PROGRAM_0Input ยท 1 bit |
PROGRAM_1Input ยท 1 bit |
WLInput ยท 1 bit |
Q_0Expected output ยท 1 bit |
Q_1Expected output ยท 1 bit |
|---|---|---|---|---|---|---|---|---|---|
#0erased | 1 | 0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
#1program-one-column | 3 | 0 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
#2release | 4 | 0 |
0 |
0 |
0 |
0 |
0 |
0 |
not checked |
#3erase-row | 6 | 0 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
Scroll within the table for all rows and pins. Buses use hexadecimal; values containing X/Z use MSB-first binary. Inputs show the declared values in effect at each checkpoint, including retained inputs. Sequential tests also replay preparation changes between checkpoints, such as lowering the clock. Use the matching checkpoint label in the simulation below.
The two-column row starts erased, programs only column zero while preserving column one, releases programming, then erases both.
Embedded simulation¶
The standalone NORFlashRowTest opens this component as MEMORY_ROOT. Use the explorer to compare structural and behavioral implementations.
Open NORFlashRow<C> in the simulator
Source and tests¶
| Test | Coverage |
|---|---|
NORFlashRowTest |
The complete standalone sequence shown above |
MemoryDeviceContractTest |
Structural/behavioral agreement at settled checkpoints, including mixed hierarchy selection |
3.3.5.3. NORFlashStorageBank<W>¶
Flash rows with shared read sensing and independent row erase lines.
IO pins¶
| Pin | Direction | Width | Description |
|---|---|---|---|
WL_r |
Input | 1 each | Read/program row selection, 0 โค r < N/K |
ERASE_r |
Input | 1 each | Erase every cell in row r |
DRIVE_c, DATA_c |
Input | 1 each | Column program controls/data |
COL_c |
Output | 1 each | Selected stored bits, 0 โค c < WรK |
Behavior¶
Exactly one binary WL selects a row for reading. Each cell programs only when its WL and column DRIVE are high. ERASE_r is independent of WL_r. Multiple selected rows invalidate sensed outputs but can still expose those rows to programming; the caller must supply legal controls. Block policy belongs to the device, not this bank.
C++ example¶
The whole bank composes the cell reference and the static read-column rule. It updates every program/erase input and publishes every column, including invalid row selection.
#include <vector>
#include <cstddef>
#include <optional>
struct FlashBankReference {
std::vector<std::vector<NORFlashCellReference>> rows;
std::vector<std::optional<bool>> columns;
FlashBankReference(std::size_t r, std::size_t c)
: rows(r, std::vector<NORFlashCellReference>(c)), columns(c) {}
void update(const std::vector<bool>& wl, const std::vector<bool>& erase,
const std::vector<bool>& drive,
const std::vector<std::optional<bool>>& data) {
for (std::size_t c = 0; c < columns.size(); ++c) {
unsigned count = 0;
columns[c].reset();
for (std::size_t r = 0; r < rows.size(); ++r) {
rows[r][c].update(wl.at(r), drive.at(c), erase.at(r), data.at(c));
if (wl[r]) { ++count; columns[c] = rows[r][c].q; }
}
if (count != 1) columns[c].reset();
}
}
};
Unknown inputs¶
No selected row, conflicting selections, or unknown WL yields X on COL. Cell writes/erase retain their own conservative X/Z rules. Both bank fidelities retain scalar row/column pins and the 4,096-cell limit; large-capacity use belongs at device level.
Implementation¶
Structural implementation¶
ROW_r contains WรK flash cells. COLUMN_c is a StaticReadColumn shared across rows. Columns align under the same numbered cell in every row. Device control asserts ERASE_r for all rows in one block.
Behavioral implementation¶
Uses a bounded bit vector and startup flags, applying cell transitions before selecting the read columns. Read selection and storage mutation remain separate, matching the expanded bank.
Examples¶
All 7 recorded rows of NORFlashStorageBankTest, in checkpoint order. Outputs are test expectations verified against the simulation. Time is the absolute settled checkpoint time in simulator units, not milliseconds or CPU cycles.
Default scenario profile: fidelity-gate-v1 / structural (ed03f70afe360dba). Changing fidelity or the circuit can change these times.
| Checkpointzero-based number ยท timeline label | Timesimulator units | DATA_0Input ยท 1 bit |
DATA_1Input ยท 1 bit |
DATA_10Input ยท 1 bit |
DATA_11Input ยท 1 bit |
DATA_12Input ยท 1 bit |
DATA_13Input ยท 1 bit |
DATA_14Input ยท 1 bit |
DATA_15Input ยท 1 bit |
DATA_2Input ยท 1 bit |
DATA_3Input ยท 1 bit |
DATA_4Input ยท 1 bit |
DATA_5Input ยท 1 bit |
DATA_6Input ยท 1 bit |
DATA_7Input ยท 1 bit |
DATA_8Input ยท 1 bit |
DATA_9Input ยท 1 bit |
DRIVE_0Input ยท 1 bit |
DRIVE_1Input ยท 1 bit |
DRIVE_10Input ยท 1 bit |
DRIVE_11Input ยท 1 bit |
DRIVE_12Input ยท 1 bit |
DRIVE_13Input ยท 1 bit |
DRIVE_14Input ยท 1 bit |
DRIVE_15Input ยท 1 bit |
DRIVE_2Input ยท 1 bit |
DRIVE_3Input ยท 1 bit |
DRIVE_4Input ยท 1 bit |
DRIVE_5Input ยท 1 bit |
DRIVE_6Input ยท 1 bit |
DRIVE_7Input ยท 1 bit |
DRIVE_8Input ยท 1 bit |
DRIVE_9Input ยท 1 bit |
ERASE_0Input ยท 1 bit |
ERASE_1Input ยท 1 bit |
WL_0Input ยท 1 bit |
WL_1Input ยท 1 bit |
COL_0Expected output ยท 1 bit |
COL_1Expected output ยท 1 bit |
COL_10Expected output ยท 1 bit |
COL_11Expected output ยท 1 bit |
COL_12Expected output ยท 1 bit |
COL_13Expected output ยท 1 bit |
COL_14Expected output ยท 1 bit |
COL_15Expected output ยท 1 bit |
COL_2Expected output ยท 1 bit |
COL_3Expected output ยท 1 bit |
COL_4Expected output ยท 1 bit |
COL_5Expected output ยท 1 bit |
COL_6Expected output ยท 1 bit |
COL_7Expected output ยท 1 bit |
COL_8Expected output ยท 1 bit |
COL_9Expected output ยท 1 bit |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#0deselected | 96 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
X |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#1read-erased-row | 193 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#2program-column-zero | 291 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#3release-driver | 292 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#4other-row-unmodified | 389 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#5erase-first-row | 391 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#6read-first-row-again | 392 | 0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
Scroll within the table for all rows and pins. Buses use hexadecimal; values containing X/Z use MSB-first binary. Inputs show the declared values in effect at each checkpoint, including retained inputs. Sequential tests also replay preparation changes between checkpoints, such as lowering the clock. Use the matching checkpoint label in the simulation below.
Reads an erased row, programs column zero, checks another row remains erased, erases the first row, and reads it again.
Embedded simulation¶
The standalone NORFlashStorageBankTest opens this component as MEMORY_ROOT. Use the explorer to compare structural and behavioral implementations.
Open NORFlashStorageBank<W> in the simulator
Source and tests¶
| Test | Coverage |
|---|---|
NORFlashStorageBankTest |
The complete standalone sequence shown above |
MemoryDeviceContractTest |
Structural/behavioral agreement at settled checkpoints, including mixed hierarchy selection |
3.3.5.4. NORFlashCommandControl<W>¶
Takes a command at a rising clock edge, keeps the write-enable latch, and runs the command's timing chain of gates and delay lines.
IO pins¶
| Pin | Direction | Width | Description |
|---|---|---|---|
CLK |
Input | 1 | Strict 0โ1 command edge |
CMD |
Input | 3 | Device command code |
WORD_ADDR |
Input | 32 | Word address or address within erase block |
WRITE_DATA |
Input | W | Program payload |
WRITE_MASK |
Input | W/8 | Program byte enables |
BUSY, ERROR, READ_VALID, WRITE_ENABLED |
Output | 1 each | Device status |
ROW_ADDR, COLUMN_ADDR |
Output | 32 each | Latched address decomposed into row/slot |
DATA |
Output | W | Latched program data |
MASK |
Output | W/8 | Latched byte enables |
ROW_ENABLE, PROGRAM_ENABLE, OUTPUT_ENABLE |
Output | 1 each | Selection, program pulse, read publication |
ERASE_r |
Output | 1 each | Pulse for every row in the selected block |
Behavior¶
Carries out the command table of NORFlash<W> without storing array data. WREN sets the write-enable latch (WEL); WRDI clears it. An accepted PROGRAM or ERASE consumes WEL at once, including a zero-mask program; a rejected request keeps it. The latched address, data and mask stay stable while busy. A READ runs a replica of the read column; PROGRAM and ERASE run their pulse, a pulse end and a recovery step. A one-stage sampler brings the end of the chain into the clock, and BUSY falls one edge after that.
C++ example¶
All binary commands and control outputs are represented; geometry is prevalidated. Call on input changes and at every due. valid drives READ_VALID and OUTPUT_ENABLE, wel drives WRITE_ENABLED, and select drives ROW_ENABLE. There is no reset pin; the device starts idle through a power-on reset.
#include <cstdint>
#include <vector>
#include <optional>
template<std::size_t W> struct FlashControlReference {
struct Inputs {
bool clock = false;
unsigned cmd = 0;
std::uint32_t address = 0, data = 0;
unsigned mask = 0;
};
std::size_t depth, slots, block, ticks, program_ticks, erase_ticks, due = 0;
unsigned command = 0, stage = 0;
std::uint32_t address = 0;
bool busy = false, error = false, wel = false, valid = false;
bool program = false, erase = false, select = false;
std::optional<bool> previous_clock; // First observed high is not a 0->1 edge.
unsigned mask = 0;
std::vector<std::optional<bool>> data = std::vector<std::optional<bool>>(W);
FlashControlReference(std::size_t n, std::size_t k, std::size_t block_words,
std::size_t phase, std::size_t prog, std::size_t er)
: depth(n), slots(k), block(block_words), ticks(phase), program_ticks(prog), erase_ticks(er) {}
std::size_t row() const { return address / slots; }
std::size_t col() const { return address % slots; }
bool erase_row(std::size_t r) const {
return erase && (r * slots) / block == address / block;
}
void update(std::size_t now, const Inputs& in) {
if (due && now >= due) {
due = 0; ++stage;
if (command == 1) { valid = true; busy = false; }
else if (stage == 1) {
program = command == 2; erase = command == 3; due = now + ticks;
} else if (stage == 2) {
program = erase = select = false; due = now + ticks;
} else busy = false;
}
const bool edge = previous_clock == false && in.clock;
previous_clock = in.clock;
if (!edge || in.cmd == 0) return; // NOP holds WEL, error and read-valid.
if (busy) { error = true; return; } // Existing command still completes.
if (in.cmd > 5 || (in.cmd <= 3 && in.address >= depth) ||
((in.cmd == 2 || in.cmd == 3) && !wel)) {
error = true; valid = false; return;
}
error = valid = select = false;
if (in.cmd == 4 || in.cmd == 5) { wel = in.cmd == 4; return; }
command = in.cmd; stage = 0; address = in.address;
busy = true; select = command != 3;
if (command == 1) due = now + ticks;
else {
wel = false;
for (unsigned b = 0; b < W; ++b) data[b] = bool((in.data >> b) & 1u);
mask = in.mask;
due = now + (command == 2 ? program_ticks : erase_ticks);
}
}
};
Unknown inputs¶
Only 0โ1 CLK is an edge. An unknown CMD is rejected; the address must be binary for READ, PROGRAM and ERASE, and the mask for PROGRAM. Unknown data is permitted. NOP, WREN and WRDI ignore address, data and mask; ERASE ignores data and mask. A rejection while idle clears old read data; a rejection while busy sets ERROR without replacing the running operation.
Implementation¶
Structural implementation¶
Flip-flops hold the command, address, payload, WEL and status bits; gates decide legality and the next state. The READ chain is a MemoryDelayLine with the NOR read interval and a replica of the row decoder; PROGRAM and ERASE chains are the pulse and two recovery delay lines. A one-stage Synchronizer samples each chain's end, and a PowerOnReset starts the device idle. A gate-level block decoder drives ERASE_r for the rows of block WORD_ADDR / block_words; because it exposes one erase pin per row, this standalone control keeps the expanded geometry limit. The compact device keeps the same state without those pins (NORSyncControl, edge for edge).
Examples¶
All 189 recorded rows of NORFlashCommandControlTest, in checkpoint order. Outputs are test expectations verified against the simulation. Time is the absolute settled checkpoint time in simulator units, not milliseconds or CPU cycles.
Default scenario profile: fidelity-gate-v1 / structural (ed03f70afe360dba). Changing fidelity or the circuit can change these times.
| Checkpointzero-based number ยท timeline label | Timesimulator units | CLKInput ยท 1 bit |
CMDInput ยท 3 bit |
WORD_ADDRInput ยท 32 bit |
WRITE_DATAInput ยท 8 bit |
WRITE_MASKInput ยท 1 bit |
BUSYExpected output ยท 1 bit |
COLUMN_ADDRExpected output ยท 32 bit |
DATAExpected output ยท 8 bit |
ERASE_0Expected output ยท 1 bit |
ERASE_1Expected output ยท 1 bit |
ERRORExpected output ยท 1 bit |
MASKExpected output ยท 1 bit |
OUTPUT_ENABLEExpected output ยท 1 bit |
PROGRAM_ENABLEExpected output ยท 1 bit |
READ_VALIDExpected output ยท 1 bit |
ROW_ADDRExpected output ยท 32 bit |
ROW_ENABLEExpected output ยท 1 bit |
WRITE_ENABLEDExpected output ยท 1 bit |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#0ready-erased | 20 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | 0 |
#1read-erased-setup | 39 | 0 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#2read-erased-edge | 150 | 1 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#3read-erased-command-removed | 166 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#4read-erased-clock-1 | 179 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#5read-erased-clock-1-low | 186 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#6read-erased-clock-2 | 196 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#7read-erased-clock-2-low | 204 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#8read-erased-clock-3 | 218 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#9read-erased | 223 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#10program-without-enable-setup | 241 | 0 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#11program-without-enable-edge | 248 | 1 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#12program-without-enable-command-removed | 259 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#13program-without-enable-clock-1 | 264 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#14program-without-enable-clock-1-low | 269 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#15program-without-enable-clock-2 | 274 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#16program-without-enable-clock-2-low | 279 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#17program-without-enable-clock-3 | 284 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#18program-without-enable | 289 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#19write-enable-setup | 306 | 0 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#20write-enable-edge | 313 | 1 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#21write-enable-command-removed | 327 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#22write-enable-clock-1 | 335 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#23write-enable-clock-1-low | 340 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#24write-enable-clock-2 | 345 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#25write-enable-clock-2-low | 350 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#26write-enable-clock-3 | 355 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#27write-enable | 360 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | 0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
#28program-word-setup | 381 | 0 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#29program-word-edge | 588 | 1 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#30program-word-command-removed | 604 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#31program-word-clock-1 | 615 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#32program-word-clock-1-low | 622 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#33program-word-clock-2 | 632 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#34program-word-clock-2-low | 640 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#35program-word-clock-3 | 654 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#36program-word | 659 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | 0 |
not checked | not checked | not checked | not checked | not checked | not checked | 0 |
#37read-programmed-setup | 679 | 0 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#38read-programmed-edge | 790 | 1 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#39read-programmed-command-removed | 806 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#40read-programmed-clock-1 | 819 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#41read-programmed-clock-1-low | 826 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#42read-programmed-clock-2 | 836 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#43read-programmed-clock-2-low | 844 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#44read-programmed-clock-3 | 858 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#45read-programmed | 863 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#46enable-again-setup | 881 | 0 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#47enable-again-edge | 888 | 1 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#48enable-again-command-removed | 902 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#49enable-again-clock-1 | 910 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#50enable-again-clock-1-low | 915 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#51enable-again-clock-2 | 920 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#52enable-again-clock-2-low | 925 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#53enable-again-clock-3 | 930 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#54enable-again | 935 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#55cannot-program-zero-to-one-setup | 956 | 0 |
0x2 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#56cannot-program-zero-to-one-edge | 1163 | 1 |
0x2 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#57cannot-program-zero-to-one-command-removed | 1179 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#58cannot-program-zero-to-one-clock-1 | 1190 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#59cannot-program-zero-to-one-clock-1-low | 1197 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#60cannot-program-zero-to-one-clock-2 | 1207 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#61cannot-program-zero-to-one-clock-2-low | 1215 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#62cannot-program-zero-to-one-clock-3 | 1229 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#63cannot-program-zero-to-one | 1234 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#64read-unchanged-setup | 1254 | 0 |
0x1 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#65read-unchanged-edge | 1365 | 1 |
0x1 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#66read-unchanged-command-removed | 1381 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#67read-unchanged-clock-1 | 1394 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#68read-unchanged-clock-1-low | 1401 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#69read-unchanged-clock-2 | 1411 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#70read-unchanged-clock-2-low | 1419 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#71read-unchanged-clock-3 | 1433 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#72read-unchanged | 1438 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#73enable-other-block-setup | 1456 | 0 |
0x4 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#74enable-other-block-edge | 1463 | 1 |
0x4 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#75enable-other-block-command-removed | 1477 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#76enable-other-block-clock-1 | 1485 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#77enable-other-block-clock-1-low | 1490 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#78enable-other-block-clock-2 | 1495 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#79enable-other-block-clock-2-low | 1500 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#80enable-other-block-clock-3 | 1505 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#81enable-other-block | 1510 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#82program-other-block-setup | 1531 | 0 |
0x2 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#83program-other-block-edge | 1738 | 1 |
0x2 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#84program-other-block-command-removed | 1754 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#85program-other-block-clock-1 | 1765 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#86program-other-block-clock-1-low | 1772 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#87program-other-block-clock-2 | 1782 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#88program-other-block-clock-2-low | 1790 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#89program-other-block-clock-3 | 1804 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#90program-other-block | 1809 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#91enable-erase-setup | 1826 | 0 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#92enable-erase-edge | 1833 | 1 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#93enable-erase-command-removed | 1847 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#94enable-erase-clock-1 | 1855 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#95enable-erase-clock-1-low | 1860 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#96enable-erase-clock-2 | 1865 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#97enable-erase-clock-2-low | 1870 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#98enable-erase-clock-3 | 1875 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#99enable-erase | 1880 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#100erase-block-zero-setup | 1900 | 0 |
0x3 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#101erase-block-zero-edge | 2234 | 1 |
0x3 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#102erase-block-zero-command-removed | 2250 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#103erase-block-zero-clock-1 | 2261 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#104erase-block-zero-clock-1-low | 2268 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#105erase-block-zero-clock-2 | 2278 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#106erase-block-zero-clock-2-low | 2286 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#107erase-block-zero-clock-3 | 2299 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#108erase-block-zero | 2304 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | 0 |
#109read-erased-again-setup | 2324 | 0 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#110read-erased-again-edge | 2435 | 1 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#111read-erased-again-command-removed | 2451 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#112read-erased-again-clock-1 | 2464 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#113read-erased-again-clock-1-low | 2471 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#114read-erased-again-clock-2 | 2481 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#115read-erased-again-clock-2-low | 2489 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#116read-erased-again-clock-3 | 2503 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#117read-erased-again | 2508 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#118other-block-survives-setup | 2528 | 0 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#119other-block-survives-edge | 2639 | 1 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#120other-block-survives-command-removed | 2655 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#121other-block-survives-clock-1 | 2668 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#122other-block-survives-clock-1-low | 2675 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#123other-block-survives-clock-2 | 2685 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#124other-block-survives-clock-2-low | 2693 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#125other-block-survives-clock-3 | 2707 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#126other-block-survives | 2712 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#127back-to-back-reads-first-setup | 2732 | 0 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#128back-to-back-reads-first-taken | 2843 | 1 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#129back-to-back-reads-first-removed | 2859 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#130back-to-back-reads-sampled | 2872 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#131back-to-back-reads-sampled-low | 2879 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#132back-to-back-reads-releasing | 2889 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#133back-to-back-reads-second-setup | 2909 | 0 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#134back-to-back-reads-second-taken | 2922 | 1 |
0x1 |
0x00000002 |
0x78 |
1 |
1 |
not checked | not checked | not checked | not checked | 0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#135back-to-back-reads-second-removed | 2938 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#136back-to-back-reads-clock-1 | 3050 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#137back-to-back-reads-clock-1-low | 3055 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#138back-to-back-reads-clock-2 | 3067 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#139back-to-back-reads-clock-2-low | 3074 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#140back-to-back-reads-clock-3 | 3084 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#141back-to-back-reads | 3092 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked |
#142unknown-command-setup | 3107 | 0 |
0bXXX |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked |
#143unknown-command-rejected | 3121 | 1 |
0bXXX |
0x00000002 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | 1 |
not checked | 0 |
not checked | 0 |
not checked | not checked | not checked |
#144nop-preserves-error-setup | 3137 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#145nop-preserves-error-edge | 3143 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#146nop-preserves-error-command-removed | 3148 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#147nop-preserves-error-clock-1 | 3153 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#148nop-preserves-error-clock-1-low | 3158 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#149nop-preserves-error-clock-2 | 3163 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#150nop-preserves-error-clock-2-low | 3168 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#151nop-preserves-error-clock-3 | 3173 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#152nop-preserves-error | 3178 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | 0 |
not checked | not checked | not checked |
#153invalid-address-setup | 3202 | 0 |
0x1 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#154invalid-address-edge | 3207 | 1 |
0x1 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#155invalid-address-command-removed | 3218 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#156invalid-address-clock-1 | 3223 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#157invalid-address-clock-1-low | 3228 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#158invalid-address-clock-2 | 3233 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#159invalid-address-clock-2-low | 3238 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#160invalid-address-clock-3 | 3243 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#161invalid-address | 3248 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#162reserved-command-setup | 3265 | 0 |
0x7 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#163reserved-command-edge | 3270 | 1 |
0x7 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#164reserved-command-command-removed | 3281 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#165reserved-command-clock-1 | 3286 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#166reserved-command-clock-1-low | 3291 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#167reserved-command-clock-2 | 3296 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#168reserved-command-clock-2-low | 3301 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#169reserved-command-clock-3 | 3306 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#170reserved-command | 3311 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | 1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#171enable-then-disable-setup | 3328 | 0 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#172enable-then-disable-edge | 3335 | 1 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#173enable-then-disable-command-removed | 3349 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#174enable-then-disable-clock-1 | 3357 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#175enable-then-disable-clock-1-low | 3362 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#176enable-then-disable-clock-2 | 3367 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#177enable-then-disable-clock-2-low | 3372 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#178enable-then-disable-clock-3 | 3377 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#179enable-then-disable | 3382 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#180write-disable-setup | 3400 | 0 |
0x5 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#181write-disable-edge | 3407 | 1 |
0x5 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#182write-disable-command-removed | 3423 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#183write-disable-clock-1 | 3431 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#184write-disable-clock-1-low | 3436 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#185write-disable-clock-2 | 3441 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#186write-disable-clock-2-low | 3446 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#187write-disable-clock-3 | 3451 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked |
#188write-disable | 3456 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | not checked | 0 |
Scroll within the table for all rows and pins. Buses use hexadecimal; values containing X/Z use MSB-first binary. Inputs show the declared values in effect at each checkpoint, including retained inputs. Sequential tests also replay preparation changes between checkpoints, such as lowering the clock. Use the matching checkpoint label in the simulation below.
The control example follows the full device command stream, checking write-enable, errors, read qualification, and completion. It includes unknown-command rejection and NOP error preservation.
Embedded simulation¶
The standalone NORFlashCommandControlTest opens this component as MEMORY_ROOT. This component has one registered structural implementation.
Open NORFlashCommandControl<W> in the simulator
Source and tests¶
| Test | Coverage |
|---|---|
NORFlashCommandControlTest |
The complete standalone sequence shown above |
MemoryDeviceTimingTest |
Intermediate BUSY, busy-command rejection, and latched program payload in both complete-device fidelities |
3.3.5.5. NORFlash<W>¶
Complete word-read/program, block-erase NOR-style device.
IO pins¶
| Pin | Direction | Width | Description |
|---|---|---|---|
CLK |
Input | 1 | Strict 0โ1 command edge |
CMD |
Input | 3 | Command code below |
WORD_ADDR |
Input | 32 | Word address or word inside an erase block |
WRITE_DATA |
Input | W | Program payload |
WRITE_MASK |
Input | W/8 | Enabled program bytes |
BUSY |
Output | 1 | Read/program/erase in progress |
ERROR |
Output | 1 | Rejected request; next accepted non-NOP clears it |
WRITE_ENABLED |
Output | 1 | Current write-enable latch |
READ_VALID |
Output | 1 | Completed read available |
READ_DATA |
Output | W | Valid word, otherwise Z |
Behavior¶
Reads are word-addressed. Programming only clears bits within enabled bytes. Erase resets every word in the containing B-word block; an aligned block-base address is not required.
Commands and timing¶
A command is taken at a rising CLK edge while the device is idle. The steps
use the profile's NOR-flash intervals (listed under Timing).
| CMD | Operation | Legal when / effect | Steps |
|---|---|---|---|
| 0 | NOP | Other inputs ignored; status kept | None |
| 1 | READ | Valid word address | Read column (with a decoder replica); then READ_VALID |
| 2 | PROGRAM | Valid address, WEL = 1, binary mask; consumes WEL | Program pulse, pulse end, recovery |
| 3 | ERASE | Valid address, WEL = 1; consumes WEL; erases the containing B-word block | Erase pulse, pulse end, recovery |
| 4 | WREN | Sets WEL; address, data and mask ignored | At the edge |
| 5 | WRDI | Clears WEL; address, data and mask ignored | At the edge |
| 6โ7 | Reserved | Rejected | ERROR |
The end of each chain is sampled at the next edge and BUSY falls one edge
later, as a controller polling a real chip's status sees it.
Requests are latched when taken. Commands other than NOP while busy are
rejected; they neither cancel nor replace the running operation. WREN is
needed again after every accepted PROGRAM or ERASE, including a zero-mask
program, and a rejected command does not consume WEL. NOP keeps the status;
an accepted command clears the previous ERROR and read-valid state. A read
stays valid until superseded or invalidated. An initial unknown clock
followed by high is not a rising edge.
C++ example¶
The native device composes the bank and command control above. W is 8/16/32; capacity, row width, erase-block size and the step durations are construction parameters. It covers reads, WREN and WRDI, errors, zero masks, delayed program and erase, and stable state while busy, not only the final array change.
#include <cstdint>
#include <vector>
template<std::size_t W> struct FlashReference {
static_assert(W == 8 || W == 16 || W == 32);
FlashControlReference<W> control;
FlashBankReference bank;
bool high_z = true;
std::vector<std::optional<bool>> read_data = std::vector<std::optional<bool>>(W);
FlashReference(std::size_t words, std::size_t slots, std::size_t block,
std::size_t ticks, std::size_t program, std::size_t erase)
: control(words, slots, block, ticks, program, erase), bank(words / slots, W * slots) {}
void update(std::size_t now, const typename FlashControlReference<W>::Inputs& in) {
control.update(now, in);
std::vector<bool> wl(bank.rows.size(), false), erase(bank.rows.size());
std::vector<bool> drive(bank.columns.size());
std::vector<std::optional<bool>> data(bank.columns.size());
if (control.select) wl[control.row()] = true;
for (std::size_t r = 0; r < erase.size(); ++r) erase[r] = control.erase_row(r);
for (std::size_t c = 0; c < drive.size(); ++c) {
data[c] = control.data[c % W];
drive[c] = control.program && c / W == control.col() &&
(control.mask & (1u << ((c % W) / 8)));
}
bank.update(wl, erase, drive, data);
high_z = !control.valid;
for (std::size_t b = 0; b < W; ++b)
read_data[b] = high_z ? std::nullopt : bank.columns[control.col() * W + b];
}
// BUSY / ERROR / READ_VALID / WRITE_ENABLED = control.busy / error / valid / wel.
// Next scheduled phase: control.due (0 means none).
};
Unknown inputs¶
Command validation follows NORFlashCommandControl. Enabled program data bits may become X; an already-zero bit remains zero. Masked-off bytes ignore data, including X/Z. NOP preserves status; unknown idle commands invalidate previous read-valid like reserved codes. Wait for BUSY and propagation to settle. Timing parameters are abstract simulator units, not manufacturer performance figures.
Implementation¶
Structural implementation¶
COMMAND_CONTROL drives ROW_DECODE, write pulses, and per-row erase. STORAGE exposes the cell matrix and shared read columns. COLUMN_SELECT reads one word; WRITE_DRIVERS qualifies program bits; OUTPUT releases READ_DATA when invalid. All rows of the selected erase block receive the erase pulse.
Behavioral implementation¶
Uses initially erased packed MemoryStorage and the same command sequencer, with a separately implemented storage data path. Program applies four-state AND within enabled bytes; erase writes ones one word at a time to bound temporary allocation. Read-only inspector history can be disabled for scale; debug loading cannot bypass WREN/PROGRAM/ERASE.
Timing. The command chains use these intervals; in the realistic profiles the read, program and erase times are the datasheet's:
Analog intervals of the NOR-flash devices, per timing profile.
| NOR-flash interval | unitticks | embeddedtime | desktoptime |
|---|---|---|---|
| Read column, base | 96 | 120 ns | 120 ns |
| Read column, per row | 0 | 0 ps | 0 ps |
| Program pulse | 128 | 150 ยตs | 150 ยตs |
| Erase pulse | 256 | 410 ms | 410 ms |
| End of a pulse | 32 | 120 ps | 84 ps |
| Recovery after a pulse | 32 | 120 ps | 84 ps |
Programming and erasing take microseconds to milliseconds, thousands to
millions of clock cycles. The device works through them on its own time and
reports BUSY; its controller synchronizes BUSY into its clock instead of
counting cycles. Through the controller, at 256 KiB:
Measured latency in clock cycles, from the edge that accepts a request to the edge that takes its response, through the compact endpoint of a 256 KiB memory at the advanced core's certified clock (unit 80 ticks, embedded 4.1 ns, desktop 2.86 ns). Refresh is off. โConfiguredโ rows are too long to simulate and show the device interval instead.
| Memory | Access | unitcycles | embeddedcycles | desktopcycles |
|---|---|---|---|---|
| NOR flash | read | 6 (480 ticks) | 34 (140 ns) | 47 (134 ns) |
| NOR flash | program one word | 8 (640 ticks) | 36,555 (150 ยตs) | 52,490 (150 ยตs) |
| NOR flash | erase block | 10 (800 ticks) | โ 99,902,535 (410 ms, configured) | โ 143,456,963 (410 ms, configured) |
Examples¶
All 189 recorded rows of NORFlashTest, in checkpoint order. Outputs are test expectations verified against the simulation. Time is the absolute settled checkpoint time in simulator units, not milliseconds or CPU cycles.
Default scenario profile: fidelity-gate-v1 / structural (ed03f70afe360dba). Changing fidelity or the circuit can change these times.
| Checkpointzero-based number ยท timeline label | Timesimulator units | CLKInput ยท 1 bit |
CMDInput ยท 3 bit |
WORD_ADDRInput ยท 32 bit |
WRITE_DATAInput ยท 8 bit |
WRITE_MASKInput ยท 1 bit |
BUSYExpected output ยท 1 bit |
ERRORExpected output ยท 1 bit |
READ_DATAExpected output ยท 8 bit |
READ_VALIDExpected output ยท 1 bit |
WRITE_ENABLEDExpected output ยท 1 bit |
|---|---|---|---|---|---|---|---|---|---|---|---|
#0ready-erased | 101 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | 0 |
#1read-erased-setup | 120 | 0 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#2read-erased-edge | 231 | 1 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#3read-erased-command-removed | 247 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#4read-erased-clock-1 | 260 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#5read-erased-clock-1-low | 267 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#6read-erased-clock-2 | 277 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#7read-erased-clock-2-low | 285 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#8read-erased-clock-3 | 299 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#9read-erased | 304 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | 0xFF |
1 |
not checked |
#10program-without-enable-setup | 322 | 0 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#11program-without-enable-edge | 329 | 1 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#12program-without-enable-command-removed | 340 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#13program-without-enable-clock-1 | 345 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#14program-without-enable-clock-1-low | 350 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#15program-without-enable-clock-2 | 355 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#16program-without-enable-clock-2-low | 360 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#17program-without-enable-clock-3 | 365 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#18program-without-enable | 370 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
1 |
not checked | not checked | not checked |
#19write-enable-setup | 387 | 0 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#20write-enable-edge | 394 | 1 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#21write-enable-command-removed | 408 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#22write-enable-clock-1 | 416 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#23write-enable-clock-1-low | 421 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#24write-enable-clock-2 | 426 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#25write-enable-clock-2-low | 431 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#26write-enable-clock-3 | 436 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#27write-enable | 441 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
0 |
not checked | not checked | 1 |
#28program-word-setup | 462 | 0 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#29program-word-edge | 733 | 1 |
0x2 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#30program-word-command-removed | 749 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#31program-word-clock-1 | 760 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#32program-word-clock-1-low | 767 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#33program-word-clock-2 | 777 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#34program-word-clock-2-low | 785 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#35program-word-clock-3 | 799 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#36program-word | 804 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
0 |
not checked | not checked | 0 |
#37read-programmed-setup | 824 | 0 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#38read-programmed-edge | 935 | 1 |
0x1 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#39read-programmed-command-removed | 951 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#40read-programmed-clock-1 | 964 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#41read-programmed-clock-1-low | 971 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#42read-programmed-clock-2 | 981 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#43read-programmed-clock-2-low | 989 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#44read-programmed-clock-3 | 1003 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#45read-programmed | 1008 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | 0x81 |
1 |
not checked |
#46enable-again-setup | 1026 | 0 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#47enable-again-edge | 1033 | 1 |
0x4 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#48enable-again-command-removed | 1047 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#49enable-again-clock-1 | 1055 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#50enable-again-clock-1-low | 1060 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#51enable-again-clock-2 | 1065 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#52enable-again-clock-2-low | 1070 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#53enable-again-clock-3 | 1075 | 1 |
0x0 |
0x00000000 |
0x81 |
1 |
not checked | not checked | not checked | not checked | not checked |
#54enable-again | 1080 | 0 |
0x0 |
0x00000000 |
0x81 |
1 |
0 |
not checked | not checked | not checked | not checked |
#55cannot-program-zero-to-one-setup | 1101 | 0 |
0x2 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#56cannot-program-zero-to-one-edge | 1372 | 1 |
0x2 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#57cannot-program-zero-to-one-command-removed | 1388 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#58cannot-program-zero-to-one-clock-1 | 1399 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#59cannot-program-zero-to-one-clock-1-low | 1406 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#60cannot-program-zero-to-one-clock-2 | 1416 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#61cannot-program-zero-to-one-clock-2-low | 1424 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#62cannot-program-zero-to-one-clock-3 | 1438 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#63cannot-program-zero-to-one | 1443 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | not checked | not checked | not checked |
#64read-unchanged-setup | 1463 | 0 |
0x1 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#65read-unchanged-edge | 1574 | 1 |
0x1 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#66read-unchanged-command-removed | 1590 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#67read-unchanged-clock-1 | 1603 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#68read-unchanged-clock-1-low | 1610 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#69read-unchanged-clock-2 | 1620 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#70read-unchanged-clock-2-low | 1628 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#71read-unchanged-clock-3 | 1642 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#72read-unchanged | 1647 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | 0x81 |
1 |
not checked |
#73enable-other-block-setup | 1665 | 0 |
0x4 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#74enable-other-block-edge | 1672 | 1 |
0x4 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#75enable-other-block-command-removed | 1686 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#76enable-other-block-clock-1 | 1694 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#77enable-other-block-clock-1-low | 1699 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#78enable-other-block-clock-2 | 1704 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#79enable-other-block-clock-2-low | 1709 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#80enable-other-block-clock-3 | 1714 | 1 |
0x0 |
0x00000000 |
0xFF |
1 |
not checked | not checked | not checked | not checked | not checked |
#81enable-other-block | 1719 | 0 |
0x0 |
0x00000000 |
0xFF |
1 |
0 |
not checked | not checked | not checked | not checked |
#82program-other-block-setup | 1740 | 0 |
0x2 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#83program-other-block-edge | 2011 | 1 |
0x2 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#84program-other-block-command-removed | 2027 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#85program-other-block-clock-1 | 2038 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#86program-other-block-clock-1-low | 2045 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#87program-other-block-clock-2 | 2055 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#88program-other-block-clock-2-low | 2063 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#89program-other-block-clock-3 | 2077 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#90program-other-block | 2082 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked |
#91enable-erase-setup | 2099 | 0 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#92enable-erase-edge | 2106 | 1 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#93enable-erase-command-removed | 2120 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#94enable-erase-clock-1 | 2128 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#95enable-erase-clock-1-low | 2133 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#96enable-erase-clock-2 | 2138 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#97enable-erase-clock-2-low | 2143 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#98enable-erase-clock-3 | 2148 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#99enable-erase | 2153 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked |
#100erase-block-zero-setup | 2173 | 0 |
0x3 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#101erase-block-zero-edge | 2507 | 1 |
0x3 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#102erase-block-zero-command-removed | 2523 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#103erase-block-zero-clock-1 | 2534 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#104erase-block-zero-clock-1-low | 2541 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#105erase-block-zero-clock-2 | 2551 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#106erase-block-zero-clock-2-low | 2559 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#107erase-block-zero-clock-3 | 2572 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#108erase-block-zero | 2577 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | 0 |
#109read-erased-again-setup | 2597 | 0 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#110read-erased-again-edge | 2708 | 1 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#111read-erased-again-command-removed | 2724 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#112read-erased-again-clock-1 | 2737 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#113read-erased-again-clock-1-low | 2744 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#114read-erased-again-clock-2 | 2754 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#115read-erased-again-clock-2-low | 2762 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#116read-erased-again-clock-3 | 2776 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#117read-erased-again | 2781 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | 0xFF |
1 |
not checked |
#118other-block-survives-setup | 2801 | 0 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#119other-block-survives-edge | 2912 | 1 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#120other-block-survives-command-removed | 2928 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#121other-block-survives-clock-1 | 2941 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#122other-block-survives-clock-1-low | 2948 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#123other-block-survives-clock-2 | 2958 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#124other-block-survives-clock-2-low | 2966 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#125other-block-survives-clock-3 | 2980 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#126other-block-survives | 2985 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | 0x78 |
1 |
not checked |
#127back-to-back-reads-first-setup | 3005 | 0 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#128back-to-back-reads-first-taken | 3116 | 1 |
0x1 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#129back-to-back-reads-first-removed | 3132 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#130back-to-back-reads-sampled | 3145 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#131back-to-back-reads-sampled-low | 3152 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#132back-to-back-reads-releasing | 3162 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked |
#133back-to-back-reads-second-setup | 3182 | 0 |
0x1 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#134back-to-back-reads-second-taken | 3286 | 1 |
0x1 |
0x00000002 |
0x78 |
1 |
1 |
0 |
not checked | not checked | not checked |
#135back-to-back-reads-second-removed | 3302 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#136back-to-back-reads-clock-1 | 3414 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#137back-to-back-reads-clock-1-low | 3419 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#138back-to-back-reads-clock-2 | 3431 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#139back-to-back-reads-clock-2-low | 3438 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#140back-to-back-reads-clock-3 | 3448 | 1 |
0x0 |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#141back-to-back-reads | 3456 | 0 |
0x0 |
0x00000002 |
0x78 |
1 |
0 |
not checked | 0x78 |
1 |
not checked |
#142unknown-command-setup | 3471 | 0 |
0bXXX |
0x00000002 |
0x78 |
1 |
not checked | not checked | not checked | 1 |
not checked |
#143unknown-command-rejected | 3485 | 1 |
0bXXX |
0x00000002 |
0x78 |
1 |
0 |
1 |
0bZZZZZZZZ |
0 |
not checked |
#144nop-preserves-error-setup | 3501 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#145nop-preserves-error-edge | 3507 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#146nop-preserves-error-command-removed | 3512 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#147nop-preserves-error-clock-1 | 3517 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#148nop-preserves-error-clock-1-low | 3522 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#149nop-preserves-error-clock-2 | 3527 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#150nop-preserves-error-clock-2-low | 3532 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#151nop-preserves-error-clock-3 | 3537 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#152nop-preserves-error | 3542 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
1 |
not checked | 0 |
not checked |
#153invalid-address-setup | 3566 | 0 |
0x1 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#154invalid-address-edge | 3571 | 1 |
0x1 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#155invalid-address-command-removed | 3582 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#156invalid-address-clock-1 | 3587 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#157invalid-address-clock-1-low | 3592 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#158invalid-address-clock-2 | 3597 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#159invalid-address-clock-2-low | 3602 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#160invalid-address-clock-3 | 3607 | 1 |
0x0 |
0x00000004 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#161invalid-address | 3612 | 0 |
0x0 |
0x00000004 |
0x78 |
1 |
0 |
1 |
not checked | not checked | not checked |
#162reserved-command-setup | 3629 | 0 |
0x7 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#163reserved-command-edge | 3634 | 1 |
0x7 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#164reserved-command-command-removed | 3645 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#165reserved-command-clock-1 | 3650 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#166reserved-command-clock-1-low | 3655 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#167reserved-command-clock-2 | 3660 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#168reserved-command-clock-2-low | 3665 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#169reserved-command-clock-3 | 3670 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#170reserved-command | 3675 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
1 |
not checked | not checked | not checked |
#171enable-then-disable-setup | 3692 | 0 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#172enable-then-disable-edge | 3699 | 1 |
0x4 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#173enable-then-disable-command-removed | 3713 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#174enable-then-disable-clock-1 | 3721 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#175enable-then-disable-clock-1-low | 3726 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#176enable-then-disable-clock-2 | 3731 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#177enable-then-disable-clock-2-low | 3736 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#178enable-then-disable-clock-3 | 3741 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#179enable-then-disable | 3746 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | not checked |
#180write-disable-setup | 3764 | 0 |
0x5 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#181write-disable-edge | 3771 | 1 |
0x5 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#182write-disable-command-removed | 3787 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#183write-disable-clock-1 | 3795 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#184write-disable-clock-1-low | 3800 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#185write-disable-clock-2 | 3805 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#186write-disable-clock-2-low | 3810 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#187write-disable-clock-3 | 3815 | 1 |
0x0 |
0x00000000 |
0x78 |
1 |
not checked | not checked | not checked | not checked | not checked |
#188write-disable | 3820 | 0 |
0x0 |
0x00000000 |
0x78 |
1 |
0 |
not checked | not checked | not checked | 0 |
Scroll within the table for all rows and pins. Buses use hexadecimal; values containing X/Z use MSB-first binary. Inputs show the declared values in effect at each checkpoint, including retained inputs. Sequential tests also replay preparation changes between checkpoints, such as lowering the clock. Use the matching checkpoint label in the simulation below.
Rejects programming without WREN, programs 0x81, confirms programming 0xFF cannot restore cleared bits, programs 0x78 in another block, then erases the first block while preserving the second. Also checks invalid/unknown/reserved commands, NOP status preservation, and WRDI.
Embedded simulation¶
The standalone NORFlashTest opens this component as MEMORY_ROOT. Use the explorer to compare structural and behavioral implementations.
Open NORFlash<W> in the simulator
Source and tests¶
| Test | Coverage |
|---|---|
NORFlashTest |
The complete standalone sequence shown above |
MemoryDeviceContractTest |
Width/geometry and mixed-fidelity checks, seeded byte-mask/program oracle, readonly history, allocation limits |
MemoryDeviceTimingTest |
Early BUSY, in-flight command rejection, latched data, and finite event queues |
MemoryDeviceDocumentationTest |
Compile the exact references; test W=8/16/32, masks, WREN/WRDI, delayed program/erase, block isolation, conflicts and completion edges; replay native command/device binary-input prefixes |