cxxrtl: fix crashes caused by a floating or constant clock input.
authorwhitequark <whitequark@whitequark.org>
Wed, 2 Dec 2020 21:39:25 +0000 (21:39 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 2 Dec 2020 21:43:25 +0000 (21:43 +0000)
commit7067f0d7885b57cd00ad62ee0ff776b554592ac0
tree5d190b97ded293a033cd5b4566ac207ecc754bfa
parent7b0cfd5c36af774ae255459d4ef0fa0934929902
cxxrtl: fix crashes caused by a floating or constant clock input.

E.g. in:

    module test;
        wire clk = 0;
        reg data;
        always @(posedge clk)
            data <= 0;
    endmodule
backends/cxxrtl/cxxrtl_backend.cc