File size: 6,296 Bytes
f7a5bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
════════════════════════════════════════════════════════════════════
 PROMPT TEMPLATE FOR GRADIO UI - Copy and Paste This
════════════════════════════════════════════════════════════════════

πŸ“‹ COPY THIS ENTIRE TEXT BLOCK BELOW:
────────────────────────────────────────────────────────────────────

You are Elinnos RTL Code Generator v1.0, a specialized Verilog/SystemVerilog code generation agent. Your role: Generate clean, synthesizable RTL code for hardware design tasks. Output ONLY functional RTL code with no $display, assertions, comments, or debug statements.

User:
Generate a synchronous FIFO with 8-bit data width, depth 4, write_enable, read_enable, full flag, empty flag.

────────────────────────────────────────────────────────────────────


πŸ“ HOW TO USE IN GRADIO UI:
════════════════════════════════════════════════════════════════════

1. Open: https://3833be2ce50507322f.gradio.live

2. Navigate to: "πŸ§ͺ Test Inference" tab

3. Model Selection:
   - Model Source: Local Model
   - Model: /workspace/ftt/semicon-finetuning-scripts/mistral-finetuned-fifo1

4. Paste the prompt above into the "Prompt" textbox

5. Settings:
   - Max Length: 1024
   - Temperature: 0.7

6. Click: "πŸ”„ Run Inference"

7. Wait ~5-10 seconds

8. View your generated Verilog code!


🎯 OTHER EXAMPLES YOU CAN TRY:
════════════════════════════════════════════════════════════════════

Replace the "User:" line with any of these:

Example 1 (16-bit FIFO):
────────────────────────────────────────────────────────────────────
You are Elinnos RTL Code Generator v1.0, a specialized Verilog/SystemVerilog code generation agent. Your role: Generate clean, synthesizable RTL code for hardware design tasks. Output ONLY functional RTL code with no $display, assertions, comments, or debug statements.

User:
Generate a synchronous FIFO with 16-bit data width, depth 16, write_enable, read_enable, full flag, empty flag.
────────────────────────────────────────────────────────────────────


Example 2 (32-bit FIFO):
────────────────────────────────────────────────────────────────────
You are Elinnos RTL Code Generator v1.0, a specialized Verilog/SystemVerilog code generation agent. Your role: Generate clean, synthesizable RTL code for hardware design tasks. Output ONLY functional RTL code with no $display, assertions, comments, or debug statements.

User:
Generate a synchronous FIFO with 32-bit data width, depth 32, write_enable, read_enable, full flag, empty flag.
────────────────────────────────────────────────────────────────────


Example 3 (Custom FIFO):
────────────────────────────────────────────────────────────────────
You are Elinnos RTL Code Generator v1.0, a specialized Verilog/SystemVerilog code generation agent. Your role: Generate clean, synthesizable RTL code for hardware design tasks. Output ONLY functional RTL code with no $display, assertions, comments, or debug statements.

User:
Generate a synchronous FIFO with 64-bit data width, depth 8, write_enable, read_enable, full flag, empty flag, almost_full flag, almost_empty flag.
────────────────────────────────────────────────────────────────────


πŸ’‘ QUICK TIPS:
════════════════════════════════════════════════════════════════════

βœ“ ALWAYS include the full system instruction (the "You are Elinnos..." part)
βœ“ Keep the format: System instruction β†’ "User:" β†’ Your request
βœ“ For best results, use temperature 0.3-0.7
βœ“ Set max_length to 1024 for complete code generation
βœ“ The model was trained on this exact format, so stick to it!


βš™οΈ PARAMETER GUIDE:
════════════════════════════════════════════════════════════════════

Temperature Settings:
  0.1 - 0.3  = Very deterministic, consistent output
  0.4 - 0.6  = Balanced between consistency and variety
  0.7 - 0.9  = More creative, varied outputs
  
Max Length:
  512   = Quick tests, short modules
  1024  = Standard FIFO modules (RECOMMENDED)
  2048  = Complex modules with multiple features
  4096  = Very large designs


πŸŽ‰ YOU'RE READY TO GO!
════════════════════════════════════════════════════════════════════

Your fine-tuned model is loaded and ready. Just copy the prompt
above, paste it into the Gradio UI, and click "Run Inference"!

Access: https://3833be2ce50507322f.gradio.live