LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Usb > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Rudolf Usselmann<rudi@a...>
    Date: Fri Jun 25 05:58:01 CEST 2004
    Subject: [usb] Packet Disassembler for Rudi
    Top
    On Fri, 2004-06-25 at 03:39, k1e3c1@h... wrote:
    > Hello Rudi,
    >
    > I was going through the code to get a better understanding and to add
    > low-speed option. I got to the Packet Disassembler and I have a few
    > questions.
    >
    > 1.) All the #1 - I assume are for simulation knowing that the synthesis
    > tool will remove these.

    Yes thats correct.

    > 2.) In the state machine you have no else statements for your ifs. Are
    > you assuming that the synthesis tool will optimize and will assume the
    > else is the current state?
    > 3.) You did not define all variable in all states. For example once
    > pid_ack gets set in the ACTIVE state do you again assume the
    > synthesis tool will optimize and clear the signal in the IDLE condition?

    Nothing to do wit synthesis. Default values are provided
    for all variables. There is no need to assign each variable
    in each state or provide "else" clause. There are many good
    books on verilog, I suggest you pick one up that explains
    this subject in greater detail.

    > My guess is that this is coding style. I got burned by an old tool once
    > and now I assign all variables in all states to be safe. My personal belt
    > and suspenders approach.
    >
    > erich

    Best Regards,
    rudi
    ========================================================
    ASICS.ws ::: Solutions for your ASIC/FPGA needs :::
    ..............::: FPGAs * Full Custom ICs * IP Cores :::
    FREE IP Cores -> http://www.asics.ws/ <- FREE EDA Tools

    ReferenceAuthor
    [usb] Packet Disassembler for RudiK1e3c1

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.