9.1 8道digital

  • 1. Give two ways of converting a two input NAND gate to an inverter? 
  1. ab short circuit
  2. a or b connect to 1
  • 2. Design a generator, to produce the following sequence:

0 → 1 → 1 → 1 → 2 → 2 → 3 → 4 → 5 → 7 → 9 → 12 → 16 → 21 → 28 → 37 → 0 → 1 → 1 → 1 → 2 → …

x[n-3]+x[n-2]=x[n]

X0<=0;//output

X1<=1;

X2<=1;

Else begin 

X0<=x1;

X1<=x2;

X2<=x0+x1;

回家画电路图,并上墙

  • 3. 7 bit ring counter's initial state is 0100010. After how many clock cycles will it return to the initial state?

0100010->0010001->1001000->0100100->0010010->0001001->1000100->0100010

  • 4. Convert D-FF into divide by 2. (not latch) What is the max clock frequency the circuit can handle, given the following information? 

F/2

Tset=6ns Thold=2ns T_pro=10ns

T>=T_logic+Tcq+Tsetup

Told< Tmin_logic+Tcq_logic

T>=10ns+6ns=16ns

F<=1/16 x10^9 HZ

  • 5. N number of XNOR gates are connected in series such that the N inputs (A0,A1,A2......) are given in the following way: A0 & A1 to first XNOR gate and A2 & O/P of First XNOR to second XNOR gate and so on..... Nth XNOR gates output is final output. How does this circuit work? Explain in detail? 

11->0, 00->1, 01->0, 10->0

even parity detector

  • 6. Using four registers, design a circuit that stores the four values present at an 8-bit input D during the previous four clock cycles. The circuit should have a single 8-bit output that can be configured using two inputs s1 and s0 to output any one of the four registers. (Hint: use an 8-bit 4x1 mux.)

3.19: 4个串联的registers,+mux

  • 7.用sv的constraint实现randc功能

Class randc_Test;

rand bit[7:0] data;

bit[7:0] que[$];

constraint rand{ unique{data, que};};

Function void post_randomize(); 

que.push_back(data);

If (sque.size()==2**7) begin

que[$].delete();

End

Endfunction

Endclass

  • 8. How to design a memory controller with in-order read responses?

ROB=reorder buffer/fifo

https://chipressco.wpcomstaging.com/2019/08/12/how-to-design-a-memory-controller-with-in-order-read-responses/

====

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值