(edif (rename id00001 "u/u")
  (edifVersion 2 0 0)
  (edifLevel 0)
  (keywordMap (keywordLevel 0))
  (comment "Generated by Yosys 0.8+553 (git sha1 c9949dba, gcc 8.3.0-6ubuntu1~18.10.1 -Og -fPIC)")
  (external LIB
    (edifLevel 0)
    (technology (numberDefinition))
    (cell GND
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface (port G (direction OUTPUT)))
      )
    )
    (cell VCC
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface (port P (direction OUTPUT)))
      )
    )
    (cell (rename id00002 "$and")
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface
          (port A (direction INPUT))
          (port B (direction INPUT))
          (port Y (direction OUTPUT))
        )
      )
    )
    (cell (rename id00003 "$add")
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface
          (port A (direction INPUT))
          (port B (direction INPUT))
          (port Y (direction OUTPUT))
        )
      )
    )
    (cell (rename id00004 "$dff")
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface
          (port CLK (direction INPUT))
          (port Q (direction OUTPUT))
          (port D (direction INPUT))
        )
      )
    )
  )
  (library DESIGN
    (edifLevel 0)
    (technology (numberDefinition))
    (cell bb
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface
          (port out1 (direction OUTPUT))
          (port clk (direction INPUT))
          (port in2 (direction INPUT))
          (port in1 (direction INPUT))
        )
        (contents
          (instance GND (viewRef VIEW_NETLIST (cellRef GND (libraryRef LIB))))
          (instance VCC (viewRef VIEW_NETLIST (cellRef VCC (libraryRef LIB))))
          (instance (rename id00005 "$procdff$8")
            (viewRef VIEW_NETLIST (cellRef id00004 (libraryRef LIB)))
            (property CLK_POLARITY (integer 1))
            (property WIDTH (integer 1)))
          (instance (rename id00006 "$and$top.v:40$7")
            (viewRef VIEW_NETLIST (cellRef id00002 (libraryRef LIB)))
            (property Y_WIDTH (integer 1))
            (property B_WIDTH (integer 1))
            (property A_WIDTH (integer 1))
            (property B_SIGNED (integer 0))
            (property A_SIGNED (integer 0)))
          (net out1 (joined
            (portRef Q (instanceRef id00005))
            (portRef out1)
          ))
          (net clk (joined
            (portRef CLK (instanceRef id00005))
            (portRef clk)
          ))
          (net (rename id00007 "$and$top.v:40$7_Y") (joined
            (portRef D (instanceRef id00005))
            (portRef Y (instanceRef id00006))
          ))
          (net in2 (joined
            (portRef B (instanceRef id00006))
            (portRef in2)
          ))
          (net in1 (joined
            (portRef A (instanceRef id00006))
            (portRef in1)
          ))
        )
      )
    )
    (cell top
      (cellType GENERIC)
      (view VIEW_NETLIST
        (viewType NETLIST)
        (interface
          (port cout (direction OUTPUT))
          (port A (direction OUTPUT))
          (port cin (direction INPUT))
          (port y (direction INPUT))
          (port x (direction INPUT))
        )
        (contents
          (instance GND (viewRef VIEW_NETLIST (cellRef GND (libraryRef LIB))))
          (instance VCC (viewRef VIEW_NETLIST (cellRef VCC (libraryRef LIB))))
          (instance (rename id00008 "$procdff$10")
            (viewRef VIEW_NETLIST (cellRef id00004 (libraryRef LIB)))
            (property CLK_POLARITY (integer 1))
            (property WIDTH (integer 1)))
          (instance (rename id00009 "$procdff$9")
            (viewRef VIEW_NETLIST (cellRef id00004 (libraryRef LIB)))
            (property CLK_POLARITY (integer 0))
            (property WIDTH (integer 1)))
          (instance ubb
            (viewRef VIEW_NETLIST (cellRef bb)))
          (instance (rename id00014 "$add$top.v:23$4")
            (viewRef VIEW_NETLIST (cellRef id00003 (libraryRef LIB)))
            (property Y_WIDTH (integer 1))
            (property B_WIDTH (integer 1))
            (property A_WIDTH (integer 1))
            (property B_SIGNED (integer 0))
            (property A_SIGNED (integer 0)))
          (instance (rename id00015 "$add$top.v:20$2")
            (viewRef VIEW_NETLIST (cellRef id00003 (libraryRef LIB)))
            (property Y_WIDTH (integer 1))
            (property B_WIDTH (integer 1))
            (property A_WIDTH (integer 1))
            (property B_SIGNED (integer 0))
            (property A_SIGNED (integer 0)))
          (net y (joined
            (portRef A (instanceRef id00014))
            (portRef A (instanceRef id00015))
            (portRef id00012 (instanceRef ubb))
            (portRef y)
          ))
          (net x (joined
            (portRef CLK (instanceRef id00008))
            (portRef CLK (instanceRef id00009))
            (portRef id00011 (instanceRef ubb))
            (portRef x)
          ))
          (net cout (joined
            (portRef Q (instanceRef id00009))
            (portRef cout)
          ))
          (net cin (joined
            (portRef B (instanceRef id00015))
            (portRef cin)
            (portRef id00013 (instanceRef ubb))
          ))
          (net bb_out (joined
            (portRef id00010 (instanceRef ubb))
          ))
          (net (rename id00016 "$add$top.v:20$2_Y") (joined
            (portRef D (instanceRef id00008))
            (portRef Y (instanceRef id00015))
          ))
          (net (rename id00017 "$add$top.v:23$4_Y") (joined
            (portRef D (instanceRef id00009))
            (portRef Y (instanceRef id00014))
          ))
          (net A (joined
            (portRef A)
            (portRef B (instanceRef id00014))
            (portRef Q (instanceRef id00008))
          ))
        )
      )
    )
  )
  (design (rename id00001 "u/u")
    (cellRef id00001 (libraryRef DESIGN))
  )
)