memea

Module db

Source
Expand description

Database management for MemEA memory peripheral components.

This module provides functionality to manage and serialize component databases containing memory cells, logic blocks, switches, and ADCs. The database supports both YAML and JSON formats for storage and retrieval.

Structs§

  • Analog-to-Digital Converter (ADC) parameters.
  • Memory core cell parameters.
  • Component database containing all available peripheral elements.
  • Physical dimensions of a component including size and enclosure.
  • Logic block parameters.
  • Switch component parameters.

Enums§

  • Enumeration of component types available in the database.
  • Errors that can occur during database operations.

Functions§

  • Builds a database by deserializing from a YAML or JSON file.
  • Prompts the user for input and parses it to the specified type.
  • Checks if a file path has a supported extension for database files.
  • Writes a database to file with overwrite confirmation if the file exists.