Closed tyfkda closed 6 years ago
Hi, You can't set it. Here is a quotation from the document.
Remember that all the connectors on an input of 'In' and an output of 'Out' are disconnected internally when the device is reused.
@kazuhikoarase thank you to your answer.
The upper input line of the NAND gate is connected to 'In', so it is reasonable to disconnect a line before it. But the lower one is connected to DC directly, not 'In'. So actually this is not used for 'In' port of the registered device. Is the rule applied in this case, too?
If so, is there any plan to change the behavior to preserve connections unrelated to 'In' or 'Out'? Thanks.
Hi again,
DC that integrated in the library does not supply a power.
What's your purpose?
In this case, I think you can do like this.
I am trying to create 4bit increment logic(Inc4
) using 4bit adder(Add4
):
I think it is useful to enable HIGH
input to make specialized logic from general one.
All the output is derived by some input.
Would this help you?
Aha, it worked! I didn't come up this idea, thanks.
@kazuhikoarase , I've sent a pull request to enable DC in registered device. Would you please take a look?
Is there any way to set
HIGH
to a in-port in registered device?I tried to create some logic which uses
DC
to connect to some gate directly. It worked as expected in a workspace.When I registered the circuit and use it as a device, it didn't work.
In above screenshot, I've registered
MyNot
usingsimcir.registerDevice
method. In the logic I connectedDC
toNAND
. It worked asNot
gate in workspace. But the registered device didn't work as expected. I suspect thatDC
output is ignored in registered device.Here is the code: