dnanar
Junior Member level 1
- Joined
- May 8, 2014
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 140
Hi,
I've got a digital input, and according to that digital input I would like to generate a defined current (have a node where the current is set according to a predifined value chosen by my digital input). The order of magnitude of the desired current is 100nA/10nA (exactly 0->0.13uA, 1->0.17uA, 2->0.059uA, 3->0.06uA).
At first, I thought of just using different current sources and connecting them to P MOSFETs, connecting the drain of the mosfets together, and activating the mosfets according to my digital input. Put obviously after some thoughts it didn't work and I don't really know how to realize that.
Could someone point me in the right direction please? Please note that I'm using HSPICE, so maybe there is a way to script that behaviour, but I don't know.
Thank you,
I've got a digital input, and according to that digital input I would like to generate a defined current (have a node where the current is set according to a predifined value chosen by my digital input). The order of magnitude of the desired current is 100nA/10nA (exactly 0->0.13uA, 1->0.17uA, 2->0.059uA, 3->0.06uA).
At first, I thought of just using different current sources and connecting them to P MOSFETs, connecting the drain of the mosfets together, and activating the mosfets according to my digital input. Put obviously after some thoughts it didn't work and I don't really know how to realize that.
Could someone point me in the right direction please? Please note that I'm using HSPICE, so maybe there is a way to script that behaviour, but I don't know.
Thank you,
Last edited: