Question: I am writing VHDL and getting these errors Error (10500): VHDL syntax error at win.vhd(40) near text when; expecting ; Error (10500): VHDL syntax error

I am writing VHDL and getting these errors

Error (10500): VHDL syntax error at win.vhd(40) near text "when"; expecting ";" Error (10500): VHDL syntax error at win.vhd(50) near text "when"; expecting ";" Error (10500): VHDL syntax error at win.vhd(51) near text "when"; expecting ";" Error (10500): VHDL syntax error at win.vhd(53) near text "when"; expecting ";"

This is my code where getting theses errors

40--- spin_result_color <= '1' when spin_result_latched in 1 | 3 | 5 | 7 | 9 | 12 | 14 | 16 | 18 | 19 | 21 | 23| 25 | 27 | 30 | 32 | 34 | 36 else '0';

50--- bet1_wins <= '1' when spin_result_latched = bet1_value else '0'; 51--- bet2_wins <= '1' when ((spin_result_color = '1' and bet2_colour = '1') or (spin_result_color = '0' and bet2_colour = '0')) else '0'; 53--- bet3_wins <= '1' when spin_result_dozen = bet3_dozen else '0';

what could I do here?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!