VERSION 6
BEGIN SCHEMATIC
    BEGIN ATTR DeviceFamilyName "spartan2"
        DELETE all:0
        EDITNAME all:0
        EDITTRAIT all:0
    END ATTR
    BEGIN NETLIST
        SIGNAL clk
        BEGIN SIGNAL XLXN_2
        END SIGNAL
        SIGNAL pb
        SIGNAL anode0
        SIGNAL anode1
        SIGNAL anode2
        SIGNAL anode3
        SIGNAL chatod(7:0)
        SIGNAL XLXN_10
        SIGNAL XLXN_12
        SIGNAL XLXN_13
        SIGNAL XLXN_14
        SIGNAL XLXN_15
        SIGNAL in_x_0(15:0)
        BEGIN SIGNAL out_led(23:0)
        END SIGNAL
        BEGIN SIGNAL out_led(23:16)
        END SIGNAL
        BEGIN SIGNAL out_led(15:8)
        END SIGNAL
        BEGIN SIGNAL out_led(7:0)
        END SIGNAL
        SIGNAL reset
        SIGNAL XLXN_22
        PORT Input clk
        PORT Input pb
        PORT Output anode0
        PORT Output anode1
        PORT Output anode2
        PORT Output anode3
        PORT Output chatod(7:0)
        PORT Input in_x_0(15:0)
        PORT Input reset
        BEGIN BLOCKDEF spartan2_clk_wrapper
            TIMESTAMP 2005 8 3 2 26 22
            RECTANGLE N 64 -192 320 0 
            LINE N 64 -160 0 -160 
            LINE N 64 -96 0 -96 
            LINE N 64 -32 0 -32 
            RECTANGLE N 0 -44 64 -20 
            LINE N 320 -160 384 -160 
            RECTANGLE N 320 -172 384 -148 
        END BLOCKDEF
        BEGIN BLOCKDEF seg7_driver
            TIMESTAMP 2005 7 29 6 48 53
            RECTANGLE N 64 -320 320 0 
            LINE N 64 -288 0 -288 
            LINE N 64 -224 0 -224 
            LINE N 64 -160 0 -160 
            RECTANGLE N 0 -172 64 -148 
            LINE N 64 -96 0 -96 
            RECTANGLE N 0 -108 64 -84 
            LINE N 64 -32 0 -32 
            RECTANGLE N 0 -44 64 -20 
            LINE N 320 -288 384 -288 
            LINE N 320 -224 384 -224 
            LINE N 320 -160 384 -160 
            LINE N 320 -96 384 -96 
            LINE N 320 -32 384 -32 
            RECTANGLE N 320 -44 384 -20 
        END BLOCKDEF
        BEGIN BLOCKDEF choosen_out
            TIMESTAMP 2005 7 30 8 51 6
            LINE N 64 160 0 160 
            LINE N 320 160 384 160 
            LINE N 64 -160 0 -160 
            RECTANGLE N 64 -192 320 192 
        END BLOCKDEF
        BEGIN BLOCKDEF clk_div
            TIMESTAMP 2005 7 29 6 48 46
            RECTANGLE N 64 -128 320 0 
            LINE N 64 -96 0 -96 
            LINE N 64 -32 0 -32 
            LINE N 320 -96 384 -96 
        END BLOCKDEF
        BEGIN BLOCKDEF vcc
            TIMESTAMP 2001 2 2 12 52 44
            LINE N 64 -32 64 -64 
            LINE N 64 0 64 -32 
            LINE N 96 -64 32 -64 
        END BLOCKDEF
        BEGIN BLOCK XLXI_1 spartan2_clk_wrapper
            PIN ce XLXN_15
            PIN clk XLXN_14
            PIN in_x_0(15:0) in_x_0(15:0)
            PIN out_x_0(23:0) out_led(23:0)
        END BLOCK
        BEGIN BLOCK XLXI_2 seg7_driver
            PIN clk_200hz XLXN_13
            PIN reset reset
            PIN dig0(7:0) out_led(7:0)
            PIN dig1(7:0) out_led(15:8)
            PIN dig2(7:0) out_led(23:16)
            PIN anode0 anode0
            PIN anode1 anode1
            PIN anode2 anode2
            PIN anode3 anode3
            PIN digit(7:0) chatod(7:0)
        END BLOCK
        BEGIN BLOCK XLXI_3 choosen_out
            PIN clock XLXN_13
            PIN choice pb
            PIN choice_yy XLXN_14
        END BLOCK
        BEGIN BLOCK XLXI_4 clk_div
            PIN clock_sys clk
            PIN reset reset
            PIN clock_div XLXN_13
        END BLOCK
        BEGIN BLOCK XLXI_5 vcc
            PIN P XLXN_15
        END BLOCK
    END NETLIST
    BEGIN SHEET 1 3520 2720
        BEGIN INSTANCE XLXI_1 1328 1456 R0
        END INSTANCE
        BEGIN INSTANCE XLXI_2 1952 1280 R0
        END INSTANCE
        BEGIN INSTANCE XLXI_3 816 1184 R0
        END INSTANCE
        BEGIN INSTANCE XLXI_4 1328 928 R0
        END INSTANCE
        BEGIN BRANCH clk
            WIRE 1296 832 1328 832
        END BRANCH
        IOMARKER 1296 832 clk R180 28
        BEGIN BRANCH pb
            WIRE 784 1344 816 1344
        END BRANCH
        IOMARKER 784 1344 pb R180 28
        BEGIN BRANCH anode0
            WIRE 2336 992 2368 992
        END BRANCH
        IOMARKER 2368 992 anode0 R0 28
        BEGIN BRANCH anode1
            WIRE 2336 1056 2368 1056
        END BRANCH
        IOMARKER 2368 1056 anode1 R0 28
        BEGIN BRANCH anode2
            WIRE 2336 1120 2368 1120
        END BRANCH
        IOMARKER 2368 1120 anode2 R0 28
        BEGIN BRANCH anode3
            WIRE 2336 1184 2368 1184
        END BRANCH
        IOMARKER 2368 1184 anode3 R0 28
        BEGIN BRANCH chatod(7:0)
            WIRE 2336 1248 2368 1248
        END BRANCH
        IOMARKER 2368 1248 chatod(7:0) R0 28
        BEGIN BRANCH XLXN_13
            WIRE 768 656 768 1024
            WIRE 768 1024 816 1024
            WIRE 768 656 1776 656
            WIRE 1776 656 1776 928
            WIRE 1776 928 1824 928
            WIRE 1824 928 1824 992
            WIRE 1824 992 1952 992
            WIRE 1712 832 1824 832
            WIRE 1824 832 1824 928
        END BRANCH
        BEGIN BRANCH XLXN_14
            WIRE 1200 1344 1264 1344
            WIRE 1264 1344 1264 1360
            WIRE 1264 1360 1328 1360
        END BRANCH
        INSTANCE XLXI_5 1200 1248 R0
        BEGIN BRANCH XLXN_15
            WIRE 1264 1248 1264 1296
            WIRE 1264 1296 1328 1296
        END BRANCH
        BEGIN BRANCH in_x_0(15:0)
            WIRE 1296 1424 1328 1424
        END BRANCH
        IOMARKER 1296 1424 in_x_0(15:0) R180 28
        BEGIN BRANCH out_led(23:0)
            WIRE 1712 1296 1744 1296
        END BRANCH
        BEGIN BRANCH out_led(23:16)
            WIRE 1920 1248 1952 1248
        END BRANCH
        BEGIN BRANCH out_led(15:8)
            WIRE 1920 1184 1952 1184
        END BRANCH
        BEGIN BRANCH out_led(7:0)
            WIRE 1920 1120 1952 1120
        END BRANCH
        BEGIN BRANCH reset
            WIRE 1200 896 1232 896
            WIRE 1232 896 1312 896
            WIRE 1312 896 1328 896
            WIRE 1232 896 1232 1056
            WIRE 1232 1056 1952 1056
        END BRANCH
        IOMARKER 1200 896 reset R180 28
    END SHEET
END SCHEMATIC
