Overview
The purpose of this lab is for you to get the different tools we will use throughout the semester set up and working.- Preparation
-
- Sign up for a GitHub account if you don't already have one. (We will be using GitHub classroom to manage assignments.)
- Make sure you can access your EOS account. If you don't have an account, or otherwise can't access your account, contact HPC support
before the beginning of lab (
hpcsupport@gvsu.edu
). - Set up a public/private SSH keypair and upload your public key to GitHub. (See this video for instructions).
- Review basic
git
usage.
- GitHub Classroom and Java
-
Next week's lab is to write some Java code. The automated testing for this project uses JUnit 5 and Maven. Make sure you have a suitable environment set up.
(The easiest solution may be to use the School of Computing's EOS/Arch environment because they are already set up. This is now even easier because you can work
in EOS/Arch directly through your browser at
https://cislab.hpc.gvsu.edu/
. No morex2Go
!) This video discusses the steps below in more detail.- Follow this GitHubClassroom link to generate your personal repository for next week's lab.
- Clone the generated Git repository.
- Open the project in the IDE of your choice.
- Make sure you can run the JUnit tests.
- Change the
return
statement inBaseConverter::convert
fromreturn ""
toreturn "0"
. At least one test should now pass.
- JLS
-
This semester we will be using a digital logic simulator called JLS.
All the necessary code is contained in a single
.jar
file.- If you are using
EOS/Arch, you will find
JLS.jar
in/home/kurmasz/public/bin
. The easiest way to run JLS in EOS/Arch is to put this directory in your path. (For most of you, the best way to do this is to add the lineexport PATH=$PATH:/home/kurmasz/public/bin
to the end of your.bashrc
.) There is a script namedjls
in this directory that sets up the java classpath and launches JLS. This directory also contains other scripts that will make your life in this course much easier. If you object to adding this directory to your path, you can also launch JLS with this command:java -jar /home/kurmasz/public/bin/JLS.jar /JLS.jar
. - If you want to run
JLS
on your own machine, you can download thejar
file here. (Please do not email Prof. Poplawski for a copy ofJLS
).
- Download
isPrime.jls
. - Launch
JLS
(either in EOS/Arch or on your own machine) and complete theisPrime
circuit demonstrated in Video 1. Do not modify the names of the input and output.
- If you are using
EOS/Arch, you will find
- DLUnit
-
We will use a tool called DLUnit to run automated tests on your JLS circuits. Specifically,
DLUnit
allows you to write and execute JUnit tests for your circuits.To run
DLUnit
- in EOS/Arch:
- Make sure
/home/kurmasz/public/bin
is in yourPATH
- Download IsPrimeTest.java.
- Compile the test:
dlunit_compile IsPrimeTest.java
- Run
DLUnit
:dlunit isPrime.jls IsPrimeTest.class
.
- Make sure
- on your own machine
- Download DLUnit.jar.
- Download IsPrimeTest.java.
- Compile the test:
javac -cp DLUnit.jar IsPrimeTest.java
- Run
java -jar DLUnit.jar isPrime.jls IsPrimeTest.class
.
- Use
DLUnit
to verify that yourisPrime
circuit is correct.
- in EOS/Arch:
MARS
and MUnit
Updated Wednesday, 26 August 2020, 12:59 PM