Start of public OpenTitan development history

Code contributors:
Alex Bradbury <asb@lowrisc.org>
Cindy Chen <chencindy@google.com>
Eunchan Kim <eunchan@google.com>
Gaurang Chitroda <gaurangg@google.com>
Mark Hayter <mark.hayter@gmail.com>
Michael Schaffner <msf@google.com>
Miguel Osorio <miguelosorio@google.com>
Nils Graf <nilsg@google.com>
Philipp Wagner <phw@lowrisc.org>
Pirmin Vogel <vogelpi@lowrisc.org>
Ram Babu Penugonda <rampenugonda@google.com>
Scott Johnson <scottdj@google.com>
Shail Kushwah <kushwahs@google.com>
Srikrishna Iyer <sriyer@google.com>
Steve Nelson <Steve.Nelson@wdc.com>
Tao Liu <taliu@google.com>
Timothy Chen <timothytim@google.com>
Tobias Wölfel <tobias.woelfel@mailbox.org>
Weicai Yang <weicai@google.com>
diff --git a/util/test_reggen/test_rtl.py b/util/test_reggen/test_rtl.py
new file mode 100644
index 0000000..b80bed4
--- /dev/null
+++ b/util/test_reggen/test_rtl.py
@@ -0,0 +1,20 @@
+# Copyright lowRISC contributors.
+# Licensed under the Apache License, Version 2.0, see LICENSE for details.
+# SPDX-License-Identifier: Apache-2.0
+
+import unittest
+
+from reggen import gen_rtl
+
+
+class TestFieldCheck(unittest.TestCase):
+    def test_check_bool(self):
+        arg = {'field1': "true", 'field2': "false", 'field3': "True"}
+        result = gen_rtl.check_field_bool(arg, 'field1', False)
+        self.assertTrue(result)
+        result = gen_rtl.check_field_bool(arg, 'field2', True)
+        self.assertFalse(result)
+        result = gen_rtl.check_field_bool(arg, 'field3', False)
+        self.assertFalse(result)
+        result = gen_rtl.check_field_bool(arg, 'field4', False)
+        self.assertFalse(result)