use path for sim dll

This commit is contained in:
Redo 2022-11-05 12:20:38 -06:00
parent e294641558
commit bbb6afd684
3 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,2 @@
gcc compiled_sim.c -shared -o compiled_sim.dll -Wall -Werror -Ofast gcc compiled_sim.c -shared -o compiled_sim.dll -Wall -Werror -Ofast
cp compiled_sim.dll libcompiled_sim.dll
pause pause

Binary file not shown.

View File

@ -8,7 +8,7 @@ ffi.cdef [[
void sim_update_nets(); void sim_update_nets();
void sim_update_gates(); void sim_update_gates();
]] ]]
local csim = ffi.load("compiled_sim.dll") local csim = ffi.load("./compiled_sim.dll")
Simulation = {} Simulation = {}
@ -43,7 +43,7 @@ function Simulation.new(sim)
o.num_groupqueue[0] = 0 o.num_groupqueue[0] = 0
o.num_gatequeue[0] = 0 o.num_gatequeue[0] = 0
o.current_tick[0] = 0 o.current_tick[0] = 0
sim_set_data(o.groupqueue, o.num_groupqueue, o.gatequeue, o.num_gatequeue, o.current_tick, queue_max) csim.sim_set_data(o.groupqueue, o.num_groupqueue, o.gatequeue, o.num_gatequeue, o.current_tick, queue_max)
return o return o
end end