Docsity

Assignment 5 Questions - Capstone Computer System Project | CSCE 491, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 491 – Fall 2002: Homework #5 © Dr. James P. Davis Page 1
CSCE 491 - Capstone Computer Engineering Design
Homework #5
Due Wednesday October 9, 2002
Assignment: Using the flowHDL file shift_controller-020930.flo, create a design model for the Shifter
Controller block and its interacting sub-blocks. When you submit the Homework, please include hardcopy
printout of all flow diagram sheets (of which there should be four) and the Bus Table. Remember, you might
need to reduce the size of them before printing. Note that you will need to type in the script line “set
FLOWHDL_PRINTER l43’ before executing flowHDL (or you can put this command into your copy of the
flowHDL.csh file that you copy over from /usr/local/etc/flowHDL.csh file.
Scenario Narrative: The PHY Block passes 4-bit data words to the MAC Receiver, and signals that there is new
PHY layer data available. The Shifter block latches this new 4-bit word, then shifts it into a 16-bit register. It will
do this 4 times, for a total of 4 shifts of 4-bits each. Once the 16-bit word is created, the Shifter block will set a
flag indicating that the new word is available. If this is the first word of a new frame, it will also set a flag
indicating the new frame.
The Word_Selector is enabled by the New_Word flag (i.e., it is polling on this signal to go high). Once it detects
the signal, it will check whether this is the 1st word of a new frame. It so, then we don’t yet know the Frame
Subtype for this frame, and we assume that the word we have is for the frame’s Control Header. We will select
this target for the Decoder_Selector, so that this word is passed to thie Frame_Header_Decoder block.
: Shifter : WordCount er : Decoder
Selector
: FrameHeader
Decoder
1: Buffer 1st Frame Word
2: Signal S tart_of_Frame
3: Initializ e for New Frame
4: SOF_A cknowledge
5: Signal W ord_Ready
6: Initialize for Next Word in Frame
7: Latch New F rame Word
8: Selec t FrameHeaderDecoder
9: Signal New W ord Available
10: Initializ e for New Frame Header
8b: Buffer Header Word
11: Latch Frame Header Word
12: Determine F rame Subtype & DS Bits
13: Buffer Frame Subt ype and DS Bits
14: Signal Heade r_Data_Ready
15: Load Subty pe & DS Bits
Figure 1. Sequence Diagram for 1st Word of 802.11 Frame.
The Word_Selector has passed the 1st word of the Frame to the Frame_Header_Decoder, as selected and
decoded by Decoder_Selector. Check the block diagrams in Lecture Notes #9 to see the structure as we might
define it in a system block diagram (with actual signals defined). The Frame_Header_Decoder decodes the
pf3
pf4

Partial preview of the text

Download Assignment 5 Questions - Capstone Computer System Project | CSCE 491 and more Assignments Computer Science in PDF only on Docsity!

CSCE 491 - Capstone Computer Engineering Design Homework # Due Wednesday October 9, 2002

Assignment : Using the flowHDL file shift_controller-020930.flo, create a design model for the Shifter Controller block and its interacting sub-blocks. When you submit the Homework, please include hardcopy printout of all flow diagram sheets (of which there should be four) and the Bus Table. Remember, you might need to reduce the size of them before printing. Note that you will need to type in the script line “set FLOWHDL_PRINTER l43’ before executing flowHDL (or you can put this command into your copy of the flowHDL.csh file that you copy over from /usr/local/etc/flowHDL.csh file.

Scenario Narrative: The PHY Block passes 4-bit data words to the MAC Receiver, and signals that there is new PHY layer data available. The Shifter block latches this new 4-bit word, then shifts it into a 16-bit register. It will do this 4 times, for a total of 4 shifts of 4-bits each. Once the 16-bit word is created, the Shifter block will set a flag indicating that the new word is available. If this is the first word of a new frame, it will also set a flag indicating the new frame.

The Word_Selector is enabled by the New_Word flag (i.e., it is polling on this signal to go high). Once it detects the signal, it will check whether this is the 1 st^ word of a new frame. It so, then we don’t yet know the Frame Subtype for this frame, and we assume that the word we have is for the frame’s Control Header. We will select this target for the Decoder_Selector, so that this word is passed to thie Frame_Header_Decoder block.

: Shifter : WordCounter : Decoder Selector

: FrameHeader Decoder 1: Buffer 1st Frame Word

2: Signal Start_of_Frame 3: Initialize for New Frame 4: SOF_Acknowledge

5: Signal Word_Ready 6: Initialize for Next Word in Frame 7: Latch New Frame Word 8: Select Fram eHeaderDecoder 9: Signal New Word Available

10: Initialize for New Frame Header

8b: Buffer Header Word

11: Latc h Frame Header W ord 12: Determine Frame Subtype & DS Bits

13: Buffer Frame Subtype and DS Bits 14: Signal Header_Data_Ready 15: Load Subtype & DS Bits

Figure 1. Sequence Diagram for 1st^ Word of 802.11 Frame.

The Word_Selector has passed the 1st^ word of the Frame to the Frame_Header_Decoder, as selected and decoded by Decoder_Selector. Check the block diagrams in Lecture Notes #9 to see the structure as we might define it in a system block diagram (with actual signals defined). The Frame_Header_Decoder decodes the

header word and extracts the frame subtype information, posting this so that the Frame_Sequencer can access it. This scenario is depicted in Sequence Diagram of Figure 1. (This figure is from Lecture Notes #9, so review these notes).

The Frame_Sequencer reads the frame subtype, and will use it to cycle through a sequence of states for the frame being processed. Each time we get a new frame word from the Shifter, the Frame_Sequencer will advance to the next state in its internal state sequence. Since the structure of a given frame is wholly determined by its frame subtype (e.g., RTS), we know all of the fields that must be present in a frame of this subtype. So, we can use this information to order to processing of the frame, word by word. This state transition sequence is shown in the Statechart diagram, Figure 2 (this is part of Homework Assignment #4).

Header (^) Start Done

DID

Addr

Addr

Addr

Addr

SeqCntrl

Body

FCS

Frame_Subtype = RTS

Frame_Subtype = CTS | ACK

Frame_Subty pe = RTS

Frame_Subt ype = Data

ToFrom_DS = '11'

ToFrom_DS! = '11'

Figure 2. Statechart Diagram for Frame State of 802.11 MAC Receiver.

The Word_Selector reads the current “state” of the sequencer as posted by the Frame_Sequencer. It uses this information to select which of the other blocks in the MAC Receiver gets the shifted Frame Word. On each new Word received from the Shift_Controller, the Word_Selector checks the current state of the Frame_Sequencer corresponding to the current location in the frame stream that is being processed—one word at a time. Knowing this information, the Word_Selector can enable the appropriate signal to the DecoderSelector, indicating which downstream block should receive the current Frame Word. This 2 nd^ scenario is shown in the Sequence Diagram shown in Figure 3.

errors (this will likely require some work), (4) save your design (call it hw-5.flo, and modify the design information for the flowHDL file to reflect your team’s contribution…meaning you add your names to mine, but you can change mine to “J. Davis”, and use first initial and last name for yours), and (5) work as a team unit.

This last point bears some discussion. It means that you cannot discuss your design solution with members of other teams—as these other teams are YOUR COMPETITORS. If you give another team information, you violate your team’s code of ethics, and put the grade your team might get at risk (mainly if I find out about it). Design secrecy is an important part of what makes the electronics and software industries work, in that teams working for a company don’t divulge “trade secrets” to others outside of the organization. Assume that the CSCE 491 classmates not on your team are working for a competitor company that is trying to beat you to market with a better design.

Please review the information contained in the Lecture Notes #17 for more information about the design artifacts, which we’ll discuss in class.

For the assignment, print the resulting diagrams from flowHDL using the process of setting the FLOWHDL_PRINTER environment variable and turn these in as Hardcopy on the due date. You don’t have to email me copies of this assignment. In fact, please don’t (it takes me a long time to re-print these out.)

Let me know if you have questions.