Add some async/clock utilities
This commit is contained in:
19
vsrc/ClockToSignal.v
Normal file
19
vsrc/ClockToSignal.v
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
/* This blackbox is needed by
|
||||
* Chisel in order to do type conversion.
|
||||
* It may be useful for some synthesis flows
|
||||
* as well which require special
|
||||
* flagging on conversion from data to clock.
|
||||
*/
|
||||
|
||||
|
||||
module ClockToSignal(
|
||||
output signal_out,
|
||||
input clock_in
|
||||
);
|
||||
|
||||
|
||||
assign signal_out = clock_in;
|
||||
|
||||
endmodule // ClockToSignal
|
||||
|
18
vsrc/SignalToClock.v
Normal file
18
vsrc/SignalToClock.v
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
/* This blackbox is needed by
|
||||
* Chisel in order to do type conversion.
|
||||
* It may be useful for some synthesis flows
|
||||
* as well which require special
|
||||
* flagging on conversion from data to clock.
|
||||
*/
|
||||
|
||||
|
||||
module SignalToClock (
|
||||
output clock_out,
|
||||
input signal_in
|
||||
);
|
||||
|
||||
|
||||
assign clock_out = signal_in;
|
||||
|
||||
endmodule // SignalToClock
|
Reference in New Issue
Block a user