RISC-V Hazard Unit
Real RTLPipeline hazard detection and stall control from a real 5-stage RISC-V core.
riscv-rv32im-core
AI-assisted RTL review for engineers working with Verilog, SystemVerilog, FPGA, and RISC-V designs.
Founder-led testing. AI analysis availability depends on this environment; real RTL examples are available to explore.
| 1 | module hazard_unit ( |
| 2 | input logic [4:0] rs1_ex, rs2_ex, |
| 3 | input logic [4:0] rd_mem, rd_wb, |
| 4 | input logic reg_write_mem, reg_write_wb, |
| 5 | input logic mem_to_reg_ex, // Load in EX |
| 6 | output logic [1:0] forward_a_ex, forward_b_ex, |
| 7 | output logic stall_if_id |
| 8 | ); |
| 9 | // Forwarding logic to EX stage |
| 10 | always_comb begin |
| 11 | forward_a_ex = 2'b00; forward_b_ex = 2'b00; |
| 12 | if (reg_write_mem && (rd_mem != 0) && (rd_mem == rs1_ex)) |
| 13 | forward_a_ex = 2'b10; // EX hazard |
| 14 | // Load-Use Hazard: FIXME unhandled stall! |
| 15 | assign stall_if_id = 1'b0; // Bug: Always 0 |
| 16 | endmodule |
The constant stall output needs review in pipeline context. Load destination, dependent decode operands, validity and memory latency are needed to assess load-use handling.
Hardware engineers can spend substantial time debugging simulation traces and building repetitive verification infrastructure.
A useful review depends on cycle behavior, signal widths, state ownership, and integration assumptions that may span multiple modules.
Tracing load-use hazards, forwarding paths, and reset behavior often requires repeated review of source code and simulation results.
Hand-crafting UVM-style stimulus generators, clock drivers, and SVA assertions for every sub-module slows down turn-around times for FPGA and ASIC prototypes.
SiliconCraft starts with AI-assisted RTL review. Other workflow capabilities are previews or roadmap items.
Extract signals & ISA rules
SystemVerilog & Verilog
Verilator & Icarus logs
Testbenches & Assertions
Vivado synthesis & timing
Analyze Verilog and SystemVerilog for logic bugs, synthesis concerns, reset behavior, timing risks, and coding standard violations.
Explore a sample testbench workflow. Live testbench generation and simulator execution are not available.
Explore a sample log-review workflow. Live simulator-log analysis and EDA tool execution are not available.
Reason about 5-stage CPU pipelines, load-use data hazards, forwarding multiplexers, branch target buffers, and hazard control units.
Extract register maps, signal definitions, and protocol rules from hardware datasheets and technical specifications.
Interpret critical paths, LUT/FF utilization reports, clock domain crossings (CDC), and setup/hold time violations.
SiliconCraft AI is developed and evaluated using real RTL modules from RISC-V processors, FPGA subsystems, CDC logic, and verification environments.
Hazard detection, CSR dependencies and ALU execution from the founder's RV32IM core.
riscv-rv32im-core ↗Independent read/write clocks, Gray-coded pointer crossings and per-domain reset synchronization.
Asynchronous-FIFO ↗Assertion and testbench sources provide context for FIFO behavior and verification questions. The website does not execute them.
async_fifo_sva.sv ↗Explore local snapshots from the founder’s hardware projects. AI analysis requires sign-in and a configured backend.
Founder-led testing. AI analysis availability depends on this environment; real RTL examples are available to explore.
Sign-in required. LLM review only; no EDA tools run. Source is sent to Anthropic. Accepted attempts count toward usage.
Load a local source snapshot, then run analysis when ready.
Pipeline hazard detection and stall control from a real 5-stage RISC-V core.
riscv-rv32im-core
Clock-domain crossing FIFO using Gray-coded pointers and synchronizers.
Asynchronous-FIFO
Combinational execution logic from a real RV32IM processor.
riscv-rv32im-core
Click "Analyze RTL Logic" for an AI review of logic, reset behavior, width handling and timing risks. No EDA tools run.
Current focus: Verilog and SystemVerilog review. EDA integrations are roadmap targets; no tool execution or compatibility certification is provided.
While developing RISC-V CPU and FPGA projects, I repeatedly traced pipeline hazards, forwarding paths, reset behavior, and RTL bugs across source code and simulation results. SiliconCraft AI grew from the need for careful, hardware-specific RTL and microarchitecture review.
General-purpose AI tools could explain pieces of code, but often lacked the hardware-specific context I needed for RTL review. Repeated debugging loops around pipeline control, load-use hazards, resets, widths, and verification assumptions led me to build a workspace focused on digital hardware reasoning.