flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

Simulation doesn't launch when initializing subcircuit inputs with DSL script #778

Closed logoliv closed 1 month ago

logoliv commented 3 months ago

If I add "PRE = 1" and "CLR = 1" to the init part of the function parameter the simulation doesn't launch anymore. Everything is fine with only "Q = 0" in init.

Component joined (try it as a subcircuit because it has a bit width parameter). DFFE.zip

Note : in fact there's no need to do that, because the component is only scripted and it works fine without a defined value for PRE and CLR. So I just opened this issue as reference, to know if your scripting language blocks the initialisation of component input or if it's really a bug.

flandreas commented 3 months ago

Thank you for reporting this.

Well first of all, PRE and CLR are input pins. You shouldn't try to set a value to them. You can only set a value to variables or to output pins.

However, there are two issues in Antares: