From 4c6b3f6570a662f6a160adb408b7faeb0fd4fb44 Mon Sep 17 00:00:00 2001 From: htfab Date: Wed, 12 Mar 2025 12:31:28 +0100 Subject: [PATCH] feat: add support for hardening the chip rom on ihp/ol2 --- rom.py | 4 ++++ rom/config_ihp.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 rom/config_ihp.json diff --git a/rom.py b/rom.py index 21d7707..d588912 100644 --- a/rom.py +++ b/rom.py @@ -39,6 +39,10 @@ segment_font = { "o": 0b01011100, "p": 0b01110011, "t": 0b01111000, + "a": 0b01110111, + "b": 0b01111100, + "c": 0b01011000, + "d": 0b01011110, } diff --git a/rom/config_ihp.json b/rom/config_ihp.json new file mode 100644 index 0000000..a653605 --- /dev/null +++ b/rom/config_ihp.json @@ -0,0 +1,28 @@ +{ + "DESIGN_NAME": "tt_um_chip_rom", + "VERILOG_FILES": "dir::tt_um_chip_rom.v", + + "FP_SIZING": "absolute", + "DIE_AREA": [0, 0, 212.16, 154.98], + "FP_DEF_TEMPLATE": "ref::$DESIGN_DIR/../ihp/def/tt_block_1x1.def", + + "FP_IO_HLENGTH": 2, + "FP_IO_VLENGTH": 2, + + "//": "period is in ns, so 20ns == 50mHz", + "CLOCK_PERIOD": 20, + "CLOCK_PORT": "clk", + + "//": "don't use power rings or TopMetal", + "DESIGN_IS_CORE": false, + "RT_MAX_LAYER": "Metal5", + + "//": "save some time", + "RUN_KLAYOUT_XOR": false, + + "//": "reduce wasted space", + "TOP_MARGIN_MULT": 1, + "BOTTOM_MARGIN_MULT": 1, + "LEFT_MARGIN_MULT": 6, + "RIGHT_MARGIN_MULT": 6 +}