• Techo

[IC design] Google interview - IC design verification part one

Google recruiter 問了我要不要參加 DV 的面試

但是由於我也有 Digital IC design 的經驗

所以第一關先安排 DIC 的考試

聊了過去的 IC設計與驗證經驗之後


module bit_fifo #(parameter N) ( // N is the depth

input clk,

input rst_n,

input [2:0] wcnt,

input [3:0] wdat,

output w_ok,

input [2:0] rcnt,

output [3:0] rdat,

output r_ok


1. Data is little endian. Bit FIFO depth = N bits. Use dcnt to represent the current number of bits in FIFO.

2. Can accept concurrent read or write requests of up to 4 bits per cycle.

3. wcnt=0~4; when wcnt==0, no data is written, and w_ok should be 0. w_ok==1 only when the entire amount can be written.

4. rcnt=0~4; when rcnt==0, no data is popped, and r_ok should be 0. r_ok==1 only when the entire amount can be popped

Q1. Can you determine the logic of w_ok and r_ok?

Q2. Can you determine the next-cycle value of dcnt after considering w_ok and r_ok?



assign w_ok = ((wcnt == 3’d0) || ((N-dcnt)<wcnt) ) ? 1’b0:1’b1;

assign r_ok = ((rcnt == 4’d0) || (dcnt < rcnt)) ? 1’b0 : 1’b1;


assign dcnt_nx = (w_ok) ? ((r_ok) ? (dcnt + wcnt -rcnt): dcnt + wcnt) : ((r_ok) ? dcnt -rcnt: dcnt);

540 次瀏覽0 則留言



[科技產業] IC設計股價起飛中,我該換工作嗎?

一兩個月前接到高通 Qualcomm 的電話 說是要發offer給我 由於距離面試結束後已經過了四五個月 時機已不同所以一些因素我婉拒了這個 offer 但後來不斷有 recruiter 或是 headhunter 一直寄信給我 例如 Arm china, Nvidia, Google, SiFive 在這個時機點都瘋狂地找人 讓我不禁懷疑真正的IC設計時代難道現在才開始嗎? 我留下這篇文章來記錄

  • Instagram - White Circle
  • Google+ - White Circle
  • Facebook - White Circle

Contact Us


官方LINE ID : @tutortecho


© Copyright 2018 by Sherry Wu and Techo Chao.

Proudly created with Wix.com,

but page loading is too slow,so I don't recommend it.