1403 views|12 replies

2625

Posts

6

Resources
The OP
 

QSpice-(4) Hierarchical Circuit Design [Copy link]

 
 

QSpice-(4) Hierarchical Circuit Design

As circuits become increasingly large, it may be a bit troublesome for one person to complete the entire circuit alone, but it is not impossible. We still have to have that passion to make the circuit well. When the circuit is large, we usually put the circuit into a subcircuit. This subcircuit is equivalent to a subroutine in the C code. When we want to use this circuit, we just call it. In English, it is hierarchy.
Qspice, like most EDA software, supports hierarchical circuit design. You can click the hyperlink to view AD hierarchical design and LTspice hierarchical design.
First, we build a basic circuit diagram in QSpice and save it. After saving the diagram, right-click and select Draw Hierarchy Entry as shown in Figure 1.
Figure 1: Setting up hierarchical schematic entry
After setting the hierarchical schematic entry, set the Port in this Entry. If your small schematic needs several networks to be used externally, then you can draw several Ports. After drawing the Port, you can change the name of the Port by left-clicking. The specific settings are shown in Figure 2.
Figure 2: Placing Ports
After placing the Port, double-click Entry (X1) to enter the sub-schematic diagram to draw the circuit. Let's draw a voltage divider circuit as shown in Figure 3. After placing the voltage divider circuit, return to the main circuit to supply power as shown in Figure 4.
Figure 3: Basic voltage divider circuit
Figure 4: Voltage divider circuit
Figure 5: Simulation results
It is also worth noting that the simulation results of QSpice cannot be copied directly by pressing CTRL + C. You need to right-click and copy the bitmap to clipboard as shown in Figure 6.
Figure 6: Copying the image to the clipboard
There is another bug. After I draw the hierarchical schematic, I cannot update the port to the subcircuit when I add the port again. This needs attention! As shown in Figure 7, I will give feedback to the author later.
Figure 7: Qspice small bug
Figure 8: QSpice version
In addition, the hierarchical schematic can directly modify the netlist to change the parameters of the sub-circuit in the hierarchical schematic. Right-click netlist subcircuit in the drawing entry to view the sub-circuit netlist as shown in Figure 9.
Figure 9: Qspice subcircuit netlist view
Figure 10: Subcircuit netlist
I have a small suggestion. It is recommended to edit it directly, which may improve the efficiency of the simulation. I will submit it to Mike when the time comes.
That’s all for today. Bye~

Latest reply

It seems that everyone here is doing well in PCB design.   Details Published on 2024-9-4 11:13
Personal signature

希望做一些大家觉得好用的东西!

 
 

2625

Posts

6

Resources
2
 

I have sent it to the author. I am not sure if you can understand it as my grammar is not good. I will just treat it as an English practice.


Screenshot_20240624_210532.jpg (0 Bytes, downloads: 0)

Screenshot_20240624_210532.jpg
 
 
 

2625

Posts

6

Resources
3
 

An error will be reported in the console later


Screenshot_20240625_092226.jpg (0 Bytes, downloads: 0)

Screenshot_20240625_092226.jpg

Comments

The host is excellent!!!!  Details Published on 2024-7-1 14:40
 
 
 

1w

Posts

204

Resources
4
 
xutong posted on 2024-6-25 09:23 An error will be reported in the console later

The host is excellent!!!!

Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

Thank you for your support  Details Published on 2024-7-1 15:08
Personal signature

玩板看这里:

https://bbs.eeworld.com.cn/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 
 

2625

Posts

6

Resources
5
 
okhxyyo posted on 2024-7-1 14:40 The host is excellent! ! ! !

Thank you for your support


 
 
 

411

Posts

0

Resources
6
 

Haha, the OP's social circle has suddenly expanded to include people from foreign countries. However, the author is still a very nice person, with such timely interaction and revisions. Thumbs up.

Comments

I also had some exchanges with the author of Calcpad last time, and the reply was very timely.  Details Published on 2024-7-3 16:57
 
 
 

666

Posts

5

Resources
7
 

It seems that Chinglish does not affect communication.

Comments

Yes, yes, if you can use it, you can remember it.  Details Published on 2024-7-3 16:58
 
 
 

2625

Posts

6

Resources
8
 
laker2008 posted on 2024-7-1 16:28 Haha, the OP's social circle has suddenly expanded to include people from foreign countries. However, the author is still a very nice person. Thumbs up for such timely interaction and revisions.

I also had some exchanges with the author of Calcpad last time, and the reply was very timely.

Personal signature

希望做一些大家觉得好用的东西!

 
 
 

2625

Posts

6

Resources
9
 
dwwzl posted on 2024-7-2 13:34 It seems that Chinglish does not affect communication

Yes, yes, if you can use it, you can remember it.

Personal signature

希望做一些大家觉得好用的东西!

 
 
 

2w

Posts

341

Resources
10
 

AD hierarchical design, LTspice hierarchical design, it turns out that this is also possible

Learned

 
 
 

2625

Posts

6

Resources
11
Personal signature

希望做一些大家觉得好用的东西!

 
 
 

226

Posts

2402

Resources
12
 

good


Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

4

Posts

0

Resources
13
 

It seems that everyone here is doing well in PCB design.

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list