Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL-to-HW flow provides no way to export a design's module and instance hierarchy as JSON, the way SiFive's flow does with its module hier.json and testharness hier.json files.
The task
The FIRRTL-to-HW flow provides no way to export a design's module and instance hierarchy as JSON, the way SiFive's flow does with its `module_hier.json` and `testharness_hier.json` files.
Part of henryen/OriGent-SFT-Data.