#include <stdint.h>
#include "opcodes.h"
#include "console.h"
#include "reader.h"
Go to the source code of this file.
◆ CLOCK_PERIOD
#define CLOCK_PERIOD 14000 /* in usec, interval between pulse lines */ |
Definition at line 9 of file ge.h.
◆ ENUMERATE_CLOCKS
Value:
X(TO10) \
X(TO11) \
X(TO15) \
X(TO19) \
X(TO20) \
X(TO25) \
X(TO30) \
X(TO40) \
X(TO50) \
X(TO50_1) \
X(TO60) \
X(TO64) \
X(TO65) \
X(TO70) \
X(TO80) \
X(TO89) \
X(TO90) \
X(TI05) \
X(TI06) \
X(TI10) \
X(END_OF_STATUS)
Definition at line 12 of file ge.h.
◆ MEM_SIZE
Definition at line 10 of file ge.h.
Definition at line 37 of file ge.h.
◆ on_pulse_cb
typedef void(* on_pulse_cb) (struct ge *) |
Definition at line 596 of file ge.h.
◆ clock
Enumerator |
---|
ENUMERATE_CLOCKS | |
Definition at line 36 of file ge.h.
◆ knot_ni_source
Enumerator |
---|
NS_CN1 | |
NS_CN2 | |
NS_CN3 | |
NS_CN4 | |
NS_RO1 | |
NS_RO2 | |
NS_UA2 | |
NS_UA1 | |
Definition at line 72 of file ge.h.
◆ connectors_first_clock()
void connectors_first_clock |
( |
struct ge * |
ge | ) |
|
Definition at line 240 of file ge.c.
◆ fsn_last_clock()
void fsn_last_clock |
( |
struct ge * |
ge | ) |
|
Commit the future state.
Transfers the results of the future state network in the various selectors. For now it's an ad hoc behaviour, not described in detail in the currently available docs.
Definition at line 248 of file ge.c.
◆ ge_clear()
void ge_clear |
( |
struct ge * |
ge | ) |
|
Emulate the press of the "clear" button in the console.
Definition at line 25 of file ge.c.
◆ ge_clock_name()
const char* ge_clock_name |
( |
enum clock |
c | ) |
|
The clock period name name.
Returns the string destribing the clock period
Definition at line 120 of file ge.c.
◆ ge_deinit()
int ge_deinit |
( |
struct ge * |
ge | ) |
|
Deinitialize the emulator.
Definition at line 234 of file ge.c.
◆ ge_init()
void ge_init |
( |
struct ge * |
ge | ) |
|
Initialize the emulator.
Definition at line 14 of file ge.c.
◆ ge_load()
void ge_load |
( |
struct ge * |
ge | ) |
|
Emulate the press of the "load" button in the console.
Definition at line 62 of file ge.c.
◆ ge_load_1()
void ge_load_1 |
( |
struct ge * |
ge | ) |
|
Emulate the press of the "load 1" button in the console.
Definition at line 72 of file ge.c.
◆ ge_load_2()
void ge_load_2 |
( |
struct ge * |
ge | ) |
|
Emulate the press of the "load 2" button in the console.
Definition at line 89 of file ge.c.
◆ ge_load_program()
int ge_load_program |
( |
struct ge * |
ge, |
|
|
uint8_t * |
program, |
|
|
uint8_t |
size |
|
) |
| |
Copy a program at the start of memory.
Definition at line 49 of file ge.c.
◆ ge_print_registers_verbose()
void ge_print_registers_verbose |
( |
struct ge * |
ge | ) |
|
Definition at line 143 of file ge.c.
◆ ge_register_peri()
int ge_register_peri |
( |
struct ge * |
ge, |
|
|
struct ge_peri * |
p |
|
) |
| |
◆ ge_run()
int ge_run |
( |
struct ge * |
ge | ) |
|
◆ ge_run_cycle()
int ge_run_cycle |
( |
struct ge * |
ge | ) |
|
Run all GE "mastri" clock periods until next clock cycle.
Definition at line 223 of file ge.c.
◆ ge_run_pulse()
int ge_run_pulse |
( |
struct ge * |
ge | ) |
|
Run a single pulse (i.e. a single GE "mastri" clock periods)
Definition at line 177 of file ge.c.
◆ ge_start()
void ge_start |
( |
struct ge * |
ge | ) |
|
Emulate the press of the "start" button in the console.
Definition at line 94 of file ge.c.
◆ pulse()
void pulse |
( |
struct ge * |
ge | ) |
|