Skip to content

Added Xilinx BRAM Macro and changes to kernel - #63

Open
vineetjain07 wants to merge 23 commits into
os-fpga:masterfrom
vineetjain07:f1_hw_debug
Open

vineetjain07 wants to merge 23 commits into
os-fpga:masterfrom
vineetjain07:f1_hw_debug

Conversation

@vineetjain07

Copy link
Copy Markdown
Contributor

GSoC final Pull Request

static const int DATA_WIDTH_WORDS = DATA_WIDTH_BYTES / 4; //
static const int DATA_WIDTH_BITS = DATA_WIDTH_BYTES * 8; // 512 bits
static const int verbosity = 0; // 0: no debug messages; 10: all debug messages.
static const int verbosity = 10; // 0: no debug messages; 10: all debug messages.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Back to 0.

class Socket():

VERBOSITY = 0 # 0-10 (quiet-loud)
VERBOSITY = 10 # 0-10 (quiet-loud)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Back to 0.

Comment thread framework/build/Makefile

$(DEST_DIR)/$(KERNEL_EXE).xclbin: $(XO_FILE)
cd $(DEST_DIR); $(XOCC) -g --platform $(AWS_PLATFORM) --target $(BUILD_TARGET) --link -O quick --save-temps $(REPORT) --kernel $(KERNEL_NAME) ../../$(XO_FILE) $(KERNEL_LDCLFLAGS) $(KERNEL_FLAGS) $(KERNEL_ADDITIONAL_FLAGS) --output $(KERNEL_EXE).xclbin
cd $(DEST_DIR); $(XOCC) -g --platform $(AWS_PLATFORM) --profile_kernel data:all:all:all --target $(BUILD_TARGET) --link --optimize 2 --save-temps $(REPORT) --kernel $(KERNEL_NAME) ../../$(XO_FILE) --output $(KERNEL_EXE).xclbin

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this how we want to commit? Profiling works? What about the _FLAGS variables you removed?

Comment thread framework/build/Makefile
#hw and hw_emu target
$(DEST_DIR)/$(HOST_EXE): $(HOST_SRC) $(HOST_HDRS)
mkdir -p $(DEST_DIR)
cp sdaccel.ini $(DEST_DIR)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we want this?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Here and several other places.

Comment thread framework/build/Makefile
--memory_port_data_width $(KERNEL_NAME):512 \

KERNEL_ADDITIONAL_FLAGS=
KERNEL_ADDITIONAL_FLAGS= --xp vivado_prop:run.my_rm_synth_1.{STEPS.SYNTH_DESIGN.ARGS.FLATTEN_HIERARCHY}={rebuilt} \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are these all generally desired? Might be good to have some comments.

@@ -0,0 +1,6 @@
[Debug]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this be in /framework?

// (Finally, now in TLV-land)

// The hookup of kernel module SV interface signals to TLV signals following flow library conventions.
\TLV tlv_wrapper(|_in, @_in, |_out, @_out, /_trans)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can this be included from somewhere else?

// This must be defined prior to any \TLV region, so \TLV macro syntax cannot be used - just raw m4.
// $1: kernel name

m4_define(['m4_kernel_module_def'], ['

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can this be included from elsewhere?

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.

2 participants