Skip to content

Instantly share code, notes, and snippets.

@20Mhz
20Mhz / io_place.py
Created September 9, 2021 02:33
remove dependency on new_int
#!/usr/bin/env python3
# Copyright 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@20Mhz
20Mhz / LE Optimizer.py
Created October 16, 2014 12:15
LE Optimizer.py
# coding: utf-8
import ui
import math
from fractions import Fraction
def editLERow(sender):
'@type sender: ui.TableView'
idx = sender.selected_row
v["OutView"].text = str(idx)
@20Mhz
20Mhz / LE Optimizer.py
Created October 15, 2014 15:14
LE Optimizer.py
# coding: utf-8
import ui
def editRow(sender):
'@type sender: ui.TableView'
idx = sender.selected_row
v["OutView"].text = str(idx)
rows = listLE.items
rows.pop(idx)