首页 > life > 一点教训

一点教训

2011年6月5日 发表评论 阅读评论

这个端午节真郁闷,一直在加班,直到加班到今晚九点多,服务器文件系统挂了,才能无奈的休息回。而这不意味这几天焦头烂额的生活已经结束,也许意味着服务器好了后会过的更焦头烂额!!

不过也只能怪自己,当初任务没做细,有些事一直在拖,搞得到紧要关头手忙脚乱。在这里随便扯扯教训,算是对做H264硬解码一个子模块的教训,也权充这周的日志。

  1. 万事不能拖,当解决的时候就必须解决。之前其实曾经有空整这东西,但是由于各种原因(包括自己的,以及各种对外部因素的依赖),一直没彻底搞定,自己也知道自己做的模块肯定会有问题,但却一直不想去改。这又是我执行力不够的体现,还是那就话,加强自己的执行力,任何事,想到了就去做。
  2. 不能报侥幸心理。之前解码中有个解出来的参数mb_skip_run,我想当然的以为他不应该超过一行的宏块数,虽然当时怀疑过自己的想法,但却报侥幸心理,觉得大部分视频的mb_skip_run都不会超过这个值,应该问题不大,的确,前面跑了很多视频,都没有出问题,可是昨天测了个视频,跑错了,一trace,发现问题就出在mb_skip_run上这点想当然。于是改,谁知,要不改状态机,得用到除法,而在Verilog中,用除法风险太高了,肯定出来的结果时序要求不符合,DC过不了,主频就惨了。最后只好大改,改状态机,还好,毕竟是自己写的,对状态机挺熟,花了一下午终于改好了,并且做了一些回归测试。还有,之前也怀疑过一个Frame会有几个Slice,但是由于没跑到这样的视频,所以也以为这样的视频很少,不做也罢,谁知,到最后还是得加。
  3. 思路得清晰,关键处要有文档,之前有个8×8块,我为了省面积,愣是想用4×4块的寄存器数(可以省700+寄存器)来完成8×8的残差计算和扫描,当时想通过4×4的想通过掩码把4×4打散成8×8块,当时就意识到逻辑会比较复杂,当时总觉得肯定可以,于是硬着头皮写了个逻辑,但自己都没有把握。由于之前没跑到8×8的视频,也不知道对否,就一直放在那。直到今天,跑了8×8的视频,才知道有问题,于是重新看了下代码,发现由于逻辑太复杂(需要先打散,之后扫描,扫描又分zigzag和field)以及没有文档,自己都看不懂自己当时是怎么写出那逻辑的。后来仔细想了想,想直接通过掩码,不用寄存器暂存8×8的块不现实(因为只打散的话,可以通过掩码做到,但是还要扫描,掩码就没辙了),于是只好加了用来暂存8×8的寄存器,并且残差输出的状态机也要改,又是一下午的时间才改完并且初步做了回归测试。
    马上就到端午节了,贴张粽子的图吧,望梅止渴下:

粽子



本文作者: Sigma    在新浪微博关注SigmaSigmaWeibo    RSS订阅本博客
本文链接: http://www.sigma.me/2011/06/05/h264-project-lesson.html
本博客采用知识共享署名—非商业性-禁止演绎使用3.0协议进行许可,转载请保留作者和原文链接。

