Read in KR

Use Standard Packages

When writing VHDL, non-standard packages are sometimes used, but SCode exclusively uses IEEE standard packages.

Specifically, SCode avoids non-standard packages like std_logic_arith, std_logic_signed, and std_logic_unsigned. Instead, it uses the standard std_logic_1164 and numeric_std packages.

use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

By adhering only to standard packages, SCode ensures that the generated VHDL files are compatible with all standard-compliant synthesis and simulation tools.

← All posts