60 lines
2.2 KiB
JSON
60 lines
2.2 KiB
JSON
{
|
|
"gpt-3.5-turbo": {
|
|
"Combinational Logic": [
|
|
{
|
|
"module": "parity_8bit",
|
|
"solutions": [
|
|
{
|
|
"solution": "module parity_8bit (input [7:0] in, output out); assign out = in[0] ^ in[1] ^ in[2] ^ in[3] ^ in[4] ^ in[5] ^ in[6] ^ in[7]; endmodule",
|
|
"pass": "true",
|
|
"resource usage": {
|
|
"optimized": {
|
|
"LUT": 2,
|
|
"FF": 0,
|
|
"DSP": 0,
|
|
"BRAM": 0,
|
|
"IO": 9
|
|
},
|
|
"primitives": {
|
|
"LUT": 2,
|
|
"FF": 0,
|
|
"DSP": 0,
|
|
"BRAM": 0,
|
|
"IO": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"solution": "module parity_8bit (input [7:0] in, output out); reg parity; integer i; always @(*) begin parity = 1'b0; for(i=0; i<8; i=i+1) begin if(in[i] == 1'b1) parity = ~parity; end end assign out = parity; endmodule",
|
|
"pass": "true",
|
|
"resource usage": {
|
|
"optimized": {
|
|
"LUT": 2,
|
|
"FF": 0,
|
|
"DSP": 0,
|
|
"BRAM": 0,
|
|
"IO": 9
|
|
},
|
|
"primitives": {
|
|
"LUT": 2,
|
|
"FF": 0,
|
|
"DSP": 0,
|
|
"BRAM": 0,
|
|
"IO": 9
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Finite State Machines": [
|
|
{
|
|
"module": "fsm_3state",
|
|
"solutions": []
|
|
}
|
|
]
|
|
},
|
|
"gpt-4o":{
|
|
|
|
}
|
|
} |