Skip to content

Instantly share code, notes, and snippets.

@ZipCPU
Created July 19, 2018 00:20
Show Gist options
  • Save ZipCPU/faf5e1d5146d5bdb725d4f1ccdd1da35 to your computer and use it in GitHub Desktop.
Save ZipCPU/faf5e1d5146d5bdb725d4f1ccdd1da35 to your computer and use it in GitHub Desktop.
`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