-
Notifications
You must be signed in to change notification settings - Fork 46
Added Xilinx BRAM Macro and changes to kernel #63
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
Open
vineetjain07
wants to merge
23
commits into
os-fpga:master
Choose a base branch
from
vineetjain07:f1_hw_debug
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5df8270
test: manycore prebuild
e2e569a
test: possible fix for OpenCL warnings
vineetjain07 7627a1d
report flag change and verbosity=10
7afca3b
Revert "test: possible fix for OpenCL warnings"
f5b4579
fix1: afi after verbosity, manycore, vadd
3a5da3c
test2: debug changes to server.c
3de39ef
checkpoint WIP
vineetjain07 d913a7a
checkpoint2: but start_kerenel broken
vineetjain07 6982301
checkpoint2: sdaccel.ini path fix
vineetjain07 39e83b8
clean dir and revert makefile
vineetjain07 d355443
manycore with reset button and .vscode to gitignore
vineetjain07 0445592
Merge remote-tracking branch 'upstream/master' into manycore
vineetjain07 c8ac34e
clean log files
vineetjain07 c35bb66
Merge branch 'manycore' into f1_hw_debug
vineetjain07 5c2d118
verbosity server_api=10, -O quick
vineetjain07 83250d9
remove launch_waveform in sdaccel.ini
vineetjain07 4078d17
warp-v prebuild
53c626d
prebuild Warp-V after xilinx macro
8281f62
extra space in aws credentials fixed
vineetjain07 418b638
remove launch_waveform
fe9d038
change optimize
f2b3bd2
mandelbrot and warp-v prebuilt
e32fe36
manycore_kernel, hw_emu test
vineetjain07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ apps/mandelbrot/build/cast | |
| /tmp | ||
| **/log/ | ||
| **/out/ | ||
| .vscode | ||
| node_modules | ||
|
|
||
| __pycache__ | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,122 @@ | ||
| \m4_TLV_version 1d: tl-x.org | ||
| \m4_TLV_version 1d --fmtFlatSignals --bestsv --noline: tl-x.org | ||
| \SV | ||
| // ----------------------------------------------------------------------------- | ||
| // Copyright (c) 2019, Steven F. Hoover | ||
| // | ||
| // Redistribution and use in source and binary forms, with or without | ||
| // modification, are permitted provided that the following conditions are met: | ||
| // | ||
| // * Redistributions of source code must retain the above copyright notice, | ||
| // this list of conditions and the following disclaimer. | ||
| // * Redistributions in binary form must reproduce the above copyright | ||
| // notice, this list of conditions and the following disclaimer in the | ||
| // documentation and/or other materials provided with the distribution. | ||
| // * The name Steven F. Hoover | ||
| // may not be used to endorse or promote products derived from this software | ||
| // without specific prior written permission. | ||
| // | ||
| // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE | ||
| // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| // ----------------------------------------------------------------------------- | ||
|
|
||
|
|
||
| m4+definitions([' | ||
| m4_include_url(['https://raw.githubusercontent.com/stevehoover/makerchip_examples/ceebf870862e222ebc6eaf92d5a7fb85a525d069/1st-claas_template_with_macros.tlv']) | ||
| // -------------------------------------------------------------------- | ||
| // | ||
| // A library file for developing FPGA kernels for use with 1st CLaaS | ||
| // (https://github.com/stevehoover/1st-CLaaS) | ||
| // | ||
| // -------------------------------------------------------------------- | ||
|
|
||
| // 1st CLaaS imported from https://github.com/stevehoover/makerchip_examples/blob/master/1st-claas_template_with_macros.tlv | ||
|
|
||
| // The 1st CLaaS kernel module definition. | ||
| // 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'], [' | ||
| module $1['']_kernel #( | ||
| parameter integer C_DATA_WIDTH = 512 // Data width of both input and output data | ||
| ) | ||
| ( | ||
| input wire clk, | ||
| input wire reset, | ||
| output wire in_ready, | ||
| input wire in_avail, | ||
| input wire [C_DATA_WIDTH-1:0] in_data, | ||
| input wire out_ready, | ||
| output wire out_avail, | ||
| output wire [C_DATA_WIDTH-1:0] out_data | ||
| ); | ||
| ']) | ||
|
|
||
| // Makerchip module definition containing a testbench and instantiation of the custom kernel. | ||
| // This must be defined prior to any \TLV region, so \TLV macro syntax cannot be used - just raw m4. | ||
| // $1: kernel name | ||
| // $2: (opt) passed statement | ||
| // $3: (opt) failed statement | ||
|
|
||
| m4_define(['m4_makerchip_module_with_random_kernel_tb'], [' m4_ifelse_block(M4_MAKERCHIP, 1, [' | ||
| // Makerchip interfaces with this module, coded in SV. | ||
| m4_makerchip_module | ||
| // Instantiate a 1st CLaaS kernel with random inputs. | ||
| logic [511:0] in_data = {2{RW_rand_vect[255:0]}}; | ||
| logic in_avail = ^ RW_rand_vect[7:0]; | ||
| logic out_ready = ^ RW_rand_vect[15:8]; | ||
|
|
||
| $1['']_kernel kernel ( | ||
| .*, // clk, reset, and signals above | ||
| .in_ready(), // Ignore blocking (inputs are random anyway). | ||
| .out_avail(), // Outputs dangle. | ||
| .out_data() // " | ||
| ); | ||
| $2 | ||
| $3 | ||
| endmodule | ||
| m4_kernel_module_def($1) | ||
| '], [' | ||
| m4_kernel_module_def($1) | ||
| ']) | ||
| ']) | ||
| m4_makerchip_module_with_random_kernel_tb(my, ['assign passed = cyc_cnt > 20;']) | ||
|
|
||
| ']) | ||
|
|
||
| // (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) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be included from somewhere else? |
||
| m4_pushdef(['m4_trans_ind'], m4_ifelse(/_trans, [''], [''], [' '])) | ||
| // The input interface hookup. | ||
| |_in | ||
| @_in | ||
| $reset = *reset; | ||
| `BOGUS_USE($reset) | ||
| $avail = *in_avail; | ||
| *in_ready = ! $blocked; | ||
| /trans | ||
| m4_trans_ind $data[C_DATA_WIDTH-1:0] = *in_data; | ||
| // The output interface hookup. | ||
| |_out | ||
| @_out | ||
| $blocked = ! *out_ready; | ||
| *out_avail = $avail; | ||
| /trans | ||
| m4_trans_ind *out_data = $data; | ||
|
|
||
|
|
||
| \SV | ||
| m4_makerchip_module_with_random_kernel_tb(calculator, ['assign passed = cyc_cnt > 20;']) // Provide the name the top module for 1st CLaaS in $3 param | ||
| m4+definitions(['']) // A hack to reset line alignment to address the fact that the above macro is multi-line. | ||
| \TLV | ||
| // A default direct hookup from |in to |out. | ||
|
|
||
| m4+tlv_wrapper(|in, @0, |out, @0, /trans) | ||
| |in | ||
| @0 | ||
|
|
@@ -66,6 +176,7 @@ m4+definitions(['']) // A hack to reset line alignment to address the fact that | |
| // Extract output data to the output field | ||
| /trans@0$data = |in@1$output; | ||
|
|
||
| m4+rename_flow(/top, |in, @0, |out, @0, /trans) | ||
| \SV | ||
| endmodule | ||
|
|
||
|
|
||
This file contains hidden or 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,17 @@ | ||
| { | ||
| "accountId" : "903992718225", | ||
| "architecture" : "x86_64", | ||
| "availabilityZone" : "us-east-1d", | ||
| "billingProducts" : null, | ||
| "devpayProductCodes" : null, | ||
| "marketplaceProductCodes" : [ "3sppv90yg5o5uyuw20at6ywak" ], | ||
| "imageId" : "ami-0e560af290c745f5b", | ||
| "instanceId" : "i-06157a7afe221b791", | ||
| "instanceType" : "c4.2xlarge", | ||
| "kernelId" : null, | ||
| "pendingTime" : "2021-08-19T16:22:29Z", | ||
| "privateIp" : "172.31.23.12", | ||
| "ramdiskId" : null, | ||
| "region" : "us-east-1", | ||
| "version" : "2017-09-30" | ||
| } |
This file contains hidden or 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,6 @@ | ||
| [Debug] | ||
| profile = true | ||
| timeline_trace = true | ||
| data_transfer_trace=coarse | ||
| stall_trace=all | ||
|
|
Binary file modified
BIN
+9.44 KB
(100%)
apps/mandelbrot/prebuilt/hw/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/host
Binary file not shown.
Binary file modified
BIN
+968 Bytes
(120%)
apps/mandelbrot/prebuilt/hw/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/mandelbrot.awsxclbin
Binary file not shown.
This file contains hidden or 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,8 @@ | ||
| [Debug] | ||
| profile = true | ||
| timeline_trace = true | ||
| data_transfer_trace=coarse | ||
| stall_trace=all | ||
|
|
||
| [Emulation] | ||
| launch_waveform=batch |
This file contains hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
Binary file added
BIN
+4.33 KB
apps/manycore/prebuilt/hw/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/manycore.awsxclbin
Binary file not shown.
This file contains hidden or 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,6 @@ | ||
| [Debug] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be in /framework? |
||
| profile = true | ||
| timeline_trace = true | ||
| data_transfer_trace=coarse | ||
| stall_trace=all | ||
|
|
||
Binary file not shown.
Binary file added
BIN
+4.31 KB
apps/vadd/prebuilt/hw/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/vadd.awsxclbin
Binary file not shown.
This file contains hidden or 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,6 @@ | ||
| [Debug] | ||
| profile = true | ||
| timeline_trace = true | ||
| data_transfer_trace=coarse | ||
| stall_trace=all | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
Binary file added
BIN
+5.21 KB
apps/warpv/prebuilt/hw/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4.0/warpv.awsxclbin
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can this be included from elsewhere?