• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

a basic vhdl question

i have an simple assignment in vhdl that says the following:
"write a vhdl program for an XOR gate w/2 inputs and 1 output using one simple signal assignment statement"

i am not sure how to interpret the condition "one simple signal assignment statement".
would this do it?


.
.
.
ENTITY xor IS

PORT (w0, w1 :IN STD_LOGIC;
f 😱UT STD_LOGIC);

END xor;

ARCHITECTURE Behavior OF xor IS
BEGIN
PROCESS (w0, w1)
BEGIN

IF w0 = '0' THEN
f<=w1;
ELSE
f<=w1';
END IF;
END PROCESS;
END Behavior;


Any help would be appreciated
 
Back
Top