This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Info (204026): Generated files "g07_lab5.vho", "g07_lab5_fast.vho", "g07_lab5_vhd.sdo" and "g07_lab5_vhd_fast.sdo" in directory "/home/harwiltz/DSDLabs/Lab5/simulation/modelsim/" for EDA simulation tool
Info: Quartus II 32-bit EDA Netlist Writer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 338 megabytes
Info: Processing ended: Wed Apr 5 20:00:55 2017
Info: Peak virtual memory: 343 megabytes
Info: Processing ended: Wed Apr 5 23:58:04 2017
Info: Elapsed time: 00:00:02
Info: Total CPU time (on all processors): 00:00:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request_deal <='1'when (state = E or state = DEAL_NEXT or state = DEAL_PILE or state = PILE) else'0';
game_start <='1'when state = B or state = GET_CARD or state = DEAL_NEXT else'0';
cpu_en <='1'when state = GET_CARD and count(0) ='1'else'0';
hum_en <='1'when (state = GET_CARD and count(0) ='0' ) or (state = D and valid ='1') or state = HUM_RECV_CARD else'0';
cnt_en <='1'when state = GET_CARD or state <= PILE else'0';
deck_mode <="10"when state = A else"11";
-- deck_mode <= "10" when state = A else "11" when (state = B or state = DEAL_NEXT or state = GET_CARD or state = PILE or state = PILE_RECV_CARD or state = E or state = F) else "00";
-- cpu_en <= '1' when state = GET_CARD and count(0) = '1' else '0';
-- hum_en <= '1' when (state = GET_CARD and count(0) = '0' ) or (state = D and valid = '1') or state = HUM_RECV_CARD else '0';
cpu_en <='1'when state = GET_CARD and (kronus mod2=1) else'0';
hum_en <='1'when (state = GET_CARD and (kronus mod2=0)) or (state = D and valid ='1') or state = HUM_RECV_CARD else'0';
cnt_en <='1'when state = GET_CARD else'0';
-- cnt_en <= '1' when state = GET_CARD or state <= PILE else '0';
deck_mode <="10"when state = A else"00"when state = WAIT_FOR_NEW_DECK or state = DEAL_NEXT else"11";
init_deck <='1'when state = PILE else'0';
gg_led <='0'when state = G else'1';
w_led <='0'when state = G and hum_num ="000000"else'1';
l_led <='0'when state = G and cpu_num ="000000"else'1';
--d_led <= '0' when state = PILE else '1';
d_led <='0'when state = G and deck_num ="000000"else'1';
--deck_en <= '0' when (state = A or state = B or state = PILE) else '0';
deck_en <='1'when state = A or state = PILE_RECV_CARD else'0';
deck_en <='1'when state = A else'0';
-- deck_en <= '1' when state = A or state = PILE_RECV_CARD else '0';
hum_mode <="01"when state = B or state = GET_CARD or state = E or state = HUM_RECV_CARD else"11";