Fix requirements by Ratko Pilipović
This commit is contained in:
parent
79293545d3
commit
c15d6f1edf
11 changed files with 64 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
4
roles/cocotb/tasks/main.yml
Normal file
4
roles/cocotb/tasks/main.yml
Normal 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'
|
4
roles/cocotb/tasks/main_lin.yml
Normal file
4
roles/cocotb/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: Install Cocotb
|
||||
pip:
|
||||
executable: pipx
|
||||
name: cocotb[bus]
|
2
roles/cocotb/tasks/main_win.yml
Normal file
2
roles/cocotb/tasks/main_win.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- name: Install cocoTB
|
||||
win_command: pip install cocotb[bus]
|
4
roles/iverilog/tasks/main.yml
Normal file
4
roles/iverilog/tasks/main.yml
Normal 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'
|
4
roles/iverilog/tasks/main_lin.yml
Normal file
4
roles/iverilog/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: Install Icarus
|
||||
apt:
|
||||
name: iverilog
|
||||
state: latest
|
6
roles/iverilog/tasks/main_win.yml
Normal file
6
roles/iverilog/tasks/main_win.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- name: Install Icarus Verilog
|
||||
win_chocolatey:
|
||||
name: iverilog
|
||||
version: '11.0'
|
||||
source: http://internal/odata/repo
|
||||
state: present
|
4
roles/surfer-project/tasks/main.yml
Normal file
4
roles/surfer-project/tasks/main.yml
Normal 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'
|
17
roles/surfer-project/tasks/main_lin.yml
Normal file
17
roles/surfer-project/tasks/main_lin.yml
Normal 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
|
11
roles/surfer-project/tasks/main_win.yml
Normal file
11
roles/surfer-project/tasks/main_win.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue