18 lines
336 B
Plaintext
18 lines
336 B
Plaintext
|
|
Invalid number of inputs/outputs
|
||
|
|
*
|
||
|
|
* This circuit contains a simple gain block to demonstrate
|
||
|
|
* that the simulator reports an error if the number of
|
||
|
|
* connections on the code model is incorrect.
|
||
|
|
*
|
||
|
|
.tran 1e-5 1e-3
|
||
|
|
*
|
||
|
|
v1 1 0 0.0 sin(0 1 1k)
|
||
|
|
r1 1 0 1k
|
||
|
|
*
|
||
|
|
a1 1 2 3 gain_block
|
||
|
|
a2 1 gain_block
|
||
|
|
.model gain_block gain (gain=10)
|
||
|
|
r2 2 0 1k
|
||
|
|
*
|
||
|
|
.end
|