WinCupl- using Shift register n multiplexer

Discussion in 'Programmer's Corner' started by jude00, Apr 11, 2011.

  1. jude00

    Thread Starter New Member

    Apr 11, 2011
    1
    0
    Name mux ;
    PartNo 00 ;
    Date 11/04/2011 ;
    Revision 01 ;
    Designer Engineer ;
    Company University of Tulsa ;
    Assembly None ;
    Location ;
    Device V2500C ;

    /* *************** INPUT PINS *********************/
    PIN 1=clk ; /* */
    PIN 3=x ; /* */
    PIN 4=r1 ; /* */
    PIN 5=r2 ; /* */
    PIN 6=r3 ; /* */
    PIN 7=r4 ; /* */

    /* *************** OUTPUT PINS *********************/
    PIN 9=z ; /* */
    PIN 12=q0 ; /* */
    PIN 13=q1 ; /* */
    PIN 14=q2 ; /* */
    PIN 15=q3 ; /* */
    PIN 16=q4 ; /* */
    PIN 24=q5 ; /* */
    PIN 25=q6 ; /* */
    PIN 26=q7 ; /* */



    /*mux*/
    z=!q6&!q7&r1 # !q6&q7&r2 # q6&!q7&r3 # q6&q7&r4;

    /*shift Register */
    q0.d=x;
    q1.d=q0;
    q2.d=q1;
    q3.d=q2;
    q4.d=q3;
    q5.d=q4;
    q6.d=q5;
    q7.d=q6;

    on my program when i change q6 and q7 i only get the vlaues of R1 on my out put Z, can any one please help me with it ????
     
  2. mjhilger

    Member

    Feb 28, 2011
    119
    16
    Are you simulating, or seeing your results on the live chip?
     
Loading...