
# This file was written by gpsim.

# You can use this file for example like this:
#     gpsim -s mycode.cod -c netlist.stc

# If you want to add commands, you can create another .stc file
# and load this file from it. Something like this:
# ----------- myproject.stc ---------------
# load s mycode.cod
# frequency 12000000
# load c netlist.stc
# -----------------------------------------
# You can then just load this new file:
#     gpsim -c myproject.stc
# and use netlist.stc whenever you save from the breadboard.
#

load test.cod

# Processor position:
module library libgpsim_modules


# Modules:
p10f202.BreakOnReset = true
p10f202.SafeMode = true
p10f202.UnknownMode = true
p10f202.WarnMode = true
p10f202.xpos = 180
p10f202.ypos = 648

module load pullup pu
pu.capacitance = 0
pu.resistance = 10000
pu.voltage = 5
pu.xpos = 324
pu.ypos = 660

module load pulldown pd
pd.capacitance = 0
pd.resistance = 0
pd.voltage = 5
pd.xpos = 456
pd.ypos = 660

module load ttl595 sr0
sr0.xpos = 108
sr0.ypos = 84

module load led leda0
leda0.ActiveState = high
leda0.color = red
leda0.xpos = 36
leda0.ypos = 36

module load led leda1
leda1.ActiveState = high
leda1.color = red
leda1.xpos = 72
leda1.ypos = 36

module load led leda2
leda2.ActiveState = high
leda2.color = red
leda2.xpos = 108
leda2.ypos = 36

module load led leda3
leda3.ActiveState = high
leda3.color = red
leda3.xpos = 144
leda3.ypos = 36

module load led leda4
leda4.ActiveState = high
leda4.color = red
leda4.xpos = 180
leda4.ypos = 36

module load led leda5
leda5.ActiveState = high
leda5.color = red
leda5.xpos = 216
leda5.ypos = 36

module load led leda6
leda6.ActiveState = high
leda6.color = red
leda6.xpos = 252
leda6.ypos = 36

module load led leda7
leda7.ActiveState = high
leda7.color = red
leda7.xpos = 288
leda7.ypos = 36

module load ttl595 sr1
sr1.xpos = 468
sr1.ypos = 84

module load led ledb0
ledb0.ActiveState = high
ledb0.color = green
ledb0.xpos = 396
ledb0.ypos = 36

module load led ledb1
ledb1.ActiveState = high
ledb1.color = green
ledb1.xpos = 432
ledb1.ypos = 36

module load led ledb2
ledb2.ActiveState = high
ledb2.color = green
ledb2.xpos = 468
ledb2.ypos = 36

module load led ledb3
ledb3.ActiveState = high
ledb3.color = green
ledb3.xpos = 504
ledb3.ypos = 36

module load led ledb4
ledb4.ActiveState = high
ledb4.color = green
ledb4.xpos = 540
ledb4.ypos = 36

module load led ledb5
ledb5.ActiveState = high
ledb5.color = green
ledb5.xpos = 576
ledb5.ypos = 36

module load led ledb6
ledb6.ActiveState = high
ledb6.color = green
ledb6.xpos = 612
ledb6.ypos = 36

module load led ledb7
ledb7.ActiveState = high
ledb7.color = green
ledb7.xpos = 648
ledb7.ypos = 36

module load ttl595 sr2
sr2.xpos = 108
sr2.ypos = 276

module load led ledc0
ledc0.ActiveState = high
ledc0.color = red
ledc0.xpos = 36
ledc0.ypos = 228

module load led ledc1
ledc1.ActiveState = high
ledc1.color = red
ledc1.xpos = 72
ledc1.ypos = 228

module load led ledc2
ledc2.ActiveState = high
ledc2.color = red
ledc2.xpos = 108
ledc2.ypos = 228

module load led ledc3
ledc3.ActiveState = high
ledc3.color = red
ledc3.xpos = 144
ledc3.ypos = 228

module load led ledc4
ledc4.ActiveState = high
ledc4.color = red
ledc4.xpos = 180
ledc4.ypos = 228

module load led ledc5
ledc5.ActiveState = high
ledc5.color = red
ledc5.xpos = 216
ledc5.ypos = 228

