-
Notifications
You must be signed in to change notification settings - Fork 13
Final changes for BlackParrot integration #7
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: black-parrot
Are you sure you want to change the base?
Changes from 6 commits
d3a818c
c4d8f32
a509765
9ded7e8
c4c6e5f
da77c23
274a517
204f3e8
5943677
5a2de3b
c48a5dd
85f552f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -946,8 +946,8 @@ uart_top uart_top ( | |
| `endif // PITONSYS_NO_MC | ||
|
|
||
| // Uncomment to connect to the switch | ||
| // .uart_timeout_en(uart_timeout_en), | ||
| .uart_timeout_en ( 1'b1 ), | ||
| .uart_timeout_en(uart_timeout_en), | ||
| // .uart_timeout_en ( 1'b1 ), | ||
|
|
||
| .test_start ( test_start ), | ||
| .test_good_end ( test_good_end ), | ||
|
|
@@ -1066,8 +1066,10 @@ ciop_fake_iob ciop_fake_iob( | |
|
|
||
| <% | ||
| text = r''' | ||
| .spc0_inst_done (`PITON_CORE0_INST_DONE), | ||
| .pc_w0 (`PITON_CORE0_PC_W0), | ||
| `ifndef DISABLE_ALL_MONITORS | ||
|
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. Just remove the indent on this so it's a 2 line patch here |
||
| .spc0_inst_done (`PITON_CORE0_INST_DONE), | ||
| .pc_w0 (`PITON_CORE0_PC_W0), | ||
| `endif | ||
| ''' | ||
|
|
||
| for i in range (PITON_NUM_TILES): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ import pyhplib | |
| import os | ||
| from pyhplib import * | ||
|
|
||
| if PITON_ARIANE: | ||
| if PITON_BLACKPARROT: | ||
|
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. This should probably just be the |
||
| devices = pyhplib.ReadDevicesXMLFile() | ||
| %> | ||
|
|
||
|
|
@@ -46,7 +46,7 @@ module storage_addr_trans #(parameter MEM_ADDR_WIDTH=64, VA_ADDR_WIDTH=40, STORA | |
| output hit_any_section | ||
| ); | ||
|
|
||
| `ifdef PITON_ARIANE | ||
| `ifdef PITON_BLACKPARROT | ||
|
|
||
| wire [63:0] storage_addr; | ||
|
|
||
|
|
@@ -56,7 +56,7 @@ wire in_section_0; | |
|
|
||
| // align physical address, and use correct memory offsets as specified in platform config | ||
| <% | ||
| if PITON_ARIANE: | ||
| if PITON_BLACKPARROT: | ||
| for i in range(len(devices)): | ||
| if devices[i]["name"] == "mem": | ||
| memBegin = devices[i]["base"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,9 @@ set_false_path -from [get_ports trst_ni] | |
| set_max_delay -datapath_only -from [get_clocks -include_generated_clocks chipset_clk_clk_mmcm] -to [get_clocks tck_i] 15.000 | ||
| set_max_delay -datapath_only -from [get_clocks tck_i] -to [get_clocks -include_generated_clocks chipset_clk_clk_mmcm] 15.000 | ||
|
|
||
| # Retiming | ||
| set_property BLOCK_SYNTH.RETIMING 1 [get_cells -hierarchical *pipe_fma*] | ||
|
|
||
|
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. This didn't end up helping much, right? Should we keep this out and wait for the manually retimed FPU? |
||
| set_property -dict {PACKAGE_PIN Y29 IOSTANDARD LVCMOS33} [get_ports trst_ni] | ||
| set_property -dict {PACKAGE_PIN AD27 IOSTANDARD LVCMOS33} [get_ports tck_i] | ||
| set_property -dict {PACKAGE_PIN W27 IOSTANDARD LVCMOS33} [get_ports td_i] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| # create mem.image | ||
| #riscv64-unknown-elf-objcopy --reverse-bytes 4 -I elf32-littleriscv -O binary diag.exe diag.o | ||
| ${RV64_TARGET_TRIPLE}-objcopy -I elf64-littleriscv -O binary diag.exe diag.o | ||
| cp diag.exe prog.elf | ||
|
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. What is this for? |
||
| # pad with zero to 128byte boundary | ||
| du diag.o -b | awk '{print(128 - ($1 % 128));}' | xargs -t -ISIZE truncate diag.o -s +SIZE | ||
| printf "\n@0000000080000000\t// Section '.RED_SEC', segment 'text'\n" >mem.image | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| # Format: | ||
| # BlockID BlockPath Supported Board,Frequency(MHz),DDRSize(Mbytes) | ||
| piton_aws ../../build/f1/piton_aws/design f1,62.5,4096 | ||
| system . vc707,60,1024;genesys2,66.667,1024;nexysVideo,30,512;vcu118,100,2048;xupp3r,60,32768 | ||
| system . vc707,60,1024;genesys2,25,1024;nexysVideo,30,512;vcu118,100,2048;xupp3r,60,32768 | ||
|
||
| chipset chipset genesys2,66.667,1024;piton_board,50,0 | ||
| passthru passthru piton_board,100,0 | ||
| passthru_loopback fpga_tests/passthru_loopback piton_board,100,0 | ||
|
|
||
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.
What's the original for this? Would be good if this weren't changed versus upstream