Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNeed advice about coding style
Hello I'm Alex and I am novice for VHDL coding. if my english awful pls forgive me. I trying to understand VHDL PROCESS statement. I try with 1bit full adder with carry save function in Quartus2 v...
Altera_Forum
Honored Contributor
11 years agoHi. Could anyone clarify me why i get multiplexor instead of register?
function regCreate(
signal clk : std_logic; aclr : std_logic; data : unsigned) return unsigned is
variable temp : unsigned(data'range);
begin
if aclr = '1' then
temp := to_unsigned(0, data'length);
elsif rising_edge(clk) then
temp := data;
end if;
return temp;
end regCreate;