Atelier des rouesLab FR
Objects/Documentation

banc_neurones.v

I fix the register banks around the four neurons.

Download ↓
module bench(input clk, input [7:0] a, output [3:0] y);
    wire [7:0] held;
    wire [3:0] answer;
    genvar i;
    generate for (i=0;i<8;i=i+1) begin: launch
        SB_DFF reg_in(.C(clk),.D(a[i]),.Q(held[i]));
    end endgenerate
    layer core(.x(held),.y(answer));
    generate for (i=0;i<4;i=i+1) begin: capture
        SB_DFF reg_out(.C(clk),.D(answer[i]),.Q(y[i]));
    end endgenerate
endmodule

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.