Skip to content

Commit

Permalink
spiking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mountains-high authored and mountains-high committed Nov 2, 2023
1 parent 4142c8b commit 5bad89f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tt_um_if.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ module tt_um_if (
// use bidirectionals as outputs
assign uio_oe = 8'b11111111;
assign uio_out[6:0] = 6'd0;
assign threshold = 8'hE6; // Example threshold value


// instantiate lif neuron
if_neuron if_neuron1(.current(ui_in), .clk(clk), .rst_n(rst_n), .spike(uio_out[7]), .state(uo_out));
if_neuron if_neuron1(.current(ui_in), .clk(clk), .rst_n(rst_n), .spike(uio_out[7]), .state(uo_out), .threshold(threshold));

endmodule

0 comments on commit 5bad89f

Please sign in to comment.