-
Notifications
You must be signed in to change notification settings - Fork 281
Multi-Layer Offload #1489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Multi-Layer Offload #1489
Conversation
Add loop_control and loop_control_wrapper
…ased on a lambda filter, updated the loop test to reflect the changes
Extended adjacency_list utility function to accept a lambda for filtering decisions.
Update loop tb
…4 mismatch issue)
… an MLO sim is being performed.
Refactor Loop Op flow
… when extracting folding config json
preusser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good functionally.
Please, fix licenses and clean up module interfaces though.
| @@ -0,0 +1,452 @@ | |||
| // Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | |||
| // | |||
| // This file is subject to the Xilinx Design License Agreement located | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, put this AMD code under the same BSD license as the rest of the project.
| // THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE AT ALL TIMES. | ||
|
|
||
| module cdma_top #( | ||
| parameter integer BURST_LEN = 16, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, review the declaration of generics:
- Avoid the obsolete
parameterkeyword for numeric parameters. - Be as restrictive as possible with the integer datatype:
bitfor binary 0/1 choice,int unsignedfor unsigned parameters, andintfor values that cannot remain unknown. - Avoid default values for everything that requires a conscious user choice. Only specify defaults when deviations are clear exceptions from a natural intuitive default choice.
| AXI4SF.master m_axis_ddr | ||
| ); | ||
|
|
||
| if(CDMA_TYPE == 0) begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer a unique case(CDMA_TYPE) construct with a default case producing an appropriate error message for unsupported values.
| @@ -0,0 +1,107 @@ | |||
| `timescale 1ns / 1ps | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use module-specific timescales. Rather, specify delays with units at the sites of use.
| @@ -0,0 +1,107 @@ | |||
| `timescale 1ns / 1ps | |||
|
|
|||
| // /******************************************************************************* | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to appropriate AMD copyright as used in FINN.
| @@ -0,0 +1,194 @@ | |||
| # Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | |||
| # | |||
| # This file is subject to the Xilinx Design License Agreement located | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update for use in FINN.
| @@ -0,0 +1,312 @@ | |||
| // Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | |||
| // | |||
| // This file is subject to the Xilinx Design License Agreement located | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update for the use in FINN.
| // THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE AT ALL TIMES. | ||
|
|
||
| module local_weight_buffer #( | ||
| parameter int unsigned PE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid parameter.
| @@ -0,0 +1,277 @@ | |||
| // Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | |||
| // | |||
| // This file is subject to the Xilinx Design License Agreement located | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update for the use in FINN.
|
|
||
| module loop_control #( | ||
| // COMPILER SET, this is the size of the global in, global out frames | ||
| parameter int unsigned FM_SIZE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, avoid parameter.
TBD