Last active
December 16, 2015 15:39
-
-
Save uiur/5457885 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 IR (i, ar, br, d); | |
input [15:0] i; | |
output [2:0] ar, br; | |
reg [2:0] ar, br; | |
output [7:0] d; | |
reg [7:0] d; | |
always @(i) begin | |
ar <= i[13:11]; | |
br <= i[10:8]; | |
d <= i[7:0]; | |
end | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment