经典IC设计面试问题1
时间:10-02
整理:3721RD
点击:
Write a verilog code to swap contents of tworegisters with and without a temporary register?
With temp reg;
always @ (posedge clock)
begin
temp=b;
b=a;
a=temp;
end
Without tempreg;
always @ (posedge clock)
begin
a <= b;
b <=a;
end
With temp reg;
always @ (posedge clock)
begin
temp=b;
b=a;
a=temp;
end
Without tempreg;
always @ (posedge clock)
begin
a <= b;
b <=a;
end
比较基础
英语还是得好好学呀
赚钱
simple in some degree,
第一种写法根本就是不符合规范的,这种情况根本就不会存在tmp reg,出题的人也是250.
楼上何出此言?不解!
看看这个是什么
菜鸟不明白
同意...
看看。谢谢。
呵呵,这个。
惭愧啊 都快忘完了
出题的人是写C语言写多了吧,这个问题的确250