1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00
oh/asiclib/hdl/asic_oddr.v
aolofsson 3dbb3755af Adding asiclib
-Represent set of cells that need hard coded cells or hard coded gate level designs.
2021-07-27 22:24:40 -04:00

25 lines
758 B
Verilog

//#############################################################################
//# Function: Dual data rate output buffer #
//# Copyright: OH Project Authors. All rights Reserved. #
//# License: MIT (see LICENSE file in OH repository) #
//#############################################################################
module asic_oddr
(
input clk, // clock input
input in0, // data for clk=0
input in1, // data for clk=1
output out // dual data rate output
);
//Making in1 stable for clk=1
reg in1_sh;
always @ (clk or in1)
if(~clk)
in1_sh <= in1;
//Using clock as data selctor
assign out = clk ? in1_sh : in0;
endmodule