Last active
October 17, 2018 02:39
-
-
Save koyamalmsteen/476cac06ea3c866bca9e5088efae467c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module PLatch(clk,ld,din,dout); | |
input clk,ld; | |
input [9:0] din; | |
output [9:0] dout; | |
reg [9:0] dreg; | |
always @(posedge clk) begin | |
if(ld==1'b1) | |
dreg=din; | |
end | |
assign dout=dreg; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment