-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |