diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-24 05:19:57 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-05-04 02:23:18 +0200 |
| commit | 8401fde7b1d10dc4c1ce9117c1eda7a21067778b (patch) | |
| tree | efde273443fd4591df3b4e1a270f61185f9f09e0 /arch/v1/vars.py | |
| parent | 397286c87dc9aa3cba458973bdc65b3f3be14657 (diff) | |
Removes old data server and cleans up python code
Diffstat (limited to 'arch/v1/vars.py')
| -rw-r--r-- | arch/v1/vars.py | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/arch/v1/vars.py b/arch/v1/vars.py new file mode 100644 index 0000000..cf4f376 --- /dev/null +++ b/arch/v1/vars.py @@ -0,0 +1,99 @@ +inst_set = [ + (["noop"], " "), + (["nop0"], "0"), + (["nop1"], "1"), + (["nop2"], "2"), + (["nop3"], "3"), + (["jmpb"], "("), + (["jmpf"], ")"), + (["adrb"], "["), + (["adrf"], "]"), + (["ifnz"], "?"), + (["allb"], "{"), + (["allf"], "}"), + (["bswp"], "%"), + (["bclr"], "|"), + (["splt"], "$"), + (["addn"], "+"), + (["subn"], "-"), + (["muln"], "*"), + (["divn"], "/"), + (["incn"], "^"), + (["decn"], "v"), + (["notn"], "!"), + (["shfl"], "<"), + (["shfr"], ">"), + (["zero"], "z"), + (["unit"], "u"), + (["pshn"], "#"), + (["popn"], "~"), + (["load"], "."), + (["wrte"], ":"), + (["dupl"], "="), + (["swap"], "x"), + (["keya"], "a"), + (["keyb"], "b"), + (["keyc"], "c"), + (["keyd"], "d"), + (["keye"], "e"), + (["keyf"], "f"), + (["keyg"], "g"), + (["keyh"], "h"), + (["keyi"], "i"), + (["keyj"], "j"), + (["keyk"], "k"), + (["keyl"], "l"), + (["keym"], "m"), + (["keyn"], "n"), + (["keyo"], "o"), + (["keyp"], "p"), + (["loka"], "A"), + (["lokb"], "B"), + (["lokc"], "C"), + (["lokd"], "D"), + (["loke"], "E"), + (["lokf"], "F"), + (["lokg"], "G"), + (["lokh"], "H"), + (["loki"], "I"), + (["lokj"], "J"), + (["lokk"], "K"), + (["lokl"], "L"), + (["lokm"], "M"), + (["lokn"], "N"), + (["loko"], "O"), + (["lokp"], "P"), +] + +core_data_fields = [ + ("uint64_t", f"ipop[{len(inst_set)}]"), # instruction population counter + ("uint64_t", f"iexe[{len(inst_set)}]"), # instruction execution counter + ("uint64_t", f"iwrt[{len(inst_set)}]"), # instruction write counter + ("uint64_t", "wmb0"), # writes within mb0 counter + ("uint64_t", "wmb1"), # writes within mb1 counter + ("uint64_t", "wdea"), # writes within dead code counter + ("uint64_t", f"weva[{2 ** globals()["args"].mvec_pow}]"), # write events array + ("uint64_t", f"xeva[{2 ** globals()["args"].mvec_pow}]"), # memory block swap events array +] +core_fields = [] +mvec_loop = False +proc_fields = [ + ("uint64_t", "ip"), + ("uint64_t", "sp"), + ("uint64_t", "mb0a"), + ("uint64_t", "mb0s"), + ("uint64_t", "mb1a"), + ("uint64_t", "mb1s"), + ("uint64_t", "r0x"), + ("uint64_t", "r1x"), + ("uint64_t", "r2x"), + ("uint64_t", "r3x"), + ("uint64_t", "s0"), + ("uint64_t", "s1"), + ("uint64_t", "s2"), + ("uint64_t", "s3"), + ("uint64_t", "s4"), + ("uint64_t", "s5"), + ("uint64_t", "s6"), + ("uint64_t", "s7"), +] |
