Documentation ¶
Overview ¶
BusErrors
bus
pcmba
Index ¶
- Constants
- type Bus
- type Cell
- type IllegalAddressError
- type PCMBA
- func (ba *PCMBA) AndFlag(index types.HCWORD, value types.HCWORD)
- func (ba *PCMBA) GetFlag(index types.HCWORD) types.HCWORD
- func (ba *PCMBA) Init(logicSize types.HCWORD, mb *mem.MemoryBank)
- func (ba *PCMBA) Load(addr types.HCWORD, dest []types.HCWORD) error
- func (ba *PCMBA) OrFlag(index types.HCWORD, value types.HCWORD)
- func (ba *PCMBA) PreTick()
- func (ba *PCMBA) Set(addr types.HCWORD, value types.HCWORD) error
- func (ba *PCMBA) SetBatch(addr types.HCWORD, values []types.HCWORD) error
- func (ba *PCMBA) Tick()
- func (ba *PCMBA) ToCell(id, addr types.HCWORD, values []types.HCWORD) error
- func (ba *PCMBA) Trylock(addr types.HCWORD, size types.HCWORD)
- func (ba *PCMBA) Unlock(addr types.HCWORD, size types.HCWORD)
Constants ¶
View Source
const (
FLAGS_SIZE = 64
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface { Load(addr types.HCWORD, dest []types.HCWORD) error Set(addr types.HCWORD, value types.HCWORD) error SetBatch(addr types.HCWORD, values []types.HCWORD) error GetFlag(index types.HCWORD) types.HCWORD OrFlag(index types.HCWORD, value types.HCWORD) AndFlag(index types.HCWORD, value types.HCWORD) // It's better to do lock in OS, without the supporting from HW // The lock result will be setted after tick Trylock(addr types.HCWORD, size types.HCWORD) Unlock(addr types.HCWORD, size types.HCWORD) ToCell(id, addr types.HCWORD, values []types.HCWORD) error }
type IllegalAddressError ¶
func NewIllegalAddressError ¶
func NewIllegalAddressError(addr types.HCWORD) *IllegalAddressError
func (*IllegalAddressError) Error ¶
func (ia *IllegalAddressError) Error() string
Click to show internal directories.
Click to hide internal directories.