-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask_catalog.py
More file actions
72 lines (62 loc) · 1.77 KB
/
Copy pathtask_catalog.py
File metadata and controls
72 lines (62 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parent
TASK_ROOT = ROOT_DIR / "tasks"
@dataclass(frozen=True)
class TaskSpec:
task_id: str
slug: str
prompt: str
track: str
variant: str
language: str
module: str
toolchain: str
workdir: str
append_setup_output: bool = False
STREAM_ARB_FIFO_REPAIR = TaskSpec(
task_id="stream_arb_fifo_repair",
slug="stream-arb-fifo-repair",
prompt=(TASK_ROOT / "stream_arb_fifo_repair" / "prompt.md").read_text(
encoding="utf-8"
),
track="design",
variant="repair_debug",
language="systemverilog",
module="stream_arb_fifo",
toolchain="verilator+yosys",
workdir="/workdir/stream_arb_fifo_repair",
)
STREAM_ARB_FIFO_COCOTB_DV = TaskSpec(
task_id="stream_arb_fifo_cocotb_dv",
slug="stream-arb-fifo-cocotb-dv",
prompt=(TASK_ROOT / "stream_arb_fifo_cocotb_dv" / "prompt.md").read_text(
encoding="utf-8"
),
track="verification",
variant="repair_debug",
language="python+cocotb",
module="stream_arb_fifo",
toolchain="cocotb+verilator",
workdir="/workdir/stream_arb_fifo_cocotb_dv",
)
STREAM_ARB_FIFO_FORMAL = TaskSpec(
task_id="stream_arb_fifo_formal",
slug="stream-arb-fifo-formal",
prompt=(TASK_ROOT / "stream_arb_fifo_formal" / "prompt.md").read_text(
encoding="utf-8"
),
track="formal",
variant="repair_debug",
language="systemverilog-formal",
module="stream_arb_fifo",
toolchain="symbiyosys+yosys",
workdir="/workdir/stream_arb_fifo_formal",
)
TASK_SPECS = [
STREAM_ARB_FIFO_REPAIR,
STREAM_ARB_FIFO_COCOTB_DV,
STREAM_ARB_FIFO_FORMAL,
]
TASK_SPECS_BY_ID = {spec.task_id: spec for spec in TASK_SPECS}