Skip to content

Instantly share code, notes, and snippets.

@syoyo
Created January 12, 2015 04:38
Show Gist options
  • Select an option

  • Save syoyo/23569871d2557a68f452 to your computer and use it in GitHub Desktop.

Select an option

Save syoyo/23569871d2557a68f452 to your computer and use it in GitHub Desktop.
Simple pipeline analysis
// == sim start ==
00000001 : fmadd %f102, %f66, %f64, %f112
00000002 : fmadd %f2, %f6, %f4, %f64
-- STALL -- : f112(5), f64(6)
-- STALL -- : f112(4), f64(5)
-- STALL -- : f112(3), f64(4)
-- STALL -- : f112(2), f64(3)
-- STALL -- : f112(1), f64(2)
-- STALL -- : f64(1)
00000009 : fadd %f112, %f64, %f94
00000010 : ld %f2
-- STALL -- : f2(6)
-- STALL -- : f2(5)
-- STALL -- : f2(4)
-- STALL -- : f2(3)
-- STALL -- : f2(2)
-- STALL -- : f2(1)
00000017 : st %f2
// == sim end ==
// Total cycles : 17
// Stall cycles : 12
// Efficiency : 29.41%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment