Skip to content
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

Openpiton Support for NetFPGA-SUME board #76

Open
wants to merge 16 commits into
base: openpiton
Choose a base branch
from

Conversation

MinaAbbasi
Copy link

This pull request contains the information of NetFPGA-SUME board and required changes to run Openpiton on this board.
Known issue:
1- Currently, there is no support for the network interface in this pull request. To run the Linux on NetFPGA-SUME, ariane_sdk should be built without the Xilinx NIC driver.
2- Instead of the reset button there is Virtual IO module that used for resetting the system.
3- The sd_cd signal should be manually asserted and de-asserted manually through VIO to boot the Linux. VIO facilitates use of FPGA words that users do not have direct access to and connect to over the network.
Support for NetFPGA-SUME This work has been done as a part of a research project in the COMPAS Lab, StonyBrook University. (https://compas.cs.stonybrook.edu/)

Copy link
Collaborator

@Jbalkind Jbalkind 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 awesome! Could you say a bit more about what you can and can't do on SUME with the support you added?

I've added a set of comments from a quick review that would be good to be addressed. We may want to try to test this out on our end before merging. Not sure yet but will get back to you on that.

Thanks a ton!

@@ -263,11 +274,9 @@ def getTestList(fname, flog, ustr_files=False):
def runMidas(tname, uart_div_latch, flog, midas_args=None, coreType="sparc", precompiled=False, x_tiles=1, y_tiles=1):
cmd = ""
if midas_args is None:
cmd = "sims -sys=manycore -novcs_build -midas_only \
-midas_args='-DUART_DIV_LATCH=0x%x -DFPGA_HW -DCIOP -DNO_SLAN_INIT_SPC' %s" % (uart_div_latch, tname)
cmd = "/var/services/homes/mabbasidinan/work/hw_memoization/openpiton/piton/tools/bin/sims -sys=manycore -novcs_build -midas_only -midas_args='-DUART_DIV_LATCH=0x%x -DFPGA_HW -DCIOP -DNO_SLAN_INIT_SPC' %s" % (uart_div_latch, tname)
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for this absolute path here

else:
cmd = "sims -sys=manycore -novcs_build -midas_only \
-midas_args='-DUART_DIV_LATCH=0x%x -DFPGA_HW -DCIOP -DNO_SLAN_INIT_SPC %s' %s" % \
cmd = "/var/services/homes/mabbasidinan/work/hw_memoization/openpiton/piton/tools/bin/sims -sys=manycore -novcs_build -midas_only -midas_args='-DUART_DIV_LATCH=0x%x -DFPGA_HW -DCIOP -DNO_SLAN_INIT_SPC %s' %s" % \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same absolute path

@@ -283,6 +292,7 @@ def runMidas(tname, uart_div_latch, flog, midas_args=None, coreType="sparc", pre
# used to run precompiled riscv tests
cmd += " -precompiled"

print cmd
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we remove this print?

set_property "target_constrs_file" "$constraints_file" $fileset_obj

#set_property "target_constrs_file" "$constraints_file" $fileset_obj
set_property "target_constrs_file" "$debug_constraints_file" $fileset_obj
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same thing here

@@ -177,7 +177,11 @@ set fileset_obj [get_filesets constrs_1]

# Add/Import constrs file and set constrs file properties
set constraints_file "${BOARD_DIR}/constraints.xdc"
set board_constraints_file "${BOARD_DIR}/SUME_Master.xdc"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know about these changes in gen_project.tcl. Can we get them to be SUME-only somehow?

@@ -381,7 +407,10 @@ module system(
input btnc,
`endif

`ifdef VCU118_BOARD
`ifdef SUME_BOARD
//input reset,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this block necessary if it's commented out?

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.

None yet

2 participants