{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

l9_handouts_2up - Announcements Project 2 due Tuesday 2/26...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Announcements Project 2 due Tuesday 2/26 Homework 3 will be posted 2/26 Project 3 will be posted 2/26 ECE/CS 314 Endianness Review A 32-bit HEX value W 1 W 0 X 1 X 0 Y 1 Y 0 Z 1 Z 0 is to be stored at address A stored at address Memory is byte addressable so this 32-bit value is stored at byte addresses – A , A+1 , A+2 and A+3 A Big-Endian Memory stores W W t A X X t A 1 Y Y t A 2 Z Z t A 3 ECE/CS 314 W 1 W 0 at , X 1 X 0 at A+1 , Y 1 Y 0 at A+2 , Z 1 Z 0 at A+3 A Little-Endian Memory stores – W 1 W 0 at A+3 , X 1 X 0 at A+2 , Y 1 Y 0 at A+1 , Z 1 Z 0 at A
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Endianness Review A16-bit HEX value Y 1 Y 0 Z 1 Z 0 is to be stored at address A at address Memory is byte addressable so this 32-bit value is store at byte addresses – A and A+1 • A Big-Endian Memory stores ECE/CS 314 Y 1 Y 0 at A , Z 1 Z 0 at A+1 • A Little-Endian Memory stores – Y 1 Y 0 at A+1 , Z 1 Z 0 at A Endianness Review An 8-bit HEX value Z 1 Z 0 is to be stored at address A address Memory is byte addressable so this 32-bit value is store at byte address – A • A Big-Endian Memory stores ECE/CS 314 – Z 1 Z 0 at A • A Little-Endian Memory stores – Z 1 Z 0 at A
Background image of page 2
3 Today’s Topic Digital Logic – Sequential Verilog Hardware Modeling – How to implement digital logic using a HDL – Verilog syntax/details to be covered in section ECE/CS 314 Sequential Circuits The output of a sequential circuit depends on current inputs and past inputs I.e., circuit “remembers” past events • Idea: – Introduce devices that can hold state Called state-holding elements (e.g., flip-flops) – Next state depends on previous state (stored in stat- holding elements) and circuit inputs ECE/CS 314 – Outputs depend on previous state and circuit inputs – Next state and outputs calculated using combinational circuits
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 State Machine Structure Combinational Logic inputs outputs next state current state ECE/CS 314 State Memory clock D Flip-flops A flip-flop is a 1-bit memory – Stores 1 bit of “state” information – Changes state on each “tick of the clock” Positive edge-triggered flip-flops D CLK Q QN 0 0 1 ECE/CS 314 0 1 1 0 x 0 last Q last QN x 1 last Q last QN x last Q last QN D Q QN
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.