one_fpga/core/rom.rs
1use std::io::Cursor;
2use std::path::PathBuf;
3
4/// A ROM, including any information the core needs to know about the ROM.
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub enum Rom {
7 /// A ROM that is stored in memory.
8 Memory(Option<PathBuf>, Cursor<Vec<u8>>),
9
10 /// A ROM that is stored in a file on the file system.
11 File(PathBuf),
12}