Created
July 19, 2018 00:20
-
-
Save ZipCPU/faf5e1d5146d5bdb725d4f1ccdd1da35 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
`default_nettype none | |
// | |
module test(i_clk, i_value, o_value); | |
input wire i_clk; | |
input wire [15:0] i_value; | |
output reg [15:0] o_value; | |
wire [15:0] pre_value; | |
assign pre_value = i_value + 1; | |
always @(posedge i_clk) | |
o_value <= pre_value; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment