- What are the total number of lines written in C/C++? What is the most complicated/valuable program written in C/C++?
- What compiler was used?
- Have you studied buses? What types?
- Have you studied pipelining? List the 5 stages of a 5 stage pipeline. Assuming 1 clock per stage, what is the latency of an instruction in a 5 stage machine? What is the throughput of this machine ?
- How many bit combinations are there in a byte?
- What is the difference between = and == in C?
- Are you familiar with VHDL and/or Verilog?
Monday, March 24, 2008
C questions for a hardware engineer @ Tech Interviews.com
C questions for a hardware engineer @ Tech Interviews.com
Subscribe to:
Post Comments (Atom)
如何发掘出更多退休的钱?
如何发掘出更多退休的钱? http://bbs.wenxuecity.com/bbs/tzlc/1328415.html 按照常规的说法,退休的收入必须得有退休前的80%,或者是4% withdrawal rule,而且每年还得要加2-3%对付通胀,这是一个很大...
-
魏杰教授这篇演讲,深入浅出,把未来几年的经济形势讲的非常透彻。 魏杰:我和大家一起对未来一段时间做一个交流,可能在座的知道从2018年3月份开始,中国社会生活出现了六个很严重的现象。 第一个现象 ,大量的中小企业反映企业非常难做,压力很大。既有成本压力,也有资金...
-
如何发掘出更多退休的钱? http://bbs.wenxuecity.com/bbs/tzlc/1328415.html 按照常规的说法,退休的收入必须得有退休前的80%,或者是4% withdrawal rule,而且每年还得要加2-3%对付通胀,这是一个很大...
-
以下内容摘编自中文版《如何让孩子成年又成人》。 1. 另辟蹊径 我们都希望孩子在离家的时候,可以产生 “我觉得我可以,我觉得我行” 的心态。 这种心态的另一种表述是 “自我效能” 。它意味着相信自己有能力完成任务、实现目标及把把控局面。它意味着你相信自己做事情的能...
April 10th, 2006 at 6:09 am
What is the difference between = and == in C?
= is an assignment operator
a=b; //b’s value is stored in a
if( a==b) // a’s value is compared with b
April 26th, 2006 at 12:37 am
What are the total number of lines written in C/C++? What is the most complicated/valuable program written in C/C++?
May 15th, 2006 at 6:02 am
How many bit combinations are there in a byte?
128 combinations from
8′h00
8′hff
October 27th, 2006 at 9:40 am
Have you studied buses? What types?
November 9th, 2006 at 5:14 pm
Have you studied pipelining? List the 5 stages of a 5 stage pipeline. Assuming 1 clock per stage, what is the latency of an instruction in a 5 stage machine? What is the throughput of this machine ?
Ans.
A sample microprocessor pipeline has following five stages.
Instr Fetch-> Decode -> Execute -> Memory-> Write Back
Throughput =1 inst/clock
Latency =5 clocks.
November 10th, 2006 at 5:35 am
Have you studied buses? What types?
Bus Types
The expansion bus (where expansion cards go) is an extension of the Central Processor, so when adding cards to it, you are extending the capabilities of the CPU itself. The relevance of this regard to the BIOS is that older cards are less able to cope with modern buses running at higher speeds than the original design of 8 or so MHz. Also, when the bus is accessed, the whole computer slows down to the bus speed, so it’s often worth altering the speed of the bus or the wait states between it and the CPU to speed things up.
The PC actually has four buses;
-> the processor bus connects the CPU to its support chips,
-> the memory bus connects it to its memory,
-> the address bus is part of both of them, and
-> the I/O (or expansion) bus is what concerns us here(carries input and output).
April 9th, 2007 at 3:50 pm
How many bit combinations are there in a byte?
If there are 8 bits in a byte, then the total number of combinations should be 2^8 = 256 no?
April 19th, 2007 at 7:16 pm
dude, why would there be 256 combinations? hahahaha
But you are right about the 8 bits in a byte, but the 8th bit is 128.
So that means that ninth bit is 256, meaning there is a cumlative combination of the 9th bit -1 as being the combination in 8 bits.
-Dos
April 19th, 2007 at 11:32 pm
So 255 is the answer, if you didn’t get what I was saying.
-Dos
April 21st, 2007 at 8:21 am
No, there are 256 combinations, 0 through 255 (or 0×00 through 0xFF). 0 is a valid value.
So the answer is 256.
October 30th, 2007 at 8:06 am
The difference btw = and == is :
in code if you type ,
a=5; /* means the value 5 will be assigned to 5 therfore = is an assignment */
/* operator*/
if(a==5) /* here == is used to compare , in otherwords == is used only to */
/* compare the values here 5 is not assigned to a , but it checks */
/* the value of a with 5 if true then proceeds with the loops*/
November 24th, 2007 at 10:26 am
What is the code for reading “boot sector” in C ?