Skip to content

This project extracts architectural parameters from RISC-V ISA specification text using Large Language Models (LLMs). It identifies implementation-defined aspects using keyword patterns and structures results as YAML.

Notifications You must be signed in to change notification settings

TheCoder2010-create/LFX-AI-Assisted-Extraction-of-Architectural-Parameters-from-RIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Assisted Extraction of Architectural Parameters from RISC-V Specifications

Overview

This project extracts architectural parameters from RISC-V ISA specification text using Large Language Models (LLMs). It identifies implementation-defined aspects using keyword patterns and structures results as YAML.

Project Structure

.
├── README.md                    # This file
├── requirements.txt             # Python dependencies
├── input/                       # Input specification snippets
│   ├── snippet1_caches.txt
│   └── snippet2_csr.txt
├── prompts/                     # Prompt development and refinement
│   └── prompt_evolution.md
├── src/                         # Source code
│   └── extract_parameters.py
├── output/                      # Generated results
│   └── parameters.yaml
└── docs/                        # Documentation
    ├── llm_details.md
    └── methodology.md

Key Features

  • Identifies parameters using keywords: "may/might/should", "optional/optionally", "implementation defined/specific"
  • Extracts parameter name, description, type, and constraints
  • Outputs structured YAML format
  • Documents prompt engineering process and anti-hallucination strategies

Usage

# Install dependencies
pip install -r requirements.txt

# Run extraction
python src/extract_parameters.py

# View results
cat output/parameters.yaml

Challenge Requirements

✅ LLM details (name, version, context length)
✅ Prompt development and refinement process
✅ Anti-hallucination strategies
✅ YAML-formatted results with required fields

About

This project extracts architectural parameters from RISC-V ISA specification text using Large Language Models (LLMs). It identifies implementation-defined aspects using keyword patterns and structures results as YAML.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages