psoctools | logic in routing fabric without pld's

I just got Boolean AND and Boolean OR to work in the DSI without relying on PLD's. Although, there is improvement to be made with responsiveness. I improved the responsiveness of the Boolean OR but I still need to improve the Boolean AND.

UPDATE

The responsiveness is significantly better when I provide inputs to actual gpios of the CY8CKIT-059. Here's some examples with input routed from 1.3 and 1.2 which are broken out on the board.
        
    openocd --verbose -c "interface kitprog; kitprog_init_acquire_psoc" -f target/psoc5lp.cfg
    telnet localhost 4444
    > source boolean-or.cfg
    0x40005121 02                                              .               
    0x40005121 02                                              .               
    0x40005121 02                                              .               
    0x40005121 00                                              .               
    > source boolean-and.cfg
    0x40005121 02                                              .               
    0x40005121 00                                              .               
    0x40005121 00                                              .               
    0x40005121 00                                              .               
    > 
       
        

OR 1.3, 1.2 -> 2.1

        
    ;# Boolean OR from portpins 1.3 and 1.2 to the blue led at 2.1
    mwb 0x40005110 0x00 96   ;# PRT1-PRT6
    mwb 0x400051C0 0x00 16   ;# PRT12_DR
    mwb 0x400051F0 0x00 16   ;# PRT15_DR
    mwb 0x40010000 0x00 4096 ;# UDB Bank 0
    mwb 0x40011400 0x00 2048 ;# UDB Bank 1
    mwb 0x40014000 0x00 2560 ;# DSI0
    mwb 0x40014C00 0x00 512  ;# DSI12
    mwb 0x40015000 0x00 32   ;# MDCLK_EN
    mwb 0x40005210 0x02      ;# PRT2_OUT_SEL0
    mwb 0x40005211 0x02      ;# PRT2_OUT_SEL1
    
    ;# these two switches are on different rows:
    mwb 0x40014C00 0x80      ;# DSI12_HC0
    mwb 0x40014C04 0x80      ;# DSI12_HC4

    mwb 0x40014CC0 0x03      ;# DSI12_DSIINP0
    
    mwb 0x40014C94 0x40      ;# DSI12_HS4
    mwb 0x40014794 0x40      ;# DSI7_HS4
    mwb 0x40014694 0x40      ;# DSI6_HS4
   
    mwb 0x400145D6 0x04      ;# DSI5_DSIOUTT1
    
    mwb 0x40005122 0x02      ;# PRT2_DM0
    mwb 0x40005123 0x02      ;# PRT2_DM1
    mwb 0x40005124 0x00      ;# PRT2_DM2
    mwb 0x40005125 0x00      ;# PRT2_SLW
    mwb 0x40005126 0x02      ;# PRT2_BYP
    mwb 0x40005127 0x00      ;# PRT2_BIE
    mwb 0x40005128 0x00      ;# PRT2_INP_DIS
    mwb 0x40005129 0x00      ;# PRT2_CTL
    
    mwb 0x40005112 0x0C      ;# PRT1_DM0
    mwb 0x40005113 0x0C      ;# PRT1_DM1
    mwb 0x40005114 0x00      ;# PRT1_DM2
    mwb 0x40005115 0x00      ;# PRT1_SLW
    mwb 0x40005116 0x00      ;# PRT1_BYP
    mwb 0x40005117 0x00      ;# PRT1_BIE
    mwb 0x40005118 0x00      ;# PRT1_INP_DIS
    mwb 0x40005119 0x00      ;# PRT1_CTL
    
    mwb 0x40015003 0x02      ;# BCTL0_BANK_CTL
    mwb 0x40015013 0x02      ;# BCTL1_BANK_CTL

    ;# mwb 0x40005110 0x0C      ;# 1 1
    ;# mdb 0x40005121           ;# 1

    ;# mwb 0x40005110 0x08      ;# 1 0
    ;# mdb 0x40005121           ;# 1

    ;# mwb 0x40005110 0x04      ;# 0 1
    ;# mdb 0x40005121           ;# 1

    ;# mwb 0x40005110 0x00      ;# 0 0
    ;# sleep 1000               ;# OpenOCD or SWD needs this delay, the hardware doesn't seem to need it.
    ;# mdb 0x40005121           ;# 0       
         
        