module load led ledc6
ledc6.ActiveState = high
ledc6.color = red
ledc6.xpos = 252
ledc6.ypos = 228

module load led ledc7
ledc7.ActiveState = high
ledc7.color = red
ledc7.xpos = 288
ledc7.ypos = 228

module load ttl595 sr3
sr3.xpos = 468
sr3.ypos = 276

module load led ledd0
ledd0.ActiveState = high
ledd0.color = green
ledd0.xpos = 396
ledd0.ypos = 228

module load led ledd1
ledd1.ActiveState = high
ledd1.color = green
ledd1.xpos = 432
ledd1.ypos = 228

module load led ledd2
ledd2.ActiveState = high
ledd2.color = green
ledd2.xpos = 468
ledd2.ypos = 228

module load led ledd3
ledd3.ActiveState = high
ledd3.color = green
ledd3.xpos = 504
ledd3.ypos = 228

module load led ledd4
ledd4.ActiveState = high
ledd4.color = green
ledd4.xpos = 540
ledd4.ypos = 228

module load led ledd5
ledd5.ActiveState = high
ledd5.color = green
ledd5.xpos = 576
ledd5.ypos = 228

module load led ledd6
ledd6.ActiveState = high
ledd6.color = green
ledd6.xpos = 612
ledd6.ypos = 228

module load led ledd7
ledd7.ActiveState = high
ledd7.color = green
ledd7.xpos = 648
ledd7.ypos = 228

module load ttl595 sr4
sr4.xpos = 108
sr4.ypos = 480

module load led lede0
lede0.ActiveState = high
lede0.color = blue
lede0.xpos = 36
lede0.ypos = 432

module load led lede1
lede1.ActiveState = high
lede1.color = blue
lede1.xpos = 72
lede1.ypos = 432

module load led lede2
lede2.ActiveState = high
lede2.color = blue
lede2.xpos = 108
lede2.ypos = 432

module load led lede3
lede3.ActiveState = high
lede3.color = blue
lede3.xpos = 144
lede3.ypos = 432

module load led lede4
lede4.ActiveState = high
lede4.color = blue
lede4.xpos = 180
lede4.ypos = 432

module load led lede5
lede5.ActiveState = high
lede5.color = blue
lede5.xpos = 216
lede5.ypos = 432

module load led lede6
lede6.ActiveState = high
lede6.color = blue
lede6.xpos = 252
lede6.ypos = 432

module load led lede7
lede7.ActiveState = high
lede7.color = blue
lede7.xpos = 288
lede7.ypos = 432

module load ttl595 sr5
sr5.xpos = 468
sr5.ypos = 480

module load led ledf0
ledf0.ActiveState = high
ledf0.color = blue
ledf0.xpos = 396
ledf0.ypos = 432

module load led ledf1
ledf1.ActiveState = high
ledf1.color = blue
ledf1.xpos = 432
ledf1.ypos = 432

module load led ledf2
ledf2.ActiveState = high
ledf2.color = blue
ledf2.xpos = 468
ledf2.ypos = 432

module load led ledf3
ledf3.ActiveState = high
ledf3.color = blue
ledf3.xpos = 504
ledf3.ypos = 432

module load led ledf4
ledf4.ActiveState = high
ledf4.color = blue
ledf4.xpos = 540
ledf4.ypos = 432

module load led ledf5
ledf5.ActiveState = high
ledf5.color = blue
ledf5.xpos = 576
ledf5.ypos = 432

module load led ledf6
ledf6.ActiveState = high
ledf6.color = blue
ledf6.xpos = 612
ledf6.ypos = 432

module load led ledf7
ledf7.ActiveState = high
ledf7.color = blue
ledf7.xpos = 648
ledf7.ypos = 432



# Connections:
node vcc
attach vcc pu.pin sr0.MR sr1.MR sr2.MR sr3.MR sr4.MR sr5.MR

node gnd
attach gnd pd.pin sr0.OE sr1.OE sr2.OE sr3.OE sr4.OE sr5.OE

node gp0
attach gp0 gpio0 sr0.RCK sr1.RCK sr2.RCK sr3.RCK sr4.RCK sr5.RCK

