add net and wire struct; move net update into its file

This commit is contained in:
Redo0
2021-05-25 15:13:03 -05:00
parent 8561940777
commit d151ab688c
5 changed files with 38 additions and 15 deletions

View File

@@ -1,6 +1,15 @@
Wire = {}
FFI.cdef[[
struct Wire {
int objref;
int layer;
struct Net* group;
int bounds[6];
};
]]
function Wire.new(self, objref, layer, bounds, sim)
local o = {
objref = objref,