chipsalliance / f4pga-examples

Example designs showing different ways to use F4PGA toolchains.
https://f4pga-examples.readthedocs.io
Apache License 2.0
263 stars 77 forks source link

Understand impact of fixing the build for the antlr FASM modules #201

Open mithro opened 3 years ago

mithro commented 3 years ago

Before

03:04:13 | cd /root/work/xc7/counter_test/build/zybo && symbiflow_write_bitstream -d zynq7 -f top.fasm -p xc7z010clg400-1 -b top.bit
03:04:13 | Writing bitstream ...
03:04:15 | /root/opt/symbiflow/xc7/conda/envs/xc7/lib/python3.7/site-packages/fasm/parser/__init__.py:33: RuntimeWarning: Unable to import fast Antlr4 parser implementation.
03:04:15 |   ImportError: cannot import name 'antlr_to_tuple' from 'fasm.parser' (/root/opt/symbiflow/xc7/conda/envs/xc7/lib/python3.7/site-packages/fasm/parser/__init__.py)
03:04:15 | 
03:04:15 |   Falling back to the much slower pure Python textX based parser
03:04:15 |   implementation.
03:04:15 | 
03:04:15 |   Getting the faster antlr parser can normally be done by installing the
03:04:15 |   required dependencies and then reinstalling the fasm package with:
03:04:15 |     pip uninstall
03:04:15 |     pip install -v fasm
03:04:15 | 
03:04:15 |   """.format(e), RuntimeWarning)
03:04:15 | make: Leaving directory '/root/work/xc7/counter_test'

After

09:03:53 | cd /root/work/xc7/counter_test/build/zybo && symbiflow_write_bitstream -d zynq7 -f top.fasm -p xc7z010clg400-1 -b top.bit
09:03:53 | Writing bitstream ...
09:03:54 | make: Leaving directory '/root/work/xc7/counter_test'
mithro commented 3 years ago

Before - https://github.com/SymbiFlow/symbiflow-examples/runs/3572602286?check_suite_focus=true

03:03:00 | cd /root/work/xc7/linux_litex_demo/build/arty_100 && symbiflow_write_bitstream -d artix7 -f top.fasm -p xc7a100tcsg324-1 -b top.bit
03:03:00 | Writing bitstream ...
03:04:20 | /root/opt/symbiflow/xc7/conda/envs/xc7/lib/python3.7/site-packages/fasm/parser/__init__.py:33: RuntimeWarning: Unable to import fast Antlr4 parser implementation.
03:04:20 |   ImportError: cannot import name 'antlr_to_tuple' from 'fasm.parser' (/root/opt/symbiflow/xc7/conda/envs/xc7/lib/python3.7/site-packages/fasm/parser/__init__.py)
03:04:20 | 
03:04:20 |   Falling back to the much slower pure Python textX based parser
03:04:20 |   implementation.
03:04:20 | 
03:04:20 |   Getting the faster antlr parser can normally be done by installing the
03:04:20 |   required dependencies and then reinstalling the fasm package with:
03:04:20 |     pip uninstall
03:04:20 |     pip install -v fasm
03:04:20 | 
03:04:20 |   """.format(e), RuntimeWarning)
03:04:21 | make: Leaving directory '/root/work/xc7/linux_litex_demo'

After - https://github.com/SymbiFlow/symbiflow-examples/runs/3948650812?check_suite_focus=true

09:06:50 | cd /root/work/xc7/linux_litex_demo/build/arty_100 && symbiflow_write_bitstream -d artix7 -f top.fasm -p xc7a100tcsg324-1 -b top.bit
09:06:50 | Writing bitstream ...
09:07:11 | make: Leaving directory '/root/work/xc7/linux_litex_demo'
mithro commented 3 years ago

Before -- 03:03:00 --> 03:04:21 - 1 minute 21 seconds After -- 09:06:50 --> 09:07:11 - 21 seconds

mithro commented 3 years ago

FYI - @acomodi