2021-07-27 22:24:40 -04:00
|
|
|
//#############################################################################
|
|
|
|
//# Function: 2:1 Clock Mux #
|
|
|
|
//#############################################################################
|
|
|
|
//# Author: Andreas Olofsson #
|
|
|
|
//# License: MIT (see LICENSE file in OH! repository) #
|
|
|
|
//#############################################################################
|
|
|
|
|
2021-07-27 22:55:45 -04:00
|
|
|
module asic_clkmux2 #(parameter PROP = "DEFAULT") (
|
2021-07-27 22:24:40 -04:00
|
|
|
input clk0,
|
|
|
|
input clk1,
|
|
|
|
input sel,
|
|
|
|
output z
|
|
|
|
);
|
|
|
|
|
|
|
|
assign z = sel ? clk0 : clk1;
|
|
|
|
|
|
|
|
endmodule
|