64 Commits

Author SHA1 Message Date
Redo
5aa11f9e43 make gates use net state pointers 2022-11-04 15:50:45 -06:00
Redo
caa9ed5de3 make net states pointers - fix 2022-11-04 15:40:32 -06:00
Redo
9e0c196b63 make net states pointers 2022-11-04 15:39:08 -06:00
Redo
20b05812df fix typo 2022-11-04 15:33:06 -06:00
Redo
f1b909279c make in_queue int tptre 2022-11-04 15:32:30 -06:00
Redo
7823e413ee fix gate get port state 2022-11-04 15:11:59 -06:00
Redo
b1c5eb1479 remove gate ffi struct 2022-11-04 15:06:50 -06:00
Redo
a9ac30920e fix typo 2022-11-04 15:06:01 -06:00
Redo
a9056df54d remove gate ffi struct 2022-11-04 15:04:49 -06:00
Redo
5438de0adf fix gate struct sizing 2022-11-04 13:21:41 -06:00
Redo
7e19e20caf remove unused call from gate init 2022-11-04 13:16:30 -06:00
Redo
d95447b55d remove code field from gatedef 2022-11-04 13:15:55 -06:00
Redo
7b0dcb8fd7 remove code field from gatedef 2022-11-04 13:15:24 -06:00
Redo
0ac3f3e495 fix errors 2022-11-04 13:14:05 -06:00
Redo
cdbf3ed089 make gates use cdata for critical logic 2022-11-04 13:10:10 -06:00
Redo
07b3decc45 remove debug luaijt arg 2022-10-05 15:44:23 -06:00
Redo0
bcc39d9f20 make input queue stack again 2021-07-24 15:35:00 -05:00
Redo0
7109dd70a2 add rainbow wires 2021-06-07 15:38:25 -05:00
Redo0
bfa1190cfe mark logic critical sections in tables 2021-06-05 19:38:45 -05:00
Redo0
00dc81948d fix bugs with queue inlining; inline gate queue as well 2021-06-05 19:25:09 -05:00
Redo0
d3d03ce9a7 stop clearing queue arrays 2021-06-05 19:02:28 -05:00
Redo0
19d2e36fd6 more optimizations: move port states into gates, inline net queue checks 2021-06-05 18:41:50 -05:00
Redo0
14c61e35d1 move network functionality to new file 2021-06-05 17:49:58 -05:00
Redo0
5b8a1ea850 add various optimizations 2021-06-05 17:37:52 -05:00
Redo0
bdcf2b384a remove some error prints 2021-06-05 17:05:22 -05:00
Redo0
7157957d71 separate logic and init/input ticks; make inputs stack 2021-05-29 20:21:30 -05:00
Redo0
8bb4ff4421 make states numbers instead of booleans 2021-05-29 13:13:26 -05:00
Redo0
ebc9a7f108 fix port info messages 2021-05-28 22:15:57 -05:00
Redo0
968613a3fc rename some variables and begin compiled sim c code 2021-05-25 21:23:51 -05:00
Redo0
09e65faec4 inline Port.setstate; remove unused network codes 2021-05-25 20:37:29 -05:00
Redo0
c62d7340b0 make nets keep list of updated gates instead of ports 2021-05-25 20:22:02 -05:00
Redo0
e92cc50186 stop setting metatables on objects 2021-05-25 17:28:54 -05:00
Redo0
4cf2231a01 stop using self in class functions 2021-05-25 17:25:34 -05:00
Redo0
730ca3fd64 make net in port lists arrays 2021-05-25 17:18:57 -05:00
Redo0
d25893566e make sim global; make nonessential queues optional 2021-05-25 17:11:48 -05:00
Redo0
53e9423ab1 make groups only update update-causing ports 2021-05-25 16:08:58 -05:00
Redo0
8fe789eade make net info show ports on 2021-05-25 15:17:03 -05:00
Redo0
d151ab688c add net and wire struct; move net update into its file 2021-05-25 15:13:03 -05:00
Redo0
8561940777 start adding c structs for gates and ports 2021-05-25 14:54:26 -05:00
Redo0
be2df1ef33 make sim use proper OOP 2021-05-25 14:18:13 -05:00
Redo0
0963ef8ca8 make sim local; start circuit compiler 2021-05-25 05:26:06 -05:00
Redo0
569e79ab96 make simulation non-global 2021-05-23 15:36:40 -05:00
Redo0
6c997a36fa fix more oop and bugs 2021-05-22 18:45:04 -05:00
Redo
db7e2d06ad add os library to iosafe 2021-05-19 18:49:04 -05:00
Redo
ec2a7cc53f fix wire function arguments 2021-05-10 19:26:38 -05:00
Redo
bb353118ac finish removing colon syntax on simulation 2021-02-03 09:33:14 -06:00
Redo
54f45520c0 use get/set for parameters on ports and wires 2021-02-03 09:32:05 -06:00
Redo
941348002b remove colon syntax from oop 2021-02-03 09:17:33 -06:00
Redo
1b7915de4c update gate interface for new protected port functionality 2020-09-17 18:14:57 -05:00
Redo
1dce343c87 add checks for gate definition errors 2020-09-09 23:00:29 -05:00