######################################################################
# IMLIG,1998.01.07,adder4.scr, simulator script for SECONDS
sflread adder4.sfl
autoinstall adder4 

#redirect simulation results into file
#speak adder4.sim
#redirect simulation errors into file
#claim adder4.err

print "\n--- simulation modules:\n"
lmc
print "\n--- facilities of top module:\n"
lc

print "\n--- simulation start:\n"
print "\n"
print \
"input pins | internal signals                              | output pins\n"
print \
"A B CIN ADD| ADDER0.a ADDER0.b ADDER0.cin ADDER0.add CARRY1| S COUT\n"
print \
"------------------------------------------------------------------------\n"

rpt_add rpt1 \
"%X %X %B   %B  | %B        %B        %B          %B          %B     | %X %B\n"\
 A  B  CIN  ADD  ADDER0.a ADDER0.b  ADDER0.cin   ADDER0.add CARRY1     S  COUT

set ADD 0B1
set A 0X1; set B 0X1; set CIN 0B0; report do
set A 0X1; set B 0X6; set CIN 0B1; report do
set A 0X7; set B 0X2; set CIN 0B0; report do
set A 0X9; set B 0X8; set CIN 0B0; report do

set ADD 0B0
set A 0X1; set B 0X1; set CIN 0B0; report do
set A 0X1; set B 0X6; set CIN 0B1; report do

