- alaska pipeline



pipeline

This Day in History

Today's Birthday

Quotation of the Day

Pipelining redirects here. For HTTP pipelining, see HTTP pipelining.
Basic five-stage pipeline in a RISC machine

An instruction pipeline is a technique used in the design of computers and other digital electronic devices to increase their performance. Pipelining reduces cycle time of a processor and hence increases instruction throughput, the number of instructions that can be executed in a unit of time. However, despite this benefit, it is worth noting that pipelining does not help in all cases. There are several disadvantages associated.

An instruction pipeline is said to be fully pipelined if it can accept a new instruction every clock cycle. A pipeline that is not fully pipelined has wait cycles that delays the progress of the pipeline.

Advantages of pipelining:

  1. The cycle time of the processor is reduced, thus increasing instruction bandwidth in most cases.

Advantages of not pipelining:

  1. The processor executes only a single instruction at a time. This prevents branch delays and problems with serial instructions being executed concurrently. Consequently the design is simpler and cheaper to manufacture.
  2. The instruction latency in a non-pipelined processor is slightly lower than in a pipelined equivalent. This is due to the fact that extra flip flops must be added to the data path of a pipelined procesor.
  3. A non-pipelined processor will have a fixed instruction bandwidth. The performance of a pipelined processor is much harder to determine and varies widely between different programs.

Most modern CPUs are driven by a clock. The CPU consists internally of logic and flip flops. When the clock arrives, the flip flops take their new value and the logic then requires a period of time to decode the new values. Then the next clock pulse arrives and the flip flops again take their new values, and so on. By breaking the logic into smaller pieces and inserting flip flops between the pieces of logic, the delay before the logic gives valid outputs is reduced. This is why the clock period can be reduced. For example, the RISC pipeline is broken into five stages with a set of flip flops between each stage.

  1. Instruction fetch
  2. Instruction decode and register fetch
  3. Execute
  4. Memory access
  5. Register write back

Hazards: When a programmer (or compiler) writes assembly code, they make the assumption that each instruction is executed before execution of the subsequent instruction is begun. This assumption is invalidated by pipelining. When this causes a program to behave incorrectly, the situation is known as a hazard. Various techniques for resolving hazards such as forwarding and stalling exist.

The instruction cycle is easy to implement, however, it is extremely inefficient. The answer to this inefficiency is pipelining. Pipelining improves performance significantly in program code execution. This is done by the pipelining technique decreasing the time any component inside CPU is idle. Pipelining does not completely cancel out idle time in a CPU but a significant impact is made. Processors with pipelining are organised inside into (stages) which can semi-independently work on separate jobs. Each stage is organised and linked into a 'chain' so each stage's output is inputted to another stage until the job is done. This organisation of the processor allows overall processing time to be significantly reduced.

Unfortunately, not all instructions are independent. In a simple pipeline, completing an instruction may require 5 stages. To operate at full performance, this pipeline will need to run 4 subsequent independent instructions while the first is completing. If 4 instructions that do not depend on the output of the first instruction are not available, the pipeline control logic must insert a stall or wasted clock cycle into the pipeline until the dependency is resolved. Fortunately, techniques such as forwarding can significantly reduce the cases where stalling is required. While pipelining can in theory increase performance over an unpipelined core by a factor of the number of stages (assuming the clock frequency also scales with the number of stages), in reality, most code does not allow for ideal execution.

Contents

  • 1 Examples
    • 1.1 Example 1
    • 1.2 Example 2
  • 2 Complications
  • 3 See also
  • 4 External Links

Examples

Example 1

For instance, a typical instruction to add two numbers might be ADD A, B, C, which adds the values found in memory locations A and B, and then puts the result in memory location C. In a pipelined processor the pipeline controller would break this into a series of instructions similar to:


LOAD A, R1
LOAD B, R2
ADD R1, R2, R3
STORE R3, C
LOAD next instruction

The R locations are registers, temporary memory inside the CPU that is quick to access. The end result is the same, the numbers are added and the result placed in C, and the time taken to drive the addition to completion is no different from the non-pipelined case.

