make sim queues use c objs

This commit is contained in:
Redo
2022-11-04 17:06:57 -06:00
parent 658bcc6ad8
commit 85aabd8dcf
4 changed files with 64 additions and 39 deletions

View File

@@ -12,6 +12,7 @@ ffi.cdef [[
int** port_net_state_num;
int** port_net_in_queue;
struct Net** port_nets_c;
int objref;
};
]]
@@ -40,6 +41,7 @@ function Gate.new(objref, definition)
gate.c.port_net_state_num = gate.port_net_state_num
gate.c.port_net_in_queue = gate.port_net_in_queue
gate.c.port_nets_c = gate.port_nets_c
gate.c.objref = gate.objref
return gate
end
@@ -62,11 +64,6 @@ function Gate.setportstate(gate, index, state)
end
end
-- Logic Critical
function Gate.logic(gate)
gate.logic(gate)
end
function Gate.preinit(gate)
end