URL
https://opencores.org/ocsvn/artificial_neural_network/artificial_neural_network/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 10 |
Line 74... |
Line 74... |
Sigmoid2_f:
|
Sigmoid2_f:
|
if (f_type = "siglu2") generate
|
if (f_type = "siglu2") generate
|
siglut_inst: entity work.af_sigmoid2
|
siglut_inst: entity work.af_sigmoid2
|
generic map
|
generic map
|
(
|
(
|
|
Nbit => Nbit
|
|
)
|
|
port map
|
|
(
|
|
reset => reset,
|
|
clk => clk,
|
|
run_in => run_in,
|
|
inputs => inputs,
|
|
run_out => run_out,
|
|
outputs => outputs
|
|
);
|
|
end generate;
|
|
|
|
-- Example 3: sigmoid activation function implemented as a LUT, with a second different set of parameters:
|
|
sigmoid_mat:
|
|
if (f_type = "sigmat") generate
|
|
siglut_inst: entity work.af_sigmoid_mat
|
|
generic map
|
|
(
|
Nbit => Nbit,
|
Nbit => Nbit,
|
lsbit => lsbit
|
lsbit => lsbit
|
)
|
)
|
port map
|
port map
|
(
|
(
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.