//: version "1.8.5" module main; //: root_module wire [7:0] w6; //: /sn:0 {0}(653,63)(653,128)(414,128){1} wire w4; //: /sn:0 {0}(715,256)(735,256)(735,145)(414,145){1} wire w0; //: /sn:0 /dp:1 {0}(400,265)(400,275)(415,275)(415,263)(448,263)(448,161)(414,161){1} wire [7:0] w1; //: /sn:0 /dp:1 {0}(487,23)(487,33){1} //: {2}(485,35)(464,35)(464,17){3} //: {4}(487,37)(487,120)(414,120){5} wire w2; //: /sn:0 {0}(699,304)(699,318)(772,318)(772,137)(414,137){1} wire w5; //: /sn:0 {0}(514,255)(606,255)(606,153)(414,153){1} //: enddecls //: joint g8 (w1) @(487, 35) /w:[ -1 1 2 4 ] //: comment g1 /dolink:0 /link:"" @(41,-227) /sn:0 //: /line:"1, In order to print :" //: /line:" a. put in RD the ASCII code you wish to print. " //: /line:" b. set the red to 1 and then to 0. " //: /line:"" //: /line:"2. In order to Read a character from the terminal" //: /line:" start with the print = 1. " //: /line:" a. set the print to 0" //: /line:" if ReadReady = 1 you have red a character that was typed recently. " //: /line:" if ReadReady = 0 ignore the input. " //: /line:" c. set print to 1. " //: /line:" " //: /line:"OR" //: /line:" start with print = 0" //: /line:" a. set print to 1" //: /line:" if ReadReady = 1 read a character. " //: /line:" if ReadReady = 0 ignore the input" //: /line:" b. set print to 0. " //: /line:"" //: /line:"" //: /end //: switch red (w5) @(497,255) /w:[ 0 ] /st:0 //: switch print (w4) @(698,256) /w:[ 0 ] /st:0 led ReadReady (.I(w2)); //: @(699,297) /w:[ 0 ] /type:0 led printReady (.I(w0)); //: @(400,258) /w:[ 0 ] /type:0 tty g0 (.TD(w1), .RD(w6), .RTS(w2), .CTS(w4), .DSR(w5), .DTR(w0)); //: @(377,142) /sn:0 /w:[ 5 1 1 1 1 1 ] //: dip AsciiPrint (w6) @(653,53) /w:[ 0 ] /st:97 led Asciiwrite (.I(w1)); //: @(464,10) /w:[ 3 ] /type:2 endmodule