跨时钟域设计是FPGA设计中经常遇到的问题,特别是对Trigger信号进行同步设计,往往需要把慢时钟域的Trigger信号同步到快时钟域下,下面是我工作中用到的慢时钟域到快时钟域的Verilog HDL设计。 // Trigger Cross Domain Design, Slow to fast ...
分类:
其他好文 时间:
2015-03-31 10:38:32
阅读次数:
105
在QtQuick如日中天的发展中,出现了许许多多的设计优良的界面库,其中qml-material更是首屈一指,如何在纯qml项目中进行模块化管理呢?qmldir和qmlproject给你带来答案。...
分类:
其他好文 时间:
2015-03-31 09:09:22
阅读次数:
827
设计模式一书将设计模式引入软件社区,该书的作者是 Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides Design(俗称 “四人帮”)。所介绍的设计模式背后的核心概念非常简单。经过多年的软件开发实践,Gamma 等人发现了某些具有固定设计的...
分类:
Web程序 时间:
2015-03-31 06:40:56
阅读次数:
163
今天终于看完了《STL源码分析》,最近忙于两个比赛的各种文档,没时间写东西,趁着看完的劲,把欠下的补上来。《Design patterns》中对于iterator模式描述如下:提供一种方法,使之能够依序寻访某个聚合物所含的各个元素,而又无需暴露该聚合物的内部结构。在STL中,iterator扮演着连...
分类:
其他好文 时间:
2015-03-31 06:31:33
阅读次数:
110
Design roadProblem's Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1548Mean:目的:从(0,0)到达(x,y)。但是在0~x之间有n条平行于y轴的河,每条河位于xi处,无限长,wi宽,并分别给出了建立路和桥每...
分类:
其他好文 时间:
2015-03-30 22:56:02
阅读次数:
172
网络示例图:RippleView.java 1 /* 2 * The MIT License (MIT) 3 * 4 * Copyright (c) 2014 Robin Chutaux 5 * 6 * Permission is hereby granted, free of...
分类:
移动开发 时间:
2015-03-30 18:01:16
阅读次数:
262
升级android-studio之后,出现这个问题,一直解决不了。无意间,在布局文件的Design界面中,修改原来的AppTheme为Base.Theme.AppCompat就修复了此问题。暂时不知道是什么缘故,不过希望能够帮到那些遇到这个问题的人。
分类:
移动开发 时间:
2015-03-30 16:18:20
阅读次数:
197
题意:需要从(0,0) 点 到(x,y) 修一段路 其中有n条和y轴平行的河 修路的单位成本c1 修桥的单位成本c2 问最小总成本为多少思路:把所有河合并 再三分桥的长度 求出最小成本#include#include#include#include#include#in...
分类:
其他好文 时间:
2015-03-29 23:28:24
阅读次数:
281
题目:
Say you have an array for which the ith element
is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like ...
分类:
其他好文 时间:
2015-03-29 12:22:52
阅读次数:
130
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one an...
分类:
其他好文 时间:
2015-03-29 12:16:23
阅读次数:
108