2
\$\begingroup\$

I need some suggestions on how to develop a SPICE model for a computer data bus. Since each data signal is similar, I only would model one signal ("D0").

This is for some experimentation I am doing to understand the electrical load and behavior of a data bus on a microcomputer (IBM PC).

The data bus has a variety of devices connected - a couple static RAM chips, a ROM chip, a real time clock.

My first thought is to draw a wire that is the bus. I would connect a voltage source / switch on the left to represent the square wave used to excite the bus line. Then I would connect a capacitance and resistance in parallel (to ground) at a few places, with one per device.

I also need to add capacitance and inductance between each device on the model, to account for the PCB trace. For the PCB, I would use an inductance and resistance in series, with a capacitance to ground.

Is this an appropriate model?

To get the values: For the device I would get the pin capacitance from the device's data sheet. To get the value of the resistance, I would use Ohm's law and divide the voltage (5V) by the input current leakage from the data sheet.

For the circuit board, I need to find some formulas for resistance, capacitance, and inductance for some estimates of the trace geometry.

I am excluding effects between signals/traces on the PCB.

Based on the results of the simulation, I will decide on using bus drivers or passive components to terminate the bus signals, to improve signal integrity.

Anyone out there who has a solid foundation able to reinforce my thinking, or, point me in a better direction?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ It all depends on what you want to model. Simple model would just include the resistances and capacitances. Buses and chips are made with real wires that have inductance and length, so there is also time of flight from driver to the end of bus, and if the bus is not terminated, there will be reflections. \$\endgroup\$
    – Justme
    Commented Jul 11, 2020 at 12:30
  • \$\begingroup\$ Yes - that's exactly what I'm researching, different termination techniques and their performance. So, if my modeling is "good enough" I'll be able to experiment quickly and easily. I just found Howard Johnson's book on my shelf - "High Speed Digital Design". Seems like I've got a 400 page, brain-busting answer....! \$\endgroup\$
    – MattCarp
    Commented Jul 11, 2020 at 12:55

1 Answer 1

0
\$\begingroup\$

For starters there are digital components in LT spice: enter image description here

To simulate the RLC effects on a digital trace, I would use saturn PCB designer calculator. https://saturnpcb.com/pcb_toolkit/

There are calculators to find the inductance and resistance and capacitance for traces. I won't go in to great depth on how to use it, but I select a copper trace and then find the capacitance and inductance per inch. I then estimate how long my trace will be and then find out my total capacitance or inductance, then build an RLC circuit.

For high speed traces (usually meaning over 50Mhz, where transmission line effects happen) there are lossless transmission line models and lossy transmission line models in LT spice. enter image description here Source: https://iexploresiliconvalley.com/2019/08/27/ltspice-lesson-3-transmission-lines-part-1/

\$\endgroup\$
1
  • \$\begingroup\$ Did you mean the ones from [Digital] (as opposed to the custom filder you're showing)? \$\endgroup\$ Commented Jul 12, 2020 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.