分类: life 标签: , , ,

  1. 2011年6月8日04:10 | #1

    @Yan

    Cadence:(貌似一直都是在尝试添加支持,并且都是optional)

    page 4:

    Add support for SUSE SLES 11, Windows Server 2003, OS on x86_64 architecture

    Windows*:Optional,A subset of Cadence products is supported on these compute platforms. Support is driven by customer demand.

    Synopsys:

    Note: 64-bit versions of Windows are supported. However, any FLEXid dongle drivers must be 32-bit only

    并且很多其他的支持软件如verdi之类的都是linux only,windows下的脚本也没那么方便

  2. 2011年6月5日23:58 | #2

    讲的很有道理。但在实际生活中常用的一个心得是lazy computing。咱都是搞计算机的,知道并不是所有的任务都需要立刻就完成,很多东西并不是很重要,拖拖就过去了。从你的经历来看,对事业还是不要应用这个比较好~

  3. 2011年6月6日04:29 | #3

    @Yan

    很多事的确拖拖就过去了,但拖的过程总感觉不踏实,总觉得欠什么

  4. 2011年6月6日14:16 | #4

    今晚科大人聚会包粽子,哇咔咔~~

  5. 2011年6月7日13:52 | #5

    @PP

    你也知道啊。。。昨天那么晚还没起。。。

  6. 2011年6月7日17:36 | #6

    @Yan

    是啊,linux怎么了?windows在那么大的负荷下我想也是要挂的

    并且,windows下有好的EDA工具么

  7. 2011年6月9日09:18 | #7

    嗯,有教训才会做得更好!

  8. 2011年6月7日07:44 | #8

    我现在做事就很拖,汗

  9. 2011年6月7日15:40 | #9

    嘿嘿~~叫你不备份~

  10. 2011年6月7日16:27 | #10

    也就是说不是硬件问题是软件问题啰?叫你用linux~

  11. 2011年6月15日10:11 | #11

    @sdfe

    各种专业,膜拜下

  12. 2011年6月5日17:28 | #12

    我也没买粽子。明天再去看看

  13. 2011年6月6日04:28 | #13

    @代码回音

    呵呵,到今天了,我都没吃,哎,北京的粽子太贵了,吃不起啊

  14. 2011年6月6日14:55 | #14

    @Yan

    好,到时我去下面把你什么八辈子的丑事都抖一抖

  15. 2011年6月7日13:52 | #15

    @PP

    同是天涯沦落人

  16. 2011年6月6日14:17 | #16

    CU科大人可团结了~~今年CU晚会你们就可以看见哥哥猥琐的身影啦!!

  17. 2011年6月6日14:28 | #17

    @Yan

    刚想在chat问你端午吃粽子没,谁知不仅吃了,还炫耀到这里来了。。。

  18. 2011年6月6日14:44 | #18

    哈哈哈哈还有美女哦~~男女比1:1哟~~今晚记得去fb看照片哟~

  19. 2011年6月7日13:53 | #19

    你那SB服务器是linux的吧。。。

  20. 2011年6月7日15:56 | #20

    @Yan

    服务器硬盘肯定有raid,用得着备份吗,只是文件系统出了点问题

    拿硬盘貌似死贵死贵,几千块钱300G

  21. 2011年6月7日13:53 | #21

    @Yan

    神啊,怎么同时回复。。。

  22. 2011年6月7日13:53 | #22

    @sigma

    对哦。。。我也才发现。。。

  23. 2011年6月7日15:08 | #23

    @Yan

    linux怎么了,都是硬盘不给力,文件系统挂了

  24. 2011年6月7日18:04 | #24

    你在想什么呢。。。Synopsys, Cadence… 最大最好的平台哪个不支持windows啊?

    http://www.synopsys.com/Support/LI/Licensing/Pages/SupportedOS.aspx

    http://www.cadence.com/support/computing/Documents/Cadence_Platform_Support_Plan.pdf

  25. 2011年6月15日08:41 | #25

    粽子叶太绿了,很可能是硫酸铜泡过的。

  26. 2019年3月6日14:57 | #26

    I have been exploring for a bit for any high-quality articles or blog
    posts on this sort of area . Exploring in Yahoo I at last stumbled upon this site.
    Studying this information So i am glad to show that I’ve an incredibly just
    right uncanny feeling I found out just what I needed. I such a lot undoubtedly will
    make sure to don?t overlook this website and give
    it a glance on a continuing basis.

  27. 2019年3月6日22:15 | #27

    Sweet blog! I found it while browsing on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo
    News? I’ve been trying for a while but I never seem to get there!
    Thanks

  28. 2019年3月7日02:59 | #28

    Thank you for some other informative web site.
    Where else may I am getting that type of information written in such a perfect way?
    I’ve a undertaking that I’m just now operating on, and I’ve
    been at the glance out for such info.

  29. 2019年3月7日11:50 | #29

    I was curious if you ever considered changing the layout of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 images.
    Maybe you could space it out better?

  30. 2019年3月8日03:35 | #30

    Hmm it seems like your site ate my first comment (it was
    super long) so I guess I’ll just sum it up
    what I submitted and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog writer but I’m still new to the whole thing.

    Do you have any tips for first-time blog writers? I’d certainly appreciate it.

  31. 2019年3月9日14:35 | #31

    My brother suggested I might like this website. He
    was totally right. This post truly made my day. You can not imagine simply how much time I had spent for this information! Thanks!

  32. 2019年3月9日18:08 | #32

    You have made some decent points there. I looked on the net
    to learn more about the issue and found most individuals will go along with your views on this website.

  33. 2019年3月10日22:13 | #33

    Your way of explaining everything in this piece of
    writing is really pleasant, every one can without difficulty know it, Thanks a lot.

  34. 2019年3月12日00:02 | #34

    Wow, wonderful blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your web site is
    fantastic, let alone the content!

  35. 2019年3月12日06:25 | #35

    I was wondering if you ever considered changing the layout of
    your website? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people
    could connect with it better. Youve got an awful lot of text for only having one or two images.
    Maybe you could space it out better?

  36. 2019年3月12日12:25 | #36

    Hi! I could have sworn I’ve visited this website before
    but after going through a few of the articles I realized it’s
    new to me. Anyhow, I’m certainly delighted I discovered it and I’ll be bookmarking it and checking back regularly!

  37. 2019年3月12日16:03 | #37

    When some one searches for his essential thing, so he/she wants to be available that in detail, therefore that thing is maintained over here.

  38. 2019年3月13日11:12 | #38

    I got this web site from my friend who shared with me about this website and at the moment this time I am browsing this website and reading very informative articles or reviews here.

  39. 2019年3月13日12:57 | #39

    Hello, I do think your website may be having
    browser compatibility issues. Whenever I look at your web site in Safari, it looks fine however,
    if opening in IE, it has some overlapping
    issues. I simply wanted to provide you with a quick heads
    up! Other than that, great website!

  40. 2019年3月13日16:43 | #40

    My relatives every time say that I am wasting my time here
    at net, but I know I am getting experience everyday by reading
    thes fastidious posts.

  41. 2019年3月13日17:44 | #41

    What i don’t understood is actually how you’re no longer actually a lot more smartly-appreciated than you
    may be now. You are very intelligent. You realize therefore significantly in the case of this matter, made
    me for my part imagine it from numerous numerous angles.
    Its like women and men are not interested unless it is one thing to do with Lady gaga!
    Your own stuffs excellent. Always maintain it
    up!

  42. 2019年3月13日20:30 | #42

    I’ve read a few excellent stuff here. Certainly value bookmarking for revisiting.
    I wonder how a lot effort you set to make this type of fantastic informative web site.

  43. 2019年3月13日23:17 | #43

    It’s actually very complicated in this busy life to listen news
    on TV, thus I only use internet for that reason, and take the most up-to-date information.

  44. 2019年3月14日01:19 | #44

    I think what you published made a bunch of sense.
    But, think about this, what if you added a little information? I am not saying your content is not good., however what if you added
    something that grabbed people’s attention? I mean 一点教训-Sigma is kinda vanilla.
    You ought to look at Yahoo’s front page and note how
    they create article titles to grab viewers to open the links.
    You might try adding a video or a related picture or two to grab people interested about
    what you’ve written. In my opinion, it would make your posts a little
    bit more interesting.

  45. 2019年3月14日01:22 | #45

    If you are going for most excellent contents like me, just go to see this web page
    every day for the reason that it offers quality contents,
    thanks

  46. 2019年3月14日09:04 | #46

    My coder is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a
    year and am anxious about switching to another platform. I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress content into it?
    Any help would be really appreciated!

  47. 2019年3月14日14:37 | #47

    May I simply just say what a comfort to uncover an individual who really
    knows what they are talking about on the internet. You definitely realize how to bring a problem to light and make it important.

    More people ought to look at this and understand this side of your story.
    I was surprised that you aren’t more popular since you most certainly have the gift.

  48. 2019年3月14日15:16 | #48

    Very good blog you have here but I was wanting to know
    if you knew of any discussion boards that cover the
    same topics talked about in this article?
    I’d really love to be a part of online community where I
    can get advice from other knowledgeable individuals that share the same interest.
    If you have any suggestions, please let me know. Thanks!

  49. 2019年3月14日21:28 | #49

    It’s perfect time to make some plans for the long run and it is time to be happy.

    I’ve read this put up and if I may I desire to suggest you some
    fascinating things or tips. Maybe you can write subsequent articles referring to this article.

    I desire to learn even more issues about it!

  50. 2019年3月14日21:39 | #50

    Right here is the right website for anyone who wants to understand this topic.

    You realize a whole lot its almost tough to argue with you (not that
    I really will need to…HaHa). You definitely put a fresh spin on a topic that’s
    been written about for ages. Excellent stuff, just excellent!

  51. 2019年3月15日03:29 | #51

    I love your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire someone to do it for
    you? Plz answer back as I’m looking to design my own blog and would
    like to know where u got this from. cheers

  52. 2019年3月15日10:47 | #52

    Attractive section of content. I just stumbled upon your web
    site and in accession capital to assert that I acquire
    in fact enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently fast.

  53. 2019年3月15日12:43 | #53

    I’m not that much of a internet reader to be honest but your blogs really nice, keep it up!
    I’ll go ahead and bookmark your website to come back later on. Many thanks

  54. 2019年3月16日06:05 | #54

    Thank you for the auspicious writeup. It in reality used to
    be a enjoyment account it. Look complex to far added agreeable from you!
    However, how could we keep in touch?

  55. 2019年3月16日06:52 | #55

    Hello colleagues, its impressive paragraph regarding teachingand entirely explained, keep it up all the time.

  56. 2019年3月16日09:20 | #56

    You are so awesome! I don’t believe I’ve read through a single thing like this before.
    So wonderful to discover someone with a few genuine thoughts on this topic.
    Really.. thanks for starting this up. This website is something that is required on the
    web, someone with some originality!

  57. 2019年3月17日03:35 | #57

    all the time i used to read smaller articles or reviews which also clear their motive, and that
    is also happening with this article which I
    am reading here.

  58. 2019年3月17日06:31 | #58

    Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot.
    I hope to give something back and help others like you helped me.

  59. 2019年3月17日08:48 | #59

    We’re trusted Mississauga Heating and Cooling Experts.

  60. 2019年3月17日10:37 | #60

    It’s an amazing post in favor of all the web visitors; they will get
    benefit from it I am sure.

  61. 2019年3月18日06:59 | #61

    Thank you for any other informative blog. The place else may I am getting that
    kind of information written in such a perfect way?
    I have a mission that I am just now working on, and I
    have been at the glance out for such information.

  62. 2019年3月18日14:03 | #62

    Hi there! I could have sworn I’ve visited this web site before but after
    looking at some of the posts I realized it’s new to me. Nonetheless, I’m
    definitely delighted I discovered it and I’ll be book-marking
    it and checking back often!

  63. 2019年3月19日12:59 | #63

    I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.

    nonetheless, you command get bought an nervousness over that you wish be delivering
    the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  64. 2019年3月19日17:12 | #64

    If you are going for finest contents like myself, simply go to see this website everyday as
    it gives feature contents, thanks

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

无觅相关文章插件,快速提升流量