H
humann
Guest
The concept of "code reuse" in software is function.
Every software guy knows that calling a function in C is
1. push parameters in stack
2. point pc counter to the begin address of the function
what happens in Verilog if I call a function, both in simulation or in
a chip?
1. Is function/task in Verilog synthesizable? or It works just in
simulation.
2. If I call a function several times, what does it means?
2.1 I use a hardware several time
2.2 I duplicate hardware in Chip.
3. How can I use a hardware in a "time-sharing" fashion? (for
Example: to save power or save area)
Every software guy knows that calling a function in C is
1. push parameters in stack
2. point pc counter to the begin address of the function
what happens in Verilog if I call a function, both in simulation or in
a chip?
1. Is function/task in Verilog synthesizable? or It works just in
simulation.
2. If I call a function several times, what does it means?
2.1 I use a hardware several time
2.2 I duplicate hardware in Chip.
3. How can I use a hardware in a "time-sharing" fashion? (for
Example: to save power or save area)