emu

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

README

ulp-emu

This ULP emulator is used to assist with debugging the compiler project. It is not cycle accurate and should not be used for simulating real life conditions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UlpEmu

type UlpEmu struct {
	R        [4]uint16        // registers R0 through R3
	Overflow bool             // overflow flag
	Zero     bool             // zero flag
	SC       uint8            // stage count register
	Memory   [8176 / 4]uint32 // memory visible to the ulp
	IP       uint16           // instruction pointer
	Wake     bool             // esp32 wake indicator
	// contains filtered or unexported fields
}

func (*UlpEmu) DecodeExecute

func (u *UlpEmu) DecodeExecute(instr uint32) error

func (*UlpEmu) Fetch

func (u *UlpEmu) Fetch() (uint32, error)

func (*UlpEmu) LoadBinary

func (u *UlpEmu) LoadBinary(bin []uint8) error

func (*UlpEmu) RunWithSystem

func (u *UlpEmu) RunWithSystem(maxCycles uint64, t *testing.T) (string, error)

func (*UlpEmu) Tick

func (u *UlpEmu) Tick() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL