Documentation
¶
Index ¶
- func Counter4(d0, d1, d2, d3, load, clear *Line) []*Line
- func Decoder(op0, op1, op2, op3, ncflg *Line) (sela, selb *Line, nload [4]*Line)
- func IC74HC153(c10, c11, c12, c13, c20, c21, c22, c23, a, b *Line) (y1, y2 *Line)
- func IC74HC161C(d0, d1, d2, d3, nload, nclear *Line) (q []*Line)
- func IC74HC161R(d0, d1, d2, d3, nload, nclear *Line) (q []*Line)
- func IC74HC283(a0, a1, a2, a3, b0, b1, b2, b3, c0 *Line) (s [4]*Line, c4 *Line)
- func IC74HC74(d, nclear *Line) (q, nq *Line)
- func Initialize()
- func ROM(memory [][]*Line, in []*Line) (out []*Line)
- func Register4(d0, d1, d2, d3, load, clear *Line) []*Line
- func TickTock()
- func ToString(list []int) string
- type CPUInfo
- func (c *CPUInfo) ChangeDIPSW(sw int)
- func (c *CPUInfo) GetStateOfCarryFlag() []int
- func (c *CPUInfo) GetStateOfDIPSW() []int
- func (c *CPUInfo) GetStateOfMemory() [][]int
- func (c *CPUInfo) GetStateOfProgramCounter() []int
- func (c *CPUInfo) GetStateOfRegisterA() []int
- func (c *CPUInfo) GetStateOfRegisterB() []int
- func (c *CPUInfo) GetStateOfRegisterC() []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IC74HC153 ¶
func IC74HC153(c10, c11, c12, c13, c20, c21, c22, c23, a, b *Line) (y1, y2 *Line)
IC74HC153 is Selector
func IC74HC161C ¶
func IC74HC161C(d0, d1, d2, d3, nload, nclear *Line) (q []*Line)
func IC74HC161R ¶
func IC74HC161R(d0, d1, d2, d3, nload, nclear *Line) (q []*Line)
func IC74HC283 ¶
func IC74HC283(a0, a1, a2, a3, b0, b1, b2, b3, c0 *Line) (s [4]*Line, c4 *Line)
IC74HC283 is 4bit full adder
func Initialize ¶
func Initialize()
func ROM ¶
func ROM(memory [][]*Line, in []*Line) (out []*Line)
ROM is 8bit x 16word memory. Looping 8 times after enabling one of the selectors to retrieve memory contents. For example, if you want to get the last memory:
Input Selector Memory +---------------+ <-+ (H,H,H,H) s[0] ----> | 8bit | | (L) +---------------+ | [4]in s[1] ----> | .... | | 16 | (L) +---------------+ | word +-> BDec -> s[n] ----> | .... | | (L) +---------------+ | s[15] ---> | 8bit (Target) | | (H) +---------------+ <-+ | | x 8times loop | +---> [8]out
Types ¶
type CPUInfo ¶
type CPUInfo struct {
// contains filtered or unexported fields
}
func (*CPUInfo) ChangeDIPSW ¶
func (*CPUInfo) GetStateOfCarryFlag ¶
func (*CPUInfo) GetStateOfDIPSW ¶
func (*CPUInfo) GetStateOfMemory ¶
func (*CPUInfo) GetStateOfProgramCounter ¶
func (*CPUInfo) GetStateOfRegisterA ¶
func (*CPUInfo) GetStateOfRegisterB ¶
func (*CPUInfo) GetStateOfRegisterC ¶
Click to show internal directories.
Click to hide internal directories.