From: Uwe Hermann Date: Fri, 4 Nov 2016 21:41:03 +0000 (+0100) Subject: ps2: Add an initial PS/2 keyboard test-case. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7d40eaab03c846a7226728cb53e1bf179c152153;p=sigrok-test.git ps2: Add an initial PS/2 keyboard test-case. --- diff --git a/decoder/test/ps2/ps2_keyboard_asdfgh.output b/decoder/test/ps2/ps2_keyboard_asdfgh.output new file mode 100644 index 0000000..febd71f --- /dev/null +++ b/decoder/test/ps2/ps2_keyboard_asdfgh.output @@ -0,0 +1,270 @@ +3563575-3565558 ps2: bit: "0" +3565558-3567542 ps2: bit: "0" +3567542-3569525 ps2: bit: "0" +3569525-3571508 ps2: bit: "1" +3571508-3573491 ps2: bit: "1" +3573491-3575474 ps2: bit: "1" +3575474-3577457 ps2: bit: "0" +3577457-3579440 ps2: bit: "0" +3579440-3581424 ps2: bit: "0" +3581424-3583194 ps2: bit: "0" +3583194-3584416 ps2: bit: "1" +3563575-3565558 ps2: start-bit: "Start bit" "Start" "S" +3565558-3581424 ps2: word: "Data: 1c" "D: 1c" "1c" +3581424-3583194 ps2: parity-ok: "Parity OK" "Par OK" "P" +3583194-3584416 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +7334063-7336046 ps2: bit: "0" +7336046-7338030 ps2: bit: "0" +7338030-7340013 ps2: bit: "0" +7340013-7341997 ps2: bit: "0" +7341997-7343980 ps2: bit: "0" +7343980-7345963 ps2: bit: "1" +7345963-7347946 ps2: bit: "1" +7347946-7349929 ps2: bit: "1" +7349929-7351912 ps2: bit: "1" +7351912-7353682 ps2: bit: "1" +7353682-7354902 ps2: bit: "1" +7334063-7336046 ps2: start-bit: "Start bit" "Start" "S" +7336046-7351912 ps2: word: "Data: f0" "D: f0" "f0" +7351912-7353682 ps2: parity-ok: "Parity OK" "Par OK" "P" +7353682-7354902 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +7386681-7388664 ps2: bit: "0" +7388664-7390648 ps2: bit: "0" +7390648-7392631 ps2: bit: "0" +7392631-7394614 ps2: bit: "1" +7394614-7396597 ps2: bit: "1" +7396597-7398580 ps2: bit: "1" +7398580-7400563 ps2: bit: "0" +7400563-7402547 ps2: bit: "0" +7402547-7404530 ps2: bit: "0" +7404530-7406301 ps2: bit: "0" +7406301-7407520 ps2: bit: "1" +7386681-7388664 ps2: start-bit: "Start bit" "Start" "S" +7388664-7404530 ps2: word: "Data: 1c" "D: 1c" "1c" +7404530-7406301 ps2: parity-ok: "Parity OK" "Par OK" "P" +7406301-7407520 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +11163115-11165099 ps2: bit: "0" +11165099-11167081 ps2: bit: "1" +11167081-11169065 ps2: bit: "1" +11169065-11171048 ps2: bit: "0" +11171048-11173031 ps2: bit: "1" +11173031-11175014 ps2: bit: "1" +11175014-11176997 ps2: bit: "0" +11176997-11178981 ps2: bit: "0" +11178981-11180964 ps2: bit: "0" +11180964-11182735 ps2: bit: "1" +11182735-11183955 ps2: bit: "1" +11163115-11165099 ps2: start-bit: "Start bit" "Start" "S" +11165099-11180964 ps2: word: "Data: 1b" "D: 1b" "1b" +11180964-11182735 ps2: parity-ok: "Parity OK" "Par OK" "P" +11182735-11183955 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +14933986-14935969 ps2: bit: "0" +14935969-14937953 ps2: bit: "0" +14937953-14939936 ps2: bit: "0" +14939936-14941920 ps2: bit: "0" +14941920-14943903 ps2: bit: "0" +14943903-14945886 ps2: bit: "1" +14945886-14947869 ps2: bit: "1" +14947869-14949852 ps2: bit: "1" +14949852-14951835 ps2: bit: "1" +14951835-14953606 ps2: bit: "1" +14953606-14954827 ps2: bit: "1" +14933986-14935969 ps2: start-bit: "Start bit" "Start" "S" +14935969-14951835 ps2: word: "Data: f0" "D: f0" "f0" +14951835-14953606 ps2: parity-ok: "Parity OK" "Par OK" "P" +14953606-14954827 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +14986463-14988446 ps2: bit: "0" +14988446-14990429 ps2: bit: "1" +14990429-14992412 ps2: bit: "1" +14992412-14994395 ps2: bit: "0" +14994395-14996378 ps2: bit: "1" +14996378-14998361 ps2: bit: "1" +14998361-15000344 ps2: bit: "0" +15000344-15002327 ps2: bit: "0" +15002327-15004311 ps2: bit: "0" +15004311-15006081 ps2: bit: "1" +15006081-15007301 ps2: bit: "1" +14986463-14988446 ps2: start-bit: "Start bit" "Start" "S" +14988446-15004311 ps2: word: "Data: 1b" "D: 1b" "1b" +15004311-15006081 ps2: parity-ok: "Parity OK" "Par OK" "P" +15006081-15007301 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +18763422-18765406 ps2: bit: "0" +18765406-18767389 ps2: bit: "1" +18767389-18769372 ps2: bit: "1" +18769372-18771356 ps2: bit: "0" +18771356-18773339 ps2: bit: "0" +18773339-18775323 ps2: bit: "0" +18775323-18777306 ps2: bit: "1" +18777306-18779290 ps2: bit: "0" +18779290-18781273 ps2: bit: "0" +18781273-18783044 ps2: bit: "0" +18783044-18784266 ps2: bit: "1" +18763422-18765406 ps2: start-bit: "Start bit" "Start" "S" +18765406-18781273 ps2: word: "Data: 23" "D: 23" "23" +18781273-18783044 ps2: parity-ok: "Parity OK" "Par OK" "P" +18783044-18784266 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +23479215-23481198 ps2: bit: "0" +23481198-23483181 ps2: bit: "0" +23483181-23485165 ps2: bit: "0" +23485165-23487148 ps2: bit: "0" +23487148-23489132 ps2: bit: "0" +23489132-23491115 ps2: bit: "1" +23491115-23493098 ps2: bit: "1" +23493098-23495080 ps2: bit: "1" +23495080-23497063 ps2: bit: "1" +23497063-23498834 ps2: bit: "1" +23498834-23500054 ps2: bit: "1" +23479215-23481198 ps2: start-bit: "Start bit" "Start" "S" +23481198-23497063 ps2: word: "Data: f0" "D: f0" "f0" +23497063-23498834 ps2: parity-ok: "Parity OK" "Par OK" "P" +23498834-23500054 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +23531832-23533815 ps2: bit: "0" +23533815-23535798 ps2: bit: "1" +23535798-23537781 ps2: bit: "1" +23537781-23539765 ps2: bit: "0" +23539765-23541748 ps2: bit: "0" +23541748-23543731 ps2: bit: "0" +23543731-23545714 ps2: bit: "1" +23545714-23547698 ps2: bit: "0" +23547698-23549681 ps2: bit: "0" +23549681-23551452 ps2: bit: "0" +23551452-23552672 ps2: bit: "1" +23531832-23533815 ps2: start-bit: "Start bit" "Start" "S" +23533815-23549681 ps2: word: "Data: 23" "D: 23" "23" +23549681-23551452 ps2: parity-ok: "Parity OK" "Par OK" "P" +23551452-23552672 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +27309030-27311013 ps2: bit: "0" +27311013-27312996 ps2: bit: "1" +27312996-27314979 ps2: bit: "1" +27314979-27316962 ps2: bit: "0" +27316962-27318945 ps2: bit: "1" +27318945-27320928 ps2: bit: "0" +27320928-27322911 ps2: bit: "1" +27322911-27324895 ps2: bit: "0" +27324895-27326878 ps2: bit: "0" +27326878-27328648 ps2: bit: "1" +27328648-27329868 ps2: bit: "1" +27309030-27311013 ps2: start-bit: "Start bit" "Start" "S" +27311013-27326878 ps2: word: "Data: 2b" "D: 2b" "2b" +27326878-27328648 ps2: parity-ok: "Parity OK" "Par OK" "P" +27328648-27329868 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +32025095-32027079 ps2: bit: "0" +32027079-32029062 ps2: bit: "0" +32029062-32031046 ps2: bit: "0" +32031046-32033029 ps2: bit: "0" +32033029-32035012 ps2: bit: "0" +32035012-32036995 ps2: bit: "1" +32036995-32038978 ps2: bit: "1" +32038978-32040961 ps2: bit: "1" +32040961-32042944 ps2: bit: "1" +32042944-32044715 ps2: bit: "1" +32044715-32045935 ps2: bit: "1" +32025095-32027079 ps2: start-bit: "Start bit" "Start" "S" +32027079-32042944 ps2: word: "Data: f0" "D: f0" "f0" +32042944-32044715 ps2: parity-ok: "Parity OK" "Par OK" "P" +32044715-32045935 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +32077572-32079555 ps2: bit: "0" +32079555-32081538 ps2: bit: "1" +32081538-32083521 ps2: bit: "1" +32083521-32085504 ps2: bit: "0" +32085504-32087487 ps2: bit: "1" +32087487-32089470 ps2: bit: "0" +32089470-32091453 ps2: bit: "1" +32091453-32093436 ps2: bit: "0" +32093436-32095419 ps2: bit: "0" +32095419-32097190 ps2: bit: "1" +32097190-32098412 ps2: bit: "1" +32077572-32079555 ps2: start-bit: "Start bit" "Start" "S" +32079555-32095419 ps2: word: "Data: 2b" "D: 2b" "2b" +32095419-32097190 ps2: parity-ok: "Parity OK" "Par OK" "P" +32097190-32098412 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +38637581-38639565 ps2: bit: "0" +38639565-38641548 ps2: bit: "0" +38641548-38643531 ps2: bit: "0" +38643531-38645515 ps2: bit: "1" +38645515-38647498 ps2: bit: "0" +38647498-38649481 ps2: bit: "1" +38649481-38651464 ps2: bit: "1" +38651464-38653447 ps2: bit: "0" +38653447-38655431 ps2: bit: "0" +38655431-38657201 ps2: bit: "0" +38657201-38658423 ps2: bit: "1" +38637581-38639565 ps2: start-bit: "Start bit" "Start" "S" +38639565-38655431 ps2: word: "Data: 34" "D: 34" "34" +38655431-38657201 ps2: parity-ok: "Parity OK" "Par OK" "P" +38657201-38658423 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +43353809-43355792 ps2: bit: "0" +43355792-43357776 ps2: bit: "0" +43357776-43359759 ps2: bit: "0" +43359759-43361743 ps2: bit: "0" +43361743-43363726 ps2: bit: "0" +43363726-43365709 ps2: bit: "1" +43365709-43367692 ps2: bit: "1" +43367692-43369675 ps2: bit: "1" +43369675-43371658 ps2: bit: "1" +43371658-43373429 ps2: bit: "1" +43373429-43374650 ps2: bit: "1" +43353809-43355792 ps2: start-bit: "Start bit" "Start" "S" +43355792-43371658 ps2: word: "Data: f0" "D: f0" "f0" +43371658-43373429 ps2: parity-ok: "Parity OK" "Par OK" "P" +43373429-43374650 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +43406356-43408340 ps2: bit: "0" +43408340-43410323 ps2: bit: "0" +43410323-43412306 ps2: bit: "0" +43412306-43414290 ps2: bit: "1" +43414290-43416273 ps2: bit: "0" +43416273-43418256 ps2: bit: "1" +43418256-43420239 ps2: bit: "1" +43420239-43422223 ps2: bit: "0" +43422223-43424206 ps2: bit: "0" +43424206-43425977 ps2: bit: "0" +43425977-43427198 ps2: bit: "1" +43406356-43408340 ps2: start-bit: "Start bit" "Start" "S" +43408340-43424206 ps2: word: "Data: 34" "D: 34" "34" +43424206-43425977 ps2: parity-ok: "Parity OK" "Par OK" "P" +43425977-43427198 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +49074046-49076029 ps2: bit: "0" +49076029-49078012 ps2: bit: "1" +49078012-49079995 ps2: bit: "1" +49079995-49081979 ps2: bit: "0" +49081979-49083962 ps2: bit: "0" +49083962-49085945 ps2: bit: "1" +49085945-49087929 ps2: bit: "1" +49087929-49089912 ps2: bit: "0" +49089912-49091895 ps2: bit: "0" +49091895-49093666 ps2: bit: "1" +49093666-49094887 ps2: bit: "1" +49074046-49076029 ps2: start-bit: "Start bit" "Start" "S" +49076029-49091895 ps2: word: "Data: 33" "D: 33" "33" +49091895-49093666 ps2: parity-ok: "Parity OK" "Par OK" "P" +49093666-49094887 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +53790600-53792583 ps2: bit: "0" +53792583-53794567 ps2: bit: "0" +53794567-53796550 ps2: bit: "0" +53796550-53798534 ps2: bit: "0" +53798534-53800517 ps2: bit: "0" +53800517-53802500 ps2: bit: "1" +53802500-53804483 ps2: bit: "1" +53804483-53806467 ps2: bit: "1" +53806467-53808450 ps2: bit: "1" +53808450-53810220 ps2: bit: "1" +53810220-53811443 ps2: bit: "1" +53790600-53792583 ps2: start-bit: "Start bit" "Start" "S" +53792583-53808450 ps2: word: "Data: f0" "D: f0" "f0" +53808450-53810220 ps2: parity-ok: "Parity OK" "Par OK" "P" +53810220-53811443 ps2: stop-bit: "Stop bit" "Stop" "St" "T" +53843151-53845134 ps2: bit: "0" +53845134-53847118 ps2: bit: "1" +53847118-53849101 ps2: bit: "1" +53849101-53851085 ps2: bit: "0" +53851085-53853068 ps2: bit: "0" +53853068-53855051 ps2: bit: "1" +53855051-53857034 ps2: bit: "1" +53857034-53859018 ps2: bit: "0" +53859018-53861001 ps2: bit: "0" +53861001-53862772 ps2: bit: "1" +53862772-53863994 ps2: bit: "1" +53843151-53845134 ps2: start-bit: "Start bit" "Start" "S" +53845134-53861001 ps2: word: "Data: 33" "D: 33" "33" +53861001-53862772 ps2: parity-ok: "Parity OK" "Par OK" "P" +53862772-53863994 ps2: stop-bit: "Stop bit" "Stop" "St" "T" diff --git a/decoder/test/ps2/test.conf b/decoder/test/ps2/test.conf new file mode 100644 index 0000000..3786324 --- /dev/null +++ b/decoder/test/ps2/test.conf @@ -0,0 +1,4 @@ +test ps2_keyboard_asdfgh + protocol-decoder ps2 channel clk=3 channel data=2 + input ps2/keyboard/ps2_keyboard_asdfgh.sr + output ps2 annotation match ps2_keyboard_asdfgh.output