systemc: Add some error checks to sc_clock.
authorGabe Black <gabeblack@google.com>
Fri, 5 Oct 2018 22:55:50 +0000 (15:55 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:57:51 +0000 (00:57 +0000)
commit3287171e087ecfe6d22a86703aab29a2bbd3519a
tree0e68d9b044e3041e4009aad30f1f40666f3eac12
parentc701d88756fa135c2016cbf968970d37ec67e26c
systemc: Add some error checks to sc_clock.

The Accellera version reports an error if the period, high or low
portions of the clock are zero.

Change-Id: I2cbb7c3a1b6abe4d969ef875ebf8754d2d1c489a
Reviewed-on: https://gem5-review.googlesource.com/c/13303
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/channel/sc_clock.cc