Fix requirements by Ratko Pilipović

This commit is contained in:
Gašper Fele-Žorž 2025-09-02 10:46:21 +02:00
parent 79293545d3
commit c15d6f1edf
11 changed files with 64 additions and 5 deletions

View file

@ -1,5 +1,8 @@
# Digitalno načrtovanje
# Nejc.Ilc@fri.uni-lj.si
# ratko.pilipovic@fri.uni-lj.si
# Windows, Vivado 2022.1
dependencies:
- role: vivado
- role: iverilog
- role: cocotb
- role: surfer-project

View file

@ -1,10 +1,10 @@
# Načrtovanje digitalnih naprav
# Miran.Koprivec@fri.uni-lj.si, Miha.Moskon@fri.uni-lj.si
# Windows, Vivado 2022.1
# Načrtovanje digitalnih naprav
# Miha.Moskon@fri.uni-lj.si
# Miran.Koprivec@fri.uni-lj.si, Miha.Moskon@fri.uni-lj.si, ratko.pilipovic@fri.uni-lj.si
# Windows, Vivado 2022.1
dependencies:
- role: putty
- role: vivado
- role: cp2102_driver
- role: cocotb
- role: iverilog
- role: surfer-project

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,4 @@
- name: Install Cocotb
pip:
executable: pipx
name: cocotb[bus]

View file

@ -0,0 +1,2 @@
- name: Install cocoTB
win_command: pip install cocotb[bus]

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,4 @@
- name: Install Icarus
apt:
name: iverilog
state: latest

View file

@ -0,0 +1,6 @@
- name: Install Icarus Verilog
win_chocolatey:
name: iverilog
version: '11.0'
source: http://internal/odata/repo
state: present

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,17 @@
# https://surfer-project.org/
- name: create Surfer direcotry
file:
path: /opt/surfer
state: directory
- name: Download and unpack Surfer
unarchive:
src: https://gitlab.com/api/v4/projects/42073614/jobs/artifacts/main/raw/surfer_linux.zip?job=linux_build
dest: /opt/surfer
remote_src: yes
- name: Add symlink to /usr/local/bin
file:
src: /opt/surfer/surfer
path: /usr/local/bin/surfer
state: link

View file

@ -0,0 +1,11 @@
- name: Download Surfer
win_get_url:
dest: "{{ large_prog_dir }}"
url: https://gitlab.com/api/v4/projects/42073614/jobs/artifacts/main/raw/surfer_win.zip?job=windows_build
register: downloaded_surfer
- name: Unpack Surfer
win_unzip:
src: "{{ downloaded_surfer['dest']}}"
dest: "{{ large_prog_dir }}"
delete_archive: yes