• Skip to primary navigation
  • Skip to main content
  • About Us
  • Group Members
  • Research
  • Publications
  • Artifacts
  • Courses
  • News

Secure and Trustworthy Hardware (SETH) Lab

Texas A&M University College of Engineering

Assignments

Course

Syllabus

Calendar

Lectures

Assignments

Multi-agent workflow for processor hardware design

Assignment 1: Prompt Engineering for Hardware Design

Students build an RTL and testbench generation agent that translates a natural-language hardware specification for a simple RISC-V processor into synthesizable Verilog (RTL) modules and matching testbenches. Students first leverage prompt-engineering techniques to steer a large language model toward correct hardware descriptions. Students then apply these techniques to a state-of-the-art agent harness (e.g., Claude Code/Codex) as an agent “skill,” introducing students to the agent development process. Students are tasked with demonstrating and analyzing the results of the LLM using varying prompt strategies for the defined hardware specifications, along with demonstrating their initial agent structure.

Assignment 2: Retrieval-Augmented Generation (RAG) & Iterative Tool Feedback

Students extend their agent structure by defining a debugging agent that automatically fixes the RTL from Assignment 1 through iterative feedback from EDA simulation tools. The agent compiles and runs the design with Icarus Verilog, analyzes the resulting compile errors or testbench mismatches, and leverages that information to produce a corrected RTL version, iterating until the design passes. To provide additional context for RTL debugging, students leverage Retrieval-Augmented Generation (RAG), enabling the agent to retrieve domain knowledge from an external dataset of hardware documents and specifications. In this assignment the individual RTL modules are also integrated into a single-cycle RISC-V processor, giving the debugging agent a processor-level design to stabilize. Students are tasked with analyzing the agent’s ability to leverage feedback from EDA tools and context from RAG for a provided hardware design specification, along with demonstrating their updated agent structure.

Assignment 3: Functional Verification and Coverage-Driven Validation

Students extend their agent structure by defining a verification agent that proves the processor behaves correctly and measures how thoroughly it is tested. Building on the integrated design, students first convert the single-cycle processor into a five-stage pipelined RISC-V core, introducing hazard, forwarding, and stall behavior. The verification agent then generates its own directed and constrained-random tests and assertions, runs them against the design, and measures functional and hazard-scenario coverage to identify and close testing gaps. Unlike the debugging agent, which fixes known failures, the verification agent’s objective is to surface unknown bugs and quantify test quality (for example, via coverage and mutation-style bug-detection metrics). Students are tasked with analyzing the agent’s ability to generate high-coverage tests and detect injected bugs on the pipelined processor, along with demonstrating their updated agent structure.

Assignment 4: Physical Design and PPA-Driven Optimization

Students extend the agent design capabilities beyond digital design by building a physical design agent. The agent runs the previously generated, debugged, and verified RTL through logic synthesis and physical design using industry tools (Synopsys, Cadence), reads the resulting performance reports and tool warnings/errors, and uses an iterative feedback loop to refine constraints and tool parameters for synthesizability and physical quality. As in earlier assignments, RAG supplies grounded guidance, coding guidelines, library information, and tool-message explanations, so the agent can reason about how to improve area, timing, and power while preserving functional correctness. Students are tasked with analyzing the agent’s capabilities in interfacing with EDA tools and improving PPA metrics for a defined hardware specification, and demonstrating the updated agent structure.

Assignment 5: Fine-Tuning LLMs via SFT & RL

Students leverage their agent to assist in fine-tuning a small LLM for Verilog generation. Students are provided a dataset of design specification prompts. These prompts are provided to their agent such that the agent’s responses (generated RTL, reasoning, tool calls) are retrieved, resulting in a curated dataset for LLM fine-tuning. Students then fine-tune a small language model with this dataset using techniques including supervised fine-tuning and reinforcement learning, along with efficiency strategies such as LoRA adapters and quantization. Students then evaluate the fine-tuned model on a defined set of RTL generation tasks to benchmark the improvements over the baseline model.

Assignment 6: Multi-Agent Orchestration

Students combine the previously defined agents together into an end-to-end framework. Students first develop an orchestration agent (via Claude/Codex harnesses) that defines how to invoke and retrieve responses from their prior hardware design sub-agents, datasets, and EDA tools through agent skills. Then, the orchestrator defines how these tools/agents can be leveraged to complete an end-to-end hardware design workflow. Students are tasked to evaluate the agent’s capability in designing a RISC-V processor, translating a specification into functional RTL code. Students report the agent capabilities by demonstrating the agent invoking sub-agents and tools when required, and defining the limitations in the final processor design for future improvements.

Assignment 7: Final Multi-Agent Workflow Optimization

Students refine and finalize their end-to-end multi-agent system to improve the quality of the generated processor and the efficiency of the agent. They can tune prompts, improve the agent’s tool usage, or adjust orchestration logic to implement targeted improvements that address the limitations found in Assignment 6. The student’s objective is to demonstrate an agentic specification-to-design workflow that reliably produces a working RISC-V processor. Students then provide a final report that details the agent’s structure, demonstrates its hardware design capabilities, and assesses the limitations of the agent in processor design tasks.

© 2016–2026 Secure and Trustworthy Hardware (SETH) Lab Log in

Texas A&M Engineering Experiment Station Logo
  • TAMU ECE
  • State of Texas
  • Open Records
  • Risk, Fraud & Misconduct Hotline
  • Statewide Search
  • Site Links & Policies
  • Accommodations
  • Environmental Health, Safety & Security
  • Employment