The key to understanding the advantage of pipelining is to consider what happens when this ADD instruction is "half-way done", at the ADD instruction for instance. At this point the circuitry responsible for loading data from memory is no longer being used, and would normally sit idle. In this case the pipeline controller fetches the next instruction from memory, and starts loading the data it needs into registers. That way when the ADD instruction is complete, the data needed for the next ADD is already loaded and ready to go. The overall effective speed of the machine can be greatly increased because no parts of the CPU sit idle.

Each of the simple steps are usually called pipeline stages, in the example above the pipeline is three stages long, a loader, adder and storer.

Every microprocessor manufactured today uses at least 2 stages of pipeline. (The Atmel AVR and the PIC microcontroller each have a 2 stage pipeline).

Example 2

To better visualize the concept, we can look at a theoretical 3-stages pipeline:

Stage Description
Load Read instruction from memory
Execute Execute instruction
Store Store result in memory and/or registers

and a pseudo-code assembly listing to be executed:

        LOAD  #40,A      ; load 40 in A
        MOVE  A,B        ; copy A in B
        ADD   #20,B      ; add 20 to B
        STORE B, 0x300   ; store B into memory cell 0x300

This is how it would be executed:

Clock 1
Load Execute Store
LOAD

The LOAD instruction is fetched from memory.

Clock 2
Load Execute Store
MOVE LOAD

The LOAD instruction is executed, while the MOVE instruction is fetched from memory.

Clock 3
Load Execute Store
ADD MOVE LOAD

The LOAD instruction is in the Store stage, where its result (the number 40) will be stored in the register A. In the meantime, the MOVE instruction is being executed. Since it must move the contents of A into B, it must wait for the ending of the LOAD instruction.

Clock 4
Load Execute Store
STORE ADD MOVE

The STORE instruction is loaded, while the MOVE instruction is finishing off and the ADD is calculating.

And so on. Note that, sometimes, an instruction will depend on the result of another one (like our MOVE example). When more than one instruction references a particular location for an operand, either reading it (as an input) or writing it (as an output), executing those instructions in an order different from the original program order can lead to hazards (mentioned above). There are several established techniques for either preventing hazards from occurring, or working around them if they do.

Complications

Many designs include pipelines as long as 7, 10 and even 31 stages (like in the Intel Pentium 4). The Xelerator X10q has a pipeline more than a thousand stages long [1]. The downside of a long pipeline is when a program branches, the entire pipeline must be flushed, a problem that branch predicting helps to alleviate. Branch predicting itself can end up exacerbating the problem if branches are predicted poorly. In certain applications, such as supercomputing, programs are specially written to rarely branch and so very long pipelines are ideal to speed up the computations, as long pipelines are designed to reduce clocks per instruction (CPI). Branching happens constantly, however, in many common applications such as office software, significantly reducing the speed gain of pipelining.

The higher throughput of pipelines falls short when the executed code contains many branches: the processor cannot know where to read the next instruction, and must wait for the branch instruction to finish, leaving the pipeline behind it empty. After the branch is resolved, the next instruction has to travel all the way through the pipeline before its result becomes available and the processor appears to "work" again. In the extreme case, the performance of a pipelined processor could theoretically approach that of an unpipelined processor, or even slightly worse if all but one pipeline stages are idle and a small overhead is present between stages.

Because of the instruction pipeline, code that the processor loads will not immediately execute. Due to this, updates in the code very near the current location of execution may not take effect because they are already loaded into the Prefetch Input Queue. Instruction caches make this phenomenon even worse. This is only relevant to self-modifying programs such as operating systems.

See also

  • Wait state
  • classic RISC pipeline
  • Branch Prediction in the Pentium Family

External Links

  • ArsTechnica article on pipelining
Search Term: "Instruction_pipeline"

pipeline news and pipeline articles

Here's our top rated pipeline links for the day:

Kazakhstan Seeks Stake in Oil Pipeline 

AP via Yahoo! Finance - Apr 04 12:16 PM
Kazakhstan wants a stake in a key Russian-controlled oil pipeline that bypasses Turkey's busy Bosporus in a move that would allow the Central Asian nation more access to European markets, the Kazakh energy minister said Wednesday.
Save

