Videos > Transient Analysis of Mixed-Signal VCCS in SaberRD
Sep 24, 2025

Transient Analysis of Mixed-Signal VCCS in SaberRD

Hi everyone, welcome to the second part of my video about the SaberRD, specifically focusing on a voltage-controlled current source (VCCS). In this session, we will explore the GUI of SaberRD and conduct a DC analysis experiment.

Setting Up the Circuit

Let's start by setting up the circuit:

  • We have a Fuji microcontroller that generates the enable signal.
  • The comparator is missing, so we need to add it. Simply double-click to connect the comparator.
  • Modify the P offset in the comparator to 2.5.

Understanding the Comparator

The comparator is described using HDL (Hardware Description Language), which allows us to define hardware behavior. Here's how it works:

  • The comparator has inputs: enable and VIN.
  • If VIN is above VH or VL, the output changes based on these inputs.
  • The HDL code waits for changes in enable or VIN above VH or VL, then executes an if-loop to define the comparator's behavior.

For more information on HDL, please contact us at Ozen Engineering, Inc.

Running the Simulation

Let's save the model and run the simulation:

  1. Go to the transient analysis section.
  2. Set the end time and step time for the simulation.
  3. Run the simulation for 100 ms with a step of 2 microseconds.

Analyzing the Results

Here's what we observe from the simulation:

  • The input signal and enable signal are displayed. You can adjust the enable signal by adding or removing points.
  • The enable signal is high from 0 to 40 ms, low from 40 to 80 ms, high from 80 to 100 ms, and low again after 100 ms.
  • We can check the output of the comparator on the digital side. When enable is high, the output works based on VL and VH.

Exploring the AND Gate and Analog Conversion

Next, we explore the AND gate and its output:

  • The AND gate introduces a delay for transitions from high to low or low to high.
  • The output of the AND gate is labeled as ISourceControl.
  • The D2 bar converts the digital signal to a unitless analog signal, visible in the analog section.

Observing the Load

Finally, let's look at the load:

  • Double-click on the load in the analog section to observe the charging and discharging cycles.
  • Track the signals easily using SaberRD.

Thank you for watching!

[This was auto-generated. There may be mispellings.]

Hi everyone, this is the second part of my video about the SaberRD, I mean, voltage-controlled current source. So, this is the GUI of SaberRD. In the model, it's a different model; we can do the DC analysis experiment. I will use this experiment today. Let's go to the circuit.

We have a Fuji microcontroller, which creates the enable signal. The comparator is missing here, so let's add the comparator first. It's very easy; you can double-click and connect the comparator here.

Now, in the comparator, you can modify the P offset; let's put the P offset at 2. 5. Regarding what happens inside the comparator, if I right-click, this is the HDL language. The beauty of HDL language is that it can describe the hardware language; I mean, the comparator is hardware.

If we look at the comparator, we have enable and we have VIN. So, if VIN is above VH or VL, and changes, there is something happening in the comparator, then the output changes based on this input.

You can see this line shows that, okay, wait on enable or VIN above VH or VIN above VL changes, so then after that we have something on an if loop; you know, then we can define the behavior of the computer.

If you have any questions about the HDL language, please contact us at https://ozeninc.com/contact for more information. So, let's go; let's save the model. I want to run the simulation for this.

So, if I go to the transient analysis, you can see I can set the end and the step time, and also, if I click this one, I can access a lot of variables; I can show all variables here, for instance. Let's do the simulation first.

If I run the simulation with 100 ms with a step of 2 microseconds, so if I run the simulation, if I look at this, this is the input signal, and this is the enable. See, if I drag the enable here, you can see; just put a little bit thicker.

For enable, this is the digital signal, so you can change the enable like this; it's the stream, you can add or remove any point, so, for instance, you can see from 0 to 40 milliseconds is high, 40 to 80 milliseconds is low, and 80 milliseconds to 100 milliseconds is high, and after 100 milliseconds is low to 120. Now, let's go back to the graph, so you can see for the 100 milliseconds we have this pulse, and this is our input.

Now, we can check the other output, so let's look at the output of the computer. In the digital side, the output of our computer, so if I double-click on the in D, so it's on the digital side, so we can see this is the output of our computer.

So, enable is high; it works based on the like VL and VH, so here enable is low, so the Vout enable is low, the Vout is low, and then again continue. So, for the second or the next part, we have an AND gate, so we have a delay for high to low or low to high.

So, if I looked at the output of the AND gate, so the output of the AND gate is ISourceControl. Let's go and find the output of the AND gate, so this is the output of the AND gate. We can see the wave from the output of the AND gate.

Then, if I check the D2 bar, so this converts the digital signal to a unitless analog signal. You can see this signal is on the analog section.

So, if I double-click, and then also if I double-click again on the source, I can add the sensors here, and you can see how we build an analog signal from digital.

So, now let's look at the load, if we double-click on the load, which is on the analog section, and then if we double-click also on dbout, so you can see how, like when the analog signal is from low to high, how we have a charging and how we have a discharging, charging, discharging, so you can easily track the signals with SaberRD.

Thank you for watching!