Altera_Forum
Honored Contributor
12 years agoAssigning ( Attributing ) Pins to Variable
Below is a sample code, how can I assign each of the variables to a Pin ( Switch/LED )in the FPGA.
The Altera online help wasn't very clear. What changes will need to be made to the Code? Will assign the pins to variables in the 'Assignment Editor' post this. ----- entity OR_ent is port( x: in std_logic ; y: in std_logic ; F: out std_logic ); end OR_ent; architecture OR_arch of OR_ent is begin process(x, y) begin -- compare to truth table if ((x='0') and (y='0')) then F <= '0'; else F <= '1'; end if; end process; end OR_arch;