diff --git a/lib/ClockOut.bsv b/lib/ClockOut.bsv new file mode 100644 index 0000000..5517e39 --- /dev/null +++ b/lib/ClockOut.bsv @@ -0,0 +1,16 @@ +package ClockOut; + +interface ClockOut; + method bit value(); +endinterface + +import "BVI" ClockOut = + module mkClockOut(ClockOut); + default_reset no_reset; + default_clock clk (CLK, (* unused *)GATE); + + method CLK_BIT value() clocked_by(no_clock); + + schedule value CF value; + endmodule +endpackage diff --git a/lib/ClockOut.v b/lib/ClockOut.v new file mode 100644 index 0000000..77b7939 --- /dev/null +++ b/lib/ClockOut.v @@ -0,0 +1,3 @@ +module ClockOut(input CLK, output CLK_BIT); + assign CLK_BIT = CLK; +endmodule