mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 12:46:08 +01:00
fix: multi tile projects not placed correctly
This commit is contained in:
+7
-1
@@ -39,8 +39,14 @@ class CaravelConfig():
|
|||||||
configured_macros = set(map(lambda mod: mod['name'], module_config['modules']))
|
configured_macros = set(map(lambda mod: mod['name'], module_config['modules']))
|
||||||
logging.info(f"found {len(configured_macros)} preconfigured macros: {configured_macros}")
|
logging.info(f"found {len(configured_macros)} preconfigured macros: {configured_macros}")
|
||||||
for project in self.projects:
|
for project in self.projects:
|
||||||
|
tiles = project.yaml['project']['tiles']
|
||||||
|
width, height = map(int, tiles.split('x'))
|
||||||
if project.unprefixed_name not in configured_macros:
|
if project.unprefixed_name not in configured_macros:
|
||||||
module_config['modules'].append({'name': project.unprefixed_name})
|
module_config['modules'].append({
|
||||||
|
'name': project.unprefixed_name,
|
||||||
|
'width': width,
|
||||||
|
'height': height,
|
||||||
|
})
|
||||||
|
|
||||||
with open('tt-multiplexer/cfg/modules.yaml', 'w') as mux_modules_file:
|
with open('tt-multiplexer/cfg/modules.yaml', 'w') as mux_modules_file:
|
||||||
yaml.dump(module_config, mux_modules_file)
|
yaml.dump(module_config, mux_modules_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user