India, Pakistan talk on IPI pipeline 
UPI - Apr 04 12:00 PM
India and Pakistan on Wednesday discussed the proposed gas pipeline from Iran that has been stalled over pricing issues. Indian Prime Minister Manmohan ...
Save

Nepal to go it alone on pipeline 
UPI - Apr 04 10:16 AM
Nepal has decided to build the Raxaul-Amlekhgunj pipeline oil pipeline on its own. The eKantipur.com news Web site reported Wednesday that Nepal Oil Corp.
Save

New pipeline bringing natural gas to Hutchinson 
Savannah Morning News - 11 minutes ago
Two weeks ago, Atlanta Gas Light crews began boring a pipeline some 60 feet under the Savannah River.
Save

Chile's Enap-led Consortium To Build New Gas Pipeline -Report 
Nasdaq - Apr 04 12:33 PM
SANTIAGO -(Dow Jones)- Sonacol, a consortium led by state oil and gas company Empresa Nacional del Petroleo or Enap, plans to build a $300 million gas pipeline between Santiago and the southern city of Concepcion, El Mercurio newspaper reported Wednesday.
Save

New southeast Europe pipeline wins backing 
AFP via Yahoo! News - Apr 03 10:41 AM
A new 1,300-kilometer-long (806-mile-long) oil pipeline to link the Black Sea with Italy won support on Tuesday from the five southeast European countries involved in the project.
Save

NordStream to Conduct More Studies for Baltic Gas Pipeline 
Rigzone - Apr 04 8:48 AM
Additional studies for the route of a planned natural gas pipeline through the Baltic Sea were to be launched, the Russian-German joint-venture company undertaking the project said Thursday.
Save

India, Pakistan talk on IPI pipeline 
EARTHtimes.org - Apr 04 12:11 PM
India and Pakistan on Wednesday discussed the proposed gas pipeline from Iran that has been stalled over pricing issues.
Save

Colo.-to-Ohio pipeline starts Phelps work 
Kearney Hub - Apr 04 11:06 AM
LOOMIS The first sign of a natural gas pipeline that will cross through four Hub Territory counties arrived this week.
Save

Nepal to go it alone on pipeline 
EARTHtimes.org - Apr 04 10:26 AM
Nepal has decided to build the Raxaul-Amlekhgunj pipeline oil pipeline on its own.
Save

Last Update: 2007-04-04 22:13:13

Thank you for reading the pipeline page - pipeline. 

1. pipline

As an extra bonus here are the top searched terms over the past month for pipeline. Now you can see what everyone else is searching for in regards to pipeline.