AND 1.3, 1.2 -> 2.1

        
    ;# Boolean AND from portpins 1.3 and 1.2 to the blue led at 2.1
    mwb 0x40005110 0x00 96   ;# PRT1-PRT6
    mwb 0x400051C0 0x00 16   ;# PRT12_DR
    mwb 0x400051F0 0x00 16   ;# PRT15_DR
    mwb 0x40010000 0x00 4096 ;# UDB Bank 0
    mwb 0x40011400 0x00 2048 ;# UDB Bank 1
    mwb 0x40014000 0x00 2560 ;# DSI0
    mwb 0x40014C00 0x00 512  ;# DSI12
    mwb 0x40015000 0x00 32   ;# MDCLK_EN
    mwb 0x40005210 0x02      ;# PRT2_OUT_SEL0
    mwb 0x40005211 0x02      ;# PRT2_OUT_SEL1
    
    mwb 0x40014CC0 0x03      ;# DSI12_DSIINP0

    ;# these two switches are on the same row:
    mwb 0x40014C00 0x40      ;# DSI12_HC0
    mwb 0x40014C04 0x40      ;# DSI12_HC4
  
    mwb 0x40014C94 0x40      ;# DSI12_HS4
    mwb 0x40014794 0x40      ;# DSI7_HS4
    mwb 0x40014694 0x40      ;# DSI6_HS4
   
    mwb 0x400145D6 0x04      ;# DSI5_DSIOUTT1
    
    mwb 0x40005122 0x02      ;# PRT2_DM0
    mwb 0x40005123 0x02      ;# PRT2_DM1
    mwb 0x40005124 0x00      ;# PRT2_DM2
    mwb 0x40005125 0x00      ;# PRT2_SLW
    mwb 0x40005126 0x02      ;# PRT2_BYP
    mwb 0x40005127 0x00      ;# PRT2_BIE
    mwb 0x40005128 0x00      ;# PRT2_INP_DIS
    mwb 0x40005129 0x00      ;# PRT2_CTL
    
    mwb 0x40005112 0x0C      ;# PRT1_DM0
    mwb 0x40005113 0x0C      ;# PRT1_DM1
    mwb 0x40005114 0x00      ;# PRT1_DM2
    mwb 0x40005115 0x00      ;# PRT1_SLW
    mwb 0x40005116 0x00      ;# PRT1_BYP
    mwb 0x40005117 0x00      ;# PRT1_BIE
    mwb 0x40005118 0x00      ;# PRT1_INP_DIS
    mwb 0x40005119 0x00      ;# PRT1_CTL
    
    mwb 0x40015003 0x02      ;# BCTL0_BANK_CTL
    mwb 0x40015013 0x02      ;# BCTL1_BANK_CTL

    ;# mwb 0x40005110 0x0C      ;# 1 1
    ;# sleep 100                ;# OpenOCD or SWD needs this delay, the hardware doesn't seem to need it.
    ;# mdb 0x40005121           ;# 1

    ;# mwb 0x40005110 0x08      ;# 1 0
    ;# sleep 100                ;# OpenOCD or SWD needs this delay, the hardware doesn't seem to need it.
    ;# mdb 0x40005121           ;# 0

    ;# mwb 0x40005110 0x04      ;# 0 1
    ;# sleep 100                ;# OpenOCD or SWD needs this delay, the hardware doesn't seem to need it.
    ;# mdb 0x40005121           ;# 0

    ;# mwb 0x40005110 0x00      ;# 0 0
    ;# sleep 100                ;# OpenOCD or SWD needs this delay, the hardware doesn't seem to need it.
    ;# mdb 0x40005121           ;# 0