.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_openfpga_floorplanning/03_utilization_based_floorplan.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_openfpga_floorplanning_03_utilization_based_floorplan.py: =============================== Utilisation based floorplanning =============================== This example demostrated how to set utilisation based constraints for each module durignfloorplanning. **Not implemented yet** .. GENERATED FROM PYTHON SOURCE LINES 12-43 .. code-block:: Python import glob import math import logging import spydrnet as sdn from spydrnet_physical.util import OpenFPGA, initial_hetero_placement from spydrnet_physical.util import FPGAGridGen, FloorPlanViz logger = logging.getLogger("spydrnet_logs") sdn.enable_file_logging(LOG_LEVEL="INFO") STYLE_SHEET = """ .over_util {fill:#b22222 !important} text{font-family: Lato; font-style: italic; font-size: 350px;} """ SCALE = 100 CPP = math.floor(0.46 * SCALE) SC_HEIGHT = math.floor(2.72 * SCALE) def main(): """ Main method """ print("NotImplementedYet") if __name__ == "__main__": main() .. _sphx_glr_download_auto_openfpga_floorplanning_03_utilization_based_floorplan.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 03_utilization_based_floorplan.ipynb <03_utilization_based_floorplan.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 03_utilization_based_floorplan.py <03_utilization_based_floorplan.py>` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: 03_utilization_based_floorplan.zip <03_utilization_based_floorplan.zip>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_