omar-malek
Member level 5
hi to all
can any one give me the equivalent in VHDL of this verilog
assign signal1 = (signal2<= signal3);
can any one give me the equivalent in VHDL of this verilog
assign signal1 = (signal2<= signal3);
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
really, signal2 and signal3 should be cast to unsigned. Verilog treats "0100" > "011" while VHDL treats "0100" < "011" for std_logic_vector.
if x'length < y'length then
z := false;
end if;
for idx in y'range loop -- please assume indexes have been normalized to the standard 0 to N-1
if x(idx) /= y(idx) then
if x(idx) < y(idx) then
return true;
else
return false;
end if;
end if;
end loop
return z;