Spaces:
Sleeping
Sleeping
Delete planning.md
Browse files123456789101112131415161718192021222324252627282930313233343536## Environment:
The tasks involve debugging errors in verilog code.
First compile the task using iverilog
If compiled successfully then run make to run the cocotb testbench. Parse the output of the result.json produced to get the below 4 factors of reward rubric.
Check tasks/task2 for correct reference
## Reward rubric:
Compile Status: Did iverilog crash? (Binary: 0 or 1).
Pass Percentage: num_passed / num_tests from your JSON.
Simulation Time: How long did it run before an assertion hit?
Levenstein Distance (penalty): How many lines of code did the agent change?
We need a meaningful reward with partial progress signals
Later also look at giving partial progress based on waveform/timing correctness. We can consider: per-cycle correctness, transition correctness, stability award etc.
## The Grader (The "Judge")
The Grader is a binary or tiered evaluator that only cares about the Destination. It should be based on a passing the testbench. It's score varies between 0 and 1.
Metric 1: Functional Pass Rate. $\frac{Tests_{passed}}{Tests_{total}}$.
Metric 2: Structural Integrity. A Boolean check: Did the agent keep the same module name and ports? (Using a regex or a simple AST check).
Metric 3: Lint Cleanliness. Does it pass verilator --lint-only without warnings?The Grader's Formula:$$Score_{final} = (PassRate \times 100) - (LintWarnings \times 2)$$(If the code doesn't compile, the score is 0, period.)
(Metric 3 tbd later since i need to setup verilator first)
The grader should run instantly after the agent gives its final output.
# Inference.py
Simply calls an LLM used as a baseline to test the env.
to do:
more difficult tasks -> sequential, waveform analysis based, dut and tb both can be wrong so more probing required etc.
improve the partial progress reward signals
complete the grader
make it submission ready
planning.mdDeleted-36