edif.edif 5.99 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
(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))
  )
)