[reggen] Fix TypeError

Running reggen (e.g. through `make -C hw`) on the `v1-bronze` branch
fails with the following error message:

```
Traceback (most recent call last):
  File "/home/philipp/src/opentitan/util/topgen.py", line 964, in <module>
    main()
  File "/home/philipp/src/opentitan/util/topgen.py", line 860, in main
    generate_top_ral(completecfg, ip_objs, out_path)
  File "/home/philipp/src/opentitan/util/topgen.py", line 655, in generate_top_ral
    top_block.blocks.sort(key=lambda block: block.base_addr)
TypeError: '<' not supported between instances of 'int' and 'str'
```

Fix that by converting `base_addr` to str/int as necessary in all places
where it is used.

Signed-off-by: Philipp Wagner <phw@lowrisc.org>
diff --git a/util/topgen.py b/util/topgen.py
index 26a3b91..aa9d55b 100755
--- a/util/topgen.py
+++ b/util/topgen.py
@@ -667,7 +667,7 @@
     for block in top_block.blocks:
         for module in top["module"]:
             if block.name == module["name"]:
-                block.base_addr = module["base_addr"]
+                block.base_addr = int(module["base_addr"], 0)
                 break
 
     top_block.blocks.sort(key=lambda block: block.base_addr)