register_file: Report value being written before asserting it's not X
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 13 Jun 2020 07:22:56 +0000 (17:22 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 13 Jun 2020 07:35:27 +0000 (17:35 +1000)
commit5a00029519a8887f87763cbef8424d1f90f2e1b1
treecaa8eb72caa1fb975908b8a905fc9bb963e4448a
parent12a257f01edb3c1d8986e89e6750d4a1f69822f4
register_file: Report value being written before asserting it's not X

If a bug causes an indeterminate value to be written to a GPR, an
assert causes simulation to abort.  Move the assert after the report
of the GPR index and value so that we get to know what the bad value
is before the simulation terminates.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
register_file.vhdl