Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
B0WEN-HU committed Aug 20, 2019
1 parent 469510e commit 2c2a9f8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/double/double.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module double(
input clock,
input reset,
input [31:0] io_in,
output [31:0] io_out
);
// wire [32:0] temp;
// assign temp = 32'b1 + io_in;
assign io_out = io_in << 1;//temp[31:0];
endmodule
22 changes: 22 additions & 0 deletions examples/double/double_axi.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module double_axi(
input ACLK,
input ARESETn,
output TREADY_IN,
input TVALID_IN,
input [31:0] TDATA_IN,
input TREADY_OUT,
output TVALID_OUT,
output [31:0] TDATA_OUT
);

double DUT(
.clock(ACLK),
.reset(ARESETn),
.io_in(TDATA_IN),
.io_out(TDATA_OUT)
);

assign TREADY_IN = 1'b1;
assign TVALID_OUT = 1'b1;

endmodule

0 comments on commit 2c2a9f8

Please sign in to comment.