Skip to content

eolivier8268/ece281-lab1

 
 

Repository files navigation

Lab 1: Thirty-One Day Month

VHDL template for ECE 281 Lab 1

Targeted toward Digilent Basys3. Make sure to install the board files.

Tested on Windows 10.

Usage

Clone and cd into the directory.

Build the project using the handy .bat file.

./build.bat

You should see a new .xpr file. Open it with Vivado!

Manually, without BAT

  1. Clone the repo
  2. Open Vivado 2018.2
  3. From the weclome screen, select Window->Tcl Console
  4. In the tcl console at the bottom of the screen cd to the this directory
  5. In the consoled enter source helloLed.tcl
  6. Proceed with normal simulation, synthesis, implementation, bitstream process.
  7. On the board SW0 should now control LD0!

Thanks to fpgadeveloper post!

GitHub Actions Testbench

The workflow uses the setup-ghdl-ci GitHub action to run a nightly build of GHDL.

First, the workflow uses GHDL to analyze all .vhd files in src/hdl/.

Then it elaborates the any entity with the name *_tb. In this case, that is helloled_tb.

Finally, the workflow runs the simulation. If successful then it will quietly exit with a 0 code. If any of the assert statements fail with severity failure then GHDL will cease the simulation and exit with non-zero code; this will also cause the workflow to fail. Assert statements of other severity levels will be reported, but not fail the workflow.

About

Lab 1: Logic for Thirty-One Day Month

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 36.4%
  • JavaScript 20.2%
  • Tcl 17.2%
  • VHDL 10.8%
  • Shell 6.5%
  • C 4.9%
  • Other 4.0%