2021-09-09 01:13:32 -06:00
|
|
|
image: ubuntu
|
|
|
|
stages:
|
2022-08-21 11:56:43 -06:00
|
|
|
- unit_test
|
|
|
|
- build
|
2021-09-09 01:13:32 -06:00
|
|
|
|
|
|
|
|
2022-08-21 11:56:43 -06:00
|
|
|
testbench:
|
|
|
|
stage: unit_test
|
2021-09-09 01:13:32 -06:00
|
|
|
script:
|
|
|
|
- echo "Installing dependencies..."
|
2022-08-21 11:56:43 -06:00
|
|
|
- apt update && apt install -y make iverilog
|
2022-08-21 12:01:17 -06:00
|
|
|
- make -v
|
|
|
|
- iverilog -V
|
2021-09-09 01:13:32 -06:00
|
|
|
- echo "Running unit tests..."
|
2022-08-21 11:56:43 -06:00
|
|
|
- make tb
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tb/**/*.vcd
|
|
|
|
|
|
|
|
synthesis:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- echo "Installing dependencies..."
|
2022-08-21 12:01:17 -06:00
|
|
|
- apt update && apt install -y make yosys arachne-pnr
|
|
|
|
- make -v
|
|
|
|
- yosys -V
|
|
|
|
- arachne-pnr -v
|
2022-08-21 11:56:43 -06:00
|
|
|
- echo "Building binary..."
|
2021-09-09 01:13:32 -06:00
|
|
|
- make
|
2022-08-21 11:56:43 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build
|