node gp1
attach gp1 gpio1 sr0.SCK sr1.SCK sr2.SCK sr3.SCK sr4.SCK sr5.SCK

node gp2
attach gp2 gpio2 sr0.Ds

node daisy01
attach daisy01 sr0.Qs sr1.Ds

node daisy12
attach daisy12 sr1.Qs sr2.Ds

node daisy23
attach daisy23 sr2.Qs sr3.Ds

node daisy34
attach daisy34 sr3.Qs sr4.Ds

node daisy45
attach daisy45 sr4.Qs sr5.Ds

node gp3
attach gp3 gpio3

node sr0q0
attach sr0q0 sr0.Q0 leda0.in

node sr0q1
attach sr0q1 sr0.Q1 leda1.in

node sr0q2
attach sr0q2 sr0.Q2 leda2.in

node sr0q3
attach sr0q3 sr0.Q3 leda3.in

node sr0q4
attach sr0q4 sr0.Q4 leda4.in

node sr0q5
attach sr0q5 sr0.Q5 leda5.in

node sr0q6
attach sr0q6 sr0.Q6 leda6.in

node sr0q7
attach sr0q7 sr0.Q7 leda7.in

node sr1q0
attach sr1q0 sr1.Q0 ledb0.in

node sr1q1
attach sr1q1 sr1.Q1 ledb1.in

node sr1q2
attach sr1q2 sr1.Q2 ledb2.in

node sr1q3
attach sr1q3 sr1.Q3 ledb3.in

node sr1q4
attach sr1q4 sr1.Q4 ledb4.in

node sr1q5
attach sr1q5 sr1.Q5 ledb5.in

node sr1q6
attach sr1q6 sr1.Q6 ledb6.in

node sr1q7
attach sr1q7 sr1.Q7 ledb7.in

node sr2q0
attach sr2q0 sr2.Q0 ledc0.in

node sr2q1
attach sr2q1 sr2.Q1 ledc1.in

node sr2q2
attach sr2q2 sr2.Q2 ledc2.in

node sr2q3
attach sr2q3 sr2.Q3 ledc3.in

node sr2q4
attach sr2q4 sr2.Q4 ledc4.in

node sr2q5
attach sr2q5 sr2.Q5 ledc5.in

node sr2q6
attach sr2q6 sr2.Q6 ledc6.in

node sr2q7
attach sr2q7 sr2.Q7 ledc7.in

node sr3q0
attach sr3q0 sr3.Q0 ledd0.in

node sr3q1
attach sr3q1 sr3.Q1 ledd1.in

node sr3q2
attach sr3q2 sr3.Q2 ledd2.in

node sr3q3
attach sr3q3 sr3.Q3 ledd3.in

node sr3q4
attach sr3q4 sr3.Q4 ledd4.in

node sr3q5
attach sr3q5 sr3.Q5 ledd5.in

node sr3q6
attach sr3q6 sr3.Q6 ledd6.in

node sr3q7
attach sr3q7 sr3.Q7 ledd7.in

node sr4q0
attach sr4q0 sr4.Q0 lede0.in

node sr4q1
attach sr4q1 sr4.Q1 lede1.in

node sr4q2
attach sr4q2 sr4.Q2 lede2.in

node sr4q3
attach sr4q3 sr4.Q3 lede3.in

node sr4q4
attach sr4q4 sr4.Q4 lede4.in

node sr4q5
attach sr4q5 sr4.Q5 lede5.in

node sr4q6
attach sr4q6 sr4.Q6 lede6.in

node sr4q7
attach sr4q7 sr4.Q7 lede7.in

node sr5q0
attach sr5q0 sr5.Q0 ledf0.in

node sr5q1
attach sr5q1 sr5.Q1 ledf1.in

node sr5q2
attach sr5q2 sr5.Q2 ledf2.in

node sr5q3
attach sr5q3 sr5.Q3 ledf3.in

node sr5q4
attach sr5q4 sr5.Q4 ledf4.in

node sr5q5
attach sr5q5 sr5.Q5 ledf5.in

node sr5q6
attach sr5q6 sr5.Q6 ledf6.in

node sr5q7
attach sr5q7 sr5.Q7 ledf7.in



# End.
