Kitchen Controller Lsim Simulation Script File |
# Designers: Ky Nguyen and Irene Sierra # Lsim script file for kitchen controller # Note SecMSB(0) is to be split to created SecMSB(3) # Note MinMSB(0) is to be split to created MinMSB(3) order Clk60Hz Reset StartStop Sec Min bus SECLSB x SecLSB(6) SecLSB(5) SecLSB(4) SecLSB(3) SecLSB(2) SecLSB(1) SecLSB(0); bus SECMSB x SecMSB(6) SecMSB(5) SecMSB(4) SecMSB(0) SecMSB(2) SecMSB(1) SecMSB(0); bus MINLSB x MinLSB(6) MinLSB(5) MinLSB(4) MinLSB(3) MinLSB(2) MinLSB(1) MinLSB(0); bus MINMSB x MinMSB(6) MinMSB(5) MinMSB(4) MinMSB(0) MinMSB(2) MinMSB(1) MinMSB(0); purge dCareCout; purge dCareQ(5) dCareQ(4) dCareQ(3) dCareQ(2) dCareQ(1) dCareQ(0); purge SecLSB(6) SecLSB(5) SecLSB(4) SecLSB(3) SecLSB(2) SecLSB(1) SecLSB(0); purge SecMSB(6) SecMSB(5) SecMSB(4) SecMSB(2) SecMSB(1) SecMSB(0); purge MinLSB(6) MinLSB(5) MinLSB(4) MinLSB(3) MinLSB(2) MinLSB(1) MinLSB(0); purge MinMSB(6) MinMSB(5) MinMSB(4) MinMSB(2) MinMSB(1) MinMSB(0); purge Data(5) Data(4) Data(3) Data(2) Data(1) Data(0); lpulse Clk60Hz L H 20 1 1 25 50; #case 1 h Reset; l StartStop; l Sec; l Min; simulate 300; l Reset; mark; #case 2 h Sec; simulate 1200; mark; #case 3 simulate 200; h Min; simulate 700; l Min; mark; #case 4 h Reset; simulate 100; l Reset; simulate 200; h Min; simulate 50; l Sec; simulate 50; l Min; simulate 200; h StartStop; simulate 200000; |