10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples<br />

Example 25—Setting up and Handling Analog Busses<br />

Tip<br />

Refer to the .SIGBUS, .PLOTBUS, .SETBUS, and .CHECKBUS commands in the Eldo<br />

Reference Manual.<br />

Summary of Eldo commands used in this example:<br />

• .INCLUDE—Library file.<br />

• .SETBUS—Create a bus.<br />

• .SIGBUS—Set signals on a bus.<br />

• .PLOTBUS—Plot bits of a bus.<br />

• .CHECKBUS—Check bus values.<br />

Netlist Explanation<br />

.include bsim46.lib<br />

The above line includes the contents of the library file bsim46.lib in the netlist.<br />

.SETBUS A A<br />

The above line defines a bus A as the vector a.<br />

.SIGBUS A<br />

+ vhi=ps vlo=0<br />

+ base=dec signed=2comp<br />

+ trise=trf tfall=trf thold=per<br />

+ pattern 1 3 5 4 0 -2 -5 2 3 5 6 -1<br />

The A input bus is generated using a .SIGBUS command with the following:<br />

• The bits of the bus toggle between vlo and vhi.<br />

• The rise/fall times and period are defined with trise, tfall and thold.<br />

• The bus values will be given in decimal, and the coding will be in 2’s complement.<br />

• Finally the successive values of the bus are given with the pattern keyword.<br />

.SETBUS B B<br />

.SETBUS S S<br />

The above lines define busses B and S:<br />

.PLOTBUS A VTH=0.6 BASE=DEC RADIX=2COMP<br />

.PLOTBUS B VTH=0.6 BASE=DEC RADIX=2COMP<br />

.PLOTBUS S VTH=0.6 BASE=DEC RADIX=2COMP<br />

The above lines plot the busses, using half/vdd as the threshold, in decimal notation.<br />

1338<br />

Eldo® User's Manual, 15.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!