1. pipeline
2. alaska pipeline
3. alaskan pipeline
4. cnn pipeline
5. alyeska pipeline
6. pipeline construction
7. pipeline cleaning
8. pipeline inspection
9. the alaskan tundra leaks, pipeline
10. pipeline descaling
11. pipeline companies
12. aerial pipeline patrol
13. alaska oil pipeline
14. pipeline pig
15. charter pipeline
16. pipeline hawaii
17. pipeline jobs
18. caribou on pipeline
19. pipeline welding
20. canada fishing fly in pipeline
21. marathon pipeline headquarters
22. oil pipeline
23. alaska pipeline jobs
24. colonial pipeline
25. pipeline buoyancy
26. engineering jobs in florida pipeline
27. rockies express pipeline
28. steady flow in gas pipelines
29. blanket pipeline easements
30. corridor pipeline
31. mckenzie gas pipeline project
32. alaska pipeline shutdown
33. bbc pipeline
34. pipeline welders
35. btc pipeline
36. pipeline river crossing
37. university pipeline alldorm
38. urban pipeline
39. gravity systems pipeline no flow
40. natural gas pipeline
41. pipeline repair
42. alaska oil pipeline jobs
43. marathon pipeline garyville terminal employment
44. mobile pipeline
45. pipeline engineering jobs
46. pipeline world
47. transcontinental gas pipeline
48. alaskan oil pipeline
49. marathon oil pipeline garyville
50. office of pipeline safety
51. pipeline company
52. pipeline inspectors
53. pipeline integrity
54. pipelines
55. trans alaska pipeline
56. alaskan pipeline construction jobs
57. department transportation27s office pipeline safety
58. financial reporting cases on pipeline industry
59. leadership pipeline
60. marathon oil pipeline job openings
61. natural gas pipeline companies
62. pipeline beam saddle
63. pipeline corrosion inspections
64. pipeline inspection equipment
65. pipeline jobs in meridian ms
66. pipeline pigs
67. tank and pipeline cleaning
68. trace heating of grp pipeline
69. world pipeline congress
70. find pipeline jobs
71. gas pipeline
72. log on to campus pipeline
73. pipeline construction companies
74. pipeline dispatchers
75. pipeline in alberta, canada
76. pipeline irish band
77. pipeline job openings
78. pipeline rules of thumb handbook
79. pipeline tunneling methods
80. accident report buckle propagation failure in a pipeline
81. asbestos pipeline coating
82. chantays pipeline
83. dot office of pipeline safety
84. internal pipeline repair
85. keystone pipeline
86. olympic pipeline corrosion
87. pipeline cafe
88. pipeline construction jobs
89. pipeline construction projects time
90. pipeline construction with cofferdams
91. pipeline contractors
92. pipeline crew in meridian ms
93. san ardo pipeline company
94. us dot office of pipeline safety website
95. wickham pipeline construction + idaho
96. alaska pipeline production
97. buckeye pipeline
98. gulf south pipeline
99. long beach pipeline spill
100. louisbourg pipelines inc
101. louisisana office of pipeline safety
102. michels pipeline
103. pigs & pipeline cleaning
104. pipeline chantays
105. pipeline coffee coffee gourmet coffee
106. pipeline construction safety articles
107. pipeline engineering technology corporation
108. pipeline integrity threats
109. pipeline news
110. pipeline pigging
111. pipeline pigging facilities
112. pizza pipeline
113. plantation pipeline
114. plantation pipeline company
115. surfing pipeline
116. williams pipeline
117. alaska lng pipeline map
118. alaska pipeline map
119. alaskan pipeline facts
120. alaskian pipeline
121. alliance pipeline
122. anr pipeline company
123. baku oil pipeline
124. boycott bp over alaska pipeline neglect
125. bp pipeline
126. eagle pipeline
127. foundations & pipelines
128. free flooding of pipelines
129. gas + pipeline + stainless steel?
130. internal coatings pipeline
131. international pipeline conference
132. international pipeline news
133. lincoln pipeline special welder
134. magellan pipeline
135. natural gas pipelines
136. office of pipeline safety drug and alcohol testing
137. office of pipeline safety wilke
138. oil gas well pipeline financing
139. oil pipeline market size
140. pembina pipeline inc
141. pipeline drying
142. pipeline engineer jobs
143. pipeline maintenance
144. pipeline ultrasonic inspections
145. pipeline ventures
146. pipeline work rate schedule
147. pipelines in new brunswick
148. trans canada pipeline
149. university pipeline
150. utah pipeline safety office
151. video on the trans alaska pipeline
152. air pockets pipelines hills
153. alaska pipeline + first production date
154. alaskan pipeline map
155. alyeska pipeline serv co v wilderness soc'y
156. centurion pipeline
157. construction of alaskan pipeline
158. dome pipeline
159. ewing bank pipeline company
160. gas pipeline construction companies in wyoming
161. gas pipeline maps
162. gas pipeline pipe
163. gas pipelines
164. gulf coast co2 pipelines
165. louisiana pipelines
166. map of the trans alaska pipeline system
167. marathon oil pipeline zackary terminal
168. medical gas pipeline testing equipment
169. miller pipeline
170. minnesota office of pipeline safety
171. mn office of pipeline safety
172. north american pipeline maps
173. oil pipelines
174. pipeline employment
175. pipeline masters t-shirt
176. pipeline movies
177. pipeline mp3
178. pipeline patrol pilot
179. pipeline shore approach
180. steel pipeline company
181. texas pipelines
182. travel in the accession pipeline
183. underground pipeline
184. walmart pipeline
185. a.p.i. pipeline
186. ccri pipeline
187. conduit pipeline soil padding
188. department of transportation office of pipeline safety
189. el paso community college pipeline
190. federal office of pipeline safety
191. federal pipeline agencies
192. free pictures of pipeline waves in hawaii
193. hills pipelines hgl air
194. history of the alaskan pipeline
195. internal coatings pipeline epoxy
196. joint pipeline office
197. medical gas pipeline
198. oil pipeline ceqa environmental impact statements
199. oil pipeline spill 1985 oak grove township
200. oj pipelines
201. pipeline company and pride
202. pipeline concrete beam saddle
203. pipeline construction careers in alaska
204. pipeline dewatering
205. pipeline iraq israel
206. pipeline laying
207. pipeline lyrics
208. pipeline maps
209. pipeline masters
210. pipeline tapping fitting
211. pipelines texas
212. png pipeline
213. smart pig pipeline
214. texas eastern pipeline
215. ventures pipeline
216. west african gas pipeline
217. west emerald pipeline
218. aboriginal pipeline group
219. air lock pipelines hgl
220. alaska map pipeline
221. alaska natural gas pipeline
222. anabranch pipeline
223. arizona pipeline rupture
224. bp pipelines
225. caspian pipeline consortium route
226. caspian sea+oil pipeline
227. ceyhan + pipeline
228. citgo pipeline
229. enbridge pipeline
230. evanton pipeline
231. gas + pipeline
232. gas pipeline design
233. gas pipeline safety training
234. gas pipeline welding
235. gas pipeline work safety
236. gas pipelines and property values
237. gulf and alabama and pipeline and intersection
238. internal pipeline robot
239. kharyaga usinsk pipeline design
240. map of trans alaska pipeline
241. map trans alaska pipeline system
242. marathon pipeline garyville terminal
243. murphy brothers pipeline
244. new mexico office of oil and pipeline safety
245. nio thread pipeline
246. office of pipeline safety ky
247. oil pipeline pig
248. petroleum engineering pipeline
249. pipeline checklist
250. pipeline digging
251. pipeline indio
252. pipeline jobs in houston
253. pipeline leak detection
254. pipeline restraint calculation
255. pipeline risk analisis
256. pipeline rollers
257. pipeline supply
258. pipeline work zone safety
259. project pipeline
260. russia?s druzhba pipeline
261. sales pipeline course
262. trans alaska pipeline video
263. transwestern pipeline company
264. united states office of pipeline safety management
265. united states pipeline maps
266. unlocking pixel pipelines on 6600le
267. wickland pipeline
268. acid pipeline design australia free
269. alaska pipeline production - overseas sales
270. australia pipeline jobs
271. bp alaska pipeline
272. british pipeline industry guild method
273. calculating pressure drop in gas pipelines
274. calculation for pipelines
275. canada pipeline accessories
276. coalinga to san ardo gas pipeline eir
277. corrosion of gas pipeline by soil
278. corrosion rates + pipelines
279. csfm jurisdictional pipeline
280. department of transportation27s office of pipeline safety
281. dow chemical pipelines
282. ethanol pipelines
283. gas pipeline equipment
284. gas pipeline leak detector
285. gas pipeline ssoil corrosion
286. helicopter chops refueling pipeline
287. india pakistan pipeline
288. klb pipeline
289. lake winnebago pipeline
290. libia's water pipeline
291. lincoln pipeline special
292. map for alaska pipeline
293. map of the alaska pipeline
294. marathon pipeline zakary terminal
295. mckenzie valley pipeline
296. memorandum of understanding-mckenzie gas pipeline project
297. michels pipeline v. state of wisconsin
298. natural gas pipeline construction companies
299. natural gas pipeline contractors
300. natural gas pipeline of america
301. new castle, indiana gas pipeline explosion
302. nigerian pipeline leak
303. northern pipeline projects in the free online encyclopedia
304. office pipeline safety ky
305. office pipeline safety training requirements
306. oil pipeline maps
307. pipeline construction companies in india
308. pipeline construction company for sell
309. pipeline controller job
310. pipeline corrosion
311. pipeline ennobled
312. pipeline in amd processor
313. pipeline installation companies
314. pipeline internet
315. pipeline job videos
316. pipeline marker
317. pipeline merchants
318. pipeline office decorating
319. pipeline parts
320. pipeline plumbing
321. pipeline products
322. pipeline quality gas specification
323. pipeline risk assessment
324. pipeline stocks
325. pipeline supplies uk
326. pipeline systems
327. pipeline threats
328. pipeline trenching
329. pipeline welders jobs
330. pipeline welding jobs
331. pipelines black sea
332. pipelines companies
333. pipelines in the gulf of mexico
334. sales process steps step management pipeline qualify
335. searching for libia's water pipeline
336. tools and equipment manufacturing pipeline cleaning
337. trans canada pipelines
338. transco pipeline
339. underground pipeline road crossing casing
340. urban pipeline jeans
341. above ground oil pipeline anode protection
342. al pipeline periodical
343. alaska gas pipeline
344. alaskan pipeline jobs
345. anr pipelines easements
346. anthrax - pipeline
347. api inspectors pipeline jobs
348. beirut oil pipeline
349. canada oil pipeline
350. centerline pipeline
351. cnn pipeline username and password
352. colonial pipeline company
353. colonial pipeline home
354. define sales pipeline
355. dent pipeline
356. enbridge pipeline and farmland
357. epdm gaskets pipelines
358. excavation safety for pipelines
359. gas pipeline construction pics
360. gas pipeline corrosion by soil
361. gas pipeline pressure drop calculation
362. gas pipeline trenching
363. gas pipelines excavation permits osha
364. gateway pipeline
365. gulf and pipeline and intersection
366. h2s service pipeline
367. hack cnn pipeline
368. hawaii pipeline - best time of year
369. healthy sales pipeline
370. herman haupt tidewater pipeline
371. india's and china's oil pipeline
372. linscan advance pipeline
373. mackenzie pipeline
374. mackenzie valley pipeline
375. management pipeline
376. map alaska pipeline
377. map of gas pipelines
378. mechanical flow diagram pipeline pigging facilities
379. mercy college pipeline
380. middle tennessee state university pipeline
381. midwestern pipeline
382. natural gas pipeline in turkey
383. new pipelines construction
384. news pipeline
385. northern pipeline
386. oil pipeline and resource map
387. oil pipeline environmental impact statements
388. oil pipeline routes
389. oil pipeline spills
390. oil pipeline turkey
391. oklahoma office of pipeline safety
392. olympic pipeline
393. pacific texas pipeline
394. parking for pipeline cafe
395. pga pipeline
396. pharmaceutical pipeline
397. phoenix pipeline inc foley al
398. pig 60 pipeline
399. pipeline and channel and houston
400. pipeline antics
401. pipeline career oppurtunities
402. pipeline coatings
403. pipeline construction europe
404. pipeline controller jobs
405. pipeline engineer magazine
406. pipeline expansion
407. pipeline flow calculation
408. pipeline jobs in alaska
409. pipeline location
410. pipeline magazines
411. pipeline maintenance and inspection jobs
412. pipeline map
413. pipeline plumbing fixtures
414. pipeline receiver enclosures
415. pipeline safety
416. pipeline safety topics
417. pipeline smoke shop, hawaii
418. pipeline spare capacity
419. pipeline spool base
420. pipeline supplies
421. pipeline supply cleburne
422. pipeline support pillows
423. pipeline upgrade
424. pipeline welder
425. pipeline welding engineering
426. pipeline welding school
427. pipeline welding truck
428. pipelines and product marketing company limited
429. pressure control loops in oil pipelines
430. prince william pipeline
431. r&m pipeline
432. rem pipeline
433. sales pipeline stages
434. sales pipeline templates
435. san diego aqueduct system pipeline 1
436. san diego aqueduct system pipeline maps
437. slack line pipeline
438. super pig pipelines
439. symphony pipeline
440. talent pipeline + consulting or selection or development
441. teppco pipelines
442. texas co2 pipelines
443. the song pipeline
444. transwestern pipeline
445. unocal pipeline in afghanistan
446. value line gas pipeline industry
447. vermont pipeline
448. west-africa gas pipeline
449. western pipeline
450. wivenhoe tarong pipeline au
451. wooden pipeline decay
452. 7600 gs agp unlock pipelines
453. 7600 gs unlock pipelines
454. accelrys pipeline pilot
455. alabama pipeline codes