-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autowrap and network construction features (#212)
- Loading branch information
Showing
49 changed files
with
2,600 additions
and
901 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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
// Copyright (c) 2024 Zero ASIC Corporation | ||
// This code is licensed under Apache License 2.0 (see LICENSE for details) | ||
|
||
`default_nettype none | ||
|
||
`include "switchboard.vh" | ||
|
||
module sb_loopback #( | ||
parameter DW=256, | ||
parameter [7:0] INCREMENT=1 | ||
) ( | ||
input clk, | ||
|
||
`SB_INPUT(in, DW), | ||
`SB_OUTPUT(out, DW) | ||
); | ||
|
||
// loopback with increment | ||
|
||
genvar i; | ||
generate | ||
for (i=0; i<(DW/8); i=i+1) begin | ||
assign out_data[(i*8) +: 8] = in_data[(i*8) +: 8] + INCREMENT; | ||
end | ||
endgenerate | ||
|
||
assign out_dest = in_dest; | ||
assign out_last = in_last; | ||
assign out_valid = in_valid; | ||
assign in_ready = out_ready; | ||
|
||
endmodule | ||
|
||
`default_nettype wire |
Oops, something went wrong.