Documentation
¶
Index ¶
Constants ¶
View Source
const INSN_MASK = uint(1)
View Source
const INSN_WRITE = uint(2)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitSystem ¶
type BitSystem struct {
// contains filtered or unexported fields
}
Bit system.
Can execute simple instructions such as INSN_WRITE and INSN_MASK. The backing Memory decides what to do with the current mask on writes.
func NewBitSystem ¶
type FlatMemory ¶
type FlatMemory struct {
// contains filtered or unexported fields
}
Flat sparse memory.
Writes will mask the value being written.
func NewFlatMemory ¶
func NewFlatMemory() *FlatMemory
func (*FlatMemory) Addresses ¶
func (m *FlatMemory) Addresses() uint64
func (*FlatMemory) Sum ¶
func (m *FlatMemory) Sum() uint64
type FloatMemory ¶
type FloatMemory struct {
// contains filtered or unexported fields
}
Floating-address sparse memory.
Writes will mask the address, potentially causing writes to many addresses. The don't-care bits cause the address to assume all possible combinations.
func NewFloatMemory ¶
func NewFloatMemory(maskWidth int) *FloatMemory
func (*FloatMemory) Addresses ¶
func (m *FloatMemory) Addresses() uint64
func (*FloatMemory) Sum ¶
func (m *FloatMemory) Sum() uint64
Click to show internal directories.
Click to hide internal directories.