ts-7000
[Top] [All Lists]

[ts-7000] Re: Opencore/usercore bug with headerpin inputs?

To:
Subject: [ts-7000] Re: Opencore/usercore bug with headerpin inputs?
From: "bulent.selek" <>
Date: Fri, 15 Aug 2008 08:15:45 -0000
I don't know what the problem is with ts7300_opencore but, yes, you
are correct.

I overcame the problem with a simple solution, all the dio1 lines for
inputs and the dio2's for outputs.

If you want to use this solution, you have to modify module's pin
definitions like

// inout reg [4:0] blue_pad // REMOVE THIS LINE, 
input [4:0] blue_pad; 
// inout reg [4:0] red_pad; // REMOVE THIS LINE
input [4:0] red_pad; 
// inout reg [4:0] green_pad; // REMOVE THIS LINE
input [4:0] green_pad;

and modify the body

always @(headerpin_o or headerpin_oe or blue_pad or green_pad or
red_pad or
  dio10to17_pad or dio0to8_pad or dio9_pad or vsync_pad or hsync_pad)
begin
//  blue_pad = 5'bzzzzz;  // REMOVE THIS LINE
//  red_pad = 5'bzzzzz;  // REMOVE THIS LINE
//  green_pad = 5'bzzzzz; // REMOVE THIS LINE
  for (i = 0; i < 5; i = i + 1) begin
    headerpin_i[1 + (i * 2)] <= blue_pad[i];
    headerpin_i[11 + (i * 2)] <= green_pad[i];
    headerpin_i[4 + (i * 2)] <= red_pad[i];
//    if (headerpin_oe[1 + (i * 2)]) // REMOVE THIS LINE 
//      blue_pad[i] = headerpin_o[1 + (i * 2)]; // REMOVE THIS LINE
//    if (headerpin_oe[11 + (i * 2)]) // REMOVE THIS LINE
//      green_pad[i] = headerpin_o[11 + (i * 2)]; // REMOVE THIS LINE
//    if (headerpin_oe[4 + (i * 2)]) // REMOVE THIS LINE
//      red_pad[i] = headerpin_o[4 + (i * 2)]; // REMOVE THIS LINE
  end


now, dio1's most lines (blue, red and green pads) are ready for input. 
you can also repeat the operation for vsync and hsync pads.



Bulent





--- In  "jpeshkin" <> wrote:
>
> 
> I'm a Verilog newbie, but it seems that a usercore cannot use a
> headerpin (the DIO2 header) as an input without correcting a bug in
> ts7300_top.
> 
> All my attempts to use pint as inputs failed (always read a zero)
> until I moved the dio0to8_pad = 9'bzzzzzzzzz statement to a point
> after the headerpin_i had copied the input value.
> 
> Am I correct that there is a problem here?
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU