Results 1 to 2 of 2

Thread: TV Decoder

  1. #1
    Join Date
    May 2010
    Posts
    38
    Rep Power
    0

    Default TV Decoder

    hello, i am trying to blink the ledg[3] on the de2 Board with the following code but i don't have succes, i think that Problem is on (posedge iTD_VS) the V Sync output of the TV Decoder....how could i resolve it

    assign oLEDG[3] = SW_RST;

    reg SW_RST;
    reg [1:0]SA;
    reg [1:0]PRE_SA;



    always @( posedge iTD_VS ) begin
    if ( SA != PRE_SA )
    begin
    SW_RST = 0;
    PRE_SA = SA;
    end
    else
    begin
    SA = iSW[17:16] ;
    SW_RST = 1;
    end
    end

  2. #2
    Join Date
    Mar 2010
    Posts
    131
    Rep Power
    1

    Default Re: TV Decoder

    Quote Originally Posted by blaiso View Post
    hello, i am trying to blink the ledg[3] on the de2 Board with the following code but i don't have succes, i think that Problem is on (posedge iTD_VS) the V Sync output of the TV Decoder....how could i resolve it

    assign oLEDG[3] = SW_RST;

    reg SW_RST;
    reg [1:0]SA;
    reg [1:0]PRE_SA;



    always @( posedge iTD_VS ) begin
    if ( SA != PRE_SA )
    begin
    SW_RST = 0;
    PRE_SA = SA;
    end
    else
    begin
    SA = iSW[17:16] ;
    SW_RST = 1;
    end
    end
    Code:
    reg [5:0]cnt;//6 bit for 50hz Vframe LED will blink with 50/64=0.8HZ. for 60 hz vframe LED will blink 0.94hz. 
    assign oLEDG[3] = cnt[5];
     
    
    always @( posedge iTD_VS ) begin
    cnt <= cnt+1'b1;
     end

Similar Threads

  1. DE2 TV Decoder
    By asi_ka in forum University Program
    Replies: 16
    Last Post: April 4th, 2012, 02:46 AM
  2. tv-decoder to web server
    By upnios in forum General Altera Discussion
    Replies: 4
    Last Post: May 3rd, 2010, 03:53 AM
  3. Asynchronous adress decoder
    By Kiamur in forum FPGA, Hardcopy, and CPLD Discussion
    Replies: 9
    Last Post: January 25th, 2010, 11:06 AM
  4. viterbi decoder
    By the brick in forum IP Discussion
    Replies: 0
    Last Post: August 24th, 2009, 02:52 AM
  5. mpeg 2 decoder
    By Tal_nios in forum General Discussion Forum
    Replies: 0
    Last Post: August 8th, 2006, 07:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •