3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Switched to Python 3

This commit is contained in:
Clifford Wolf 2015-08-22 09:59:25 +02:00
parent f40d1b78b6
commit c475deec6c
14 changed files with 14 additions and 35 deletions

View file

@ -12,7 +12,7 @@ EXTRA_OBJS += techlibs/ice40/brams_init.mk
techlibs/ice40/brams_init.mk: techlibs/ice40/brams_init.py
$(Q) mkdir -p techlibs/ice40
$(P) python $<
$(P) python3 $<
$(Q) touch techlibs/ice40/brams_init.mk
techlibs/ice40/brams_init1.vh: techlibs/ice40/brams_init.mk

View file

@ -1,7 +1,4 @@
#!/usr/bin/python
from __future__ import division
from __future__ import print_function
#!/usr/bin/env python3
def write_init_vh(filename, initbits):
with open(filename, "w") as f:

View file

@ -11,7 +11,7 @@ EXTRA_OBJS += techlibs/xilinx/brams_init.mk
techlibs/xilinx/brams_init.mk: techlibs/xilinx/brams_init.py
$(Q) mkdir -p techlibs/xilinx
$(P) python $<
$(P) python3 $<
$(Q) touch $@
techlibs/xilinx/brams_init_36.vh: techlibs/xilinx/brams_init.mk

View file

@ -1,7 +1,4 @@
#!/usr/bin/python
from __future__ import division
from __future__ import print_function
#!/usr/bin/env python3
with open("techlibs/xilinx/brams_init_18.vh", "w") as f:
for i in range(8):