3 ms·
It seems correct, but verbose. GPT-4 gives the more concise and idiomatic: module full_adder(input [3:0] a, input [3:0] b, input cin, output reg [3:0] sum, o
by tlb 4y ago
It seems correct, but verbose. GPT-4 gives the more concise and idiomatic:
module full_adder(input [3:0] a, input [3:0] b, input cin, output reg [3:0] sum, output reg cout);
always @(*) begin
{cout, sum} = a + b + cin;
end
endmodule
- moyix 4y agoWe found that Codex was pretty bad at Verilog and so we fine-tuned our own models on Verilog code, starting from the SalesForce CodeGen model. The paper will be at DATE: https://arxiv.org/abs/2212.11140 https://arxiv.org/abs/2212.11140 The largest model we trained is here: https://huggingface.co/shailja/fine-tuned-codegen-16B-Verilog https://huggingface.co/shailja/fine-tuned-codegen-16B-Verilo...