Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Issue 7 #240

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ find_package(BISON 3.0.4 REQUIRED)
if (APPLE)
set(cxxlib libc++)
set(force_compiler "compiler=apple-clang")
include_directories(/usr/local/include)
link_directories(/usr/local/lib)
else ()
set(cxxlib libstdc++11)
set(force_compiler "")
Expand Down Expand Up @@ -48,3 +50,4 @@ add_subdirectory(share)
add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(tools)

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,14 @@ Alternatively, you can use Quartus Lite IDE installed on a remote host:
$ quartus_server --tunnel-command <command/like/ssh> --path <quartus/install/dir> --port 9900
```

Next you'll need an SD card image for your DE10 with a valid installation of Cascade. Cascade can generate
this image for you automatically or you can download a prebuilt image [here (todo)](todo). Reboot your DE10 using this image and run Cascade as usual (but on the DE10, use sudo).
Next you'll need an SD card image for your DE10 which is compatible with Cascade. Any embedded version of Ubuntu will do, but a pre-built image is available [here](https://drive.google.com/open?id=1EnwC3NOevqvTYvIEnHfXCSK_7UKwBWwi). Flash the image onto an SD card, reboot your DE10, and log in using the username/password ```fpga```/```fpga```. You can log in either over the UART port using an application such as screen, over the USB port using ssh over USB using the static IP ```192.168.7.1```, or over the network port using ssh (though you'll need to login through another means first to determine the IP assigned by DHCP).

Once you are logged in, you can run Cascade as usual (IMPORTANT: but on the DE10, use sudo).
```
$ cd cascade
$ sudo cascade --march de10 --quartus_host <64-bit Linux IP> --quartus_port <64-bit Linux port>
```
As Cascade is under active development, you may wish to first type ```git pull``` and perform a fresh rebuild to take advantage of any recent bug fixes.

Assuming Cascade is able to successfully connect to the FPGA fabric, you will
be presented with a similar environment to the one you encountered when using the software backend. The only
Expand Down
24 changes: 12 additions & 12 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,18 @@ case "${unameOut}" in
esac
fi
export CPP="g++ -E"
if [ ! -d "/usr/include" ]; then
if [ $SILENT -eq 1 ]; then
echo "Your /usr/include directly does not seem to be configured correctly (CI ignored)."
else
echo "Your /usr/include directly does not seem to be configured correctly."
OS_VERSION=$(sw_vers -productVersion | sed "s:.[[:digit:]]*.$::g")
HEADERS_INSTALL_PATH="/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_${OS_VERSION}.pkg"
echo "Try installing the package manually by running:"
echo "${WHITE}open ${HEADERS_INSTALL_PATH}${NC}"
exit 1
fi
fi
#if [ ! -d "/usr/include" ]; then
# if [ $SILENT -eq 1 ]; then
# echo "Your /usr/include directly does not seem to be configured correctly (CI ignored)."
# else
# echo "Your /usr/include directly does not seem to be configured correctly."
# OS_VERSION=$(sw_vers -productVersion | sed "s:.[[:digit:]]*.$::g")
# HEADERS_INSTALL_PATH="/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_${OS_VERSION}.pkg"
# echo "Try installing the package manually by running:"
# echo "${WHITE}open ${HEADERS_INSTALL_PATH}${NC}"
# exit 1
# fi
#fi
build_cascade "-DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison -DFLEX_INCLUDE_DIR=/usr/local/opt/flex/include"
;;

Expand Down
12 changes: 12 additions & 0 deletions share/cascade/de10/ip/program_logic.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module program_logic(
input wire clk,
input wire reset,
input wire[15:0] s0_address,
input wire s0_read,
input wire s0_write,
output wire[15:0] s0_readdata,
input wire [15:0] s0_writedata,
output wire s0_waitrequest
);
// Does nothing
endmodule
323 changes: 0 additions & 323 deletions share/cascade/de10/software/spl_bsp/Makefile

This file was deleted.

Loading