FPGA-Research-Manchester / FABulous

Fabric generator and CAD tools
https://fabulous.readthedocs.io/en/latest/
Apache License 2.0
148 stars 34 forks source link

Separate Fabric and Tile description #149

Open mole99 opened 9 months ago

mole99 commented 9 months ago

I think it would be clearer and more convenient to separate the fabric and tile descriptions in fabric.csv.

The file fabric.csv would then only contain the fabric description. The tile descriptions would reside in the tile-specific subfolders as e.g. tile.csv.

This makes sense as the tile configurations could be used for several fabrics and do not need to be duplicated.

KelvinChung2000 commented 9 months ago

A way to do this is to create a new attribute in the fabric.csv, which links to the tile.csv information. This should be straightforward.

You might consider allowing another file format for the configuration data, i.e. JSON, TOML or XML since libraries are already available for parsing them into dict.