matlab function block for HDL generate
1 view (last 30 days)
Hi, i'm trying to use HDL coder tool.
I used Matlab function block and make a simple as belowed:
function y = fcn(en,in,clk)
y = int16(zeros(0));
if clk ==1
if en ==1
and when i generate to RTL code (verilog), the always loop is used en and clk singnal for the trigger
always @(clk && en) begin
I expected as belowed
alsways @(posedge clk) begin
if (en) begin
If any have experience please help me.
Thank you and best regards.