Skip to content

Conversation

@auphelia
Copy link
Collaborator

TBD

Joshua Monson and others added 30 commits June 23, 2025 20:57
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.
auphelia and others added 25 commits October 23, 2025 18:21
@auphelia auphelia requested a review from preusser November 25, 2025 15:57
@auphelia auphelia marked this pull request as ready for review November 25, 2025 15:58
Copy link
Collaborator

@preusser preusser left a 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
Copy link
Collaborator

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,
Copy link
Collaborator

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 parameter keyword for numeric parameters.
  • Be as restrictive as possible with the integer datatype: bit for binary 0/1 choice, int unsigned for unsigned parameters, and int for 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
Copy link
Collaborator

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
Copy link
Collaborator

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

// /*******************************************************************************
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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,
Copy link
Collaborator

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
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, avoid parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants