F
fl
Hi,
I get the following VHDL code from Matlab HDL coder, in which enb_1_1_1 always is '1' from its input. I find the process to write dbfout1_re_tmp value while out of the process the reverse is written to dbfout1_re.
What do you think of this writing style? Is it an acceptable even for a hand writing code? Is there any other better writing style?
Thanks,
.......................
temp_process26_Delay_butterfly1 : PROCESS (clk, reset)
BEGIN
IF reset = '1' THEN
dbfout1_re_tmp <= (OTHERS => '0');
dbfout1_im_tmp <= (OTHERS => '0');
ELSIF clk'event AND clk = '1' THEN
IF enb_1_1_1 = '1' THEN
dbfout1_re_tmp <= bfout1_re;
dbfout1_im_tmp <= bfout1_im;
END IF;
END IF;
END PROCESS temp_process26_Delay_butterfly1;
dbfout1_re <= std_logic_vector(dbfout1_re_tmp);
dbfout1_im <= std_logic_vector(dbfout1_im_tmp);
I get the following VHDL code from Matlab HDL coder, in which enb_1_1_1 always is '1' from its input. I find the process to write dbfout1_re_tmp value while out of the process the reverse is written to dbfout1_re.
What do you think of this writing style? Is it an acceptable even for a hand writing code? Is there any other better writing style?
Thanks,
.......................
temp_process26_Delay_butterfly1 : PROCESS (clk, reset)
BEGIN
IF reset = '1' THEN
dbfout1_re_tmp <= (OTHERS => '0');
dbfout1_im_tmp <= (OTHERS => '0');
ELSIF clk'event AND clk = '1' THEN
IF enb_1_1_1 = '1' THEN
dbfout1_re_tmp <= bfout1_re;
dbfout1_im_tmp <= bfout1_im;
END IF;
END IF;
END PROCESS temp_process26_Delay_butterfly1;
dbfout1_re <= std_logic_vector(dbfout1_re_tmp);
dbfout1_im <= std_logic_vector(dbfout1_im_tmp);