Expand description
Emulates the principal central components of the TX-2.
§TX-2 Functionality implemented in this module
The functionality of this module is conceptually similar to the CPU of a modern computer, although on the real TX-2 these functions were split across several identifiably separate units (“elements”).
§Functions of the In/Out Element
Other functions of the In/Out element are implemented in the io module.
§Functions of the Exchange Element
- Remember the setting of the TSP (Toggle Start Point) register
Re-exports§
use std::collections::BTreeMap;🔒use std::collections::HashSet;🔒use std::fmt::Write;🔒use std::ops::BitAnd;🔒use std::time::Duration;🔒use tracing::Level;🔒use tracing::event;🔒use tracing::event;🔒use tracing::event_enabled;🔒use tracing::span;🔒use tracing::span;🔒use base::instruction::Inst;🔒use base::instruction::Instruction;🔒use base::instruction::Opcode;🔒use base::instruction::SymbolicInstruction;🔒use base::subword;🔒use super::alarm::Alarm;🔒use super::alarm::AlarmDetails;🔒use super::alarm::AlarmKind;🔒use super::alarm::Alarmer;🔒use super::alarm::BadMemOp;🔒use super::alarmunit::AlarmUnit;🔒use super::context::Context;🔒use super::diagnostics::CurrentInstructionDiagnostics;🔒use super::diagnostics::DiagnosticFetcher;🔒use super::exchanger::SystemConfiguration;🔒use super::exchanger::exchanged_value_for_load;🔒use super::exchanger::exchanged_value_for_store;🔒use super::exchanger::standard_plugboard_f_memory_settings;🔒use super::io::DeviceManager;🔒use super::memory;🔒use super::memory::ExtraBits;🔒use super::memory::MemoryMapped;🔒use super::memory::MemoryOpFailure;🔒use super::memory::MemoryUnit;🔒use super::memory::MetaBitChange;🔒use trap::TrapCircuit;🔒use base::prelude::*;🔒use super::*;🔒
Modules§
- op_
configuration 🔒 - Implementations of “Configuration Memory Class” opcodes
- op_
index 🔒 - Implementations of “Index Register Class” opcodes
- op_io 🔒
- op_jump 🔒
- op_
loadstore 🔒 - Implementations of “Load-Store Class” opcodes
- timing 🔒
- Instruction and event timing.
- trap 🔒
- Emulates the trap circuit and I/O Unit 42. See TX-2 User Handbook Chapter 4 section 42.
Structs§
- Control
Registers - Registers from various elements of the TX-2.
- Control
Unit ControlUnitsimulates the operation of the Control Element of the TX-2 computer.- Opcode
Result 🔒 - Sequence
Flags 🔒 - Flags represent requests to run for instruction sequences (today one might describe these as threads). Some sequences are special: