?? cdma.mdl
字號(hào):
Block {
BlockType Outport
Name "Spread out"
Position [350, 128, 380, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "PN"
Position [355, 188, 385, 202]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "User data"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Walsh Code\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [15, 0; 0, 30]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -55]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -5]
DstBlock "PN"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Spread out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "User1 data"
Ports [0, 1]
Position [30, 168, 110, 212]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "10"
Ts "1/1000"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType SubSystem
Name "User2"
Ports [1, 2]
Position [200, 302, 300, 393]
BackgroundColor "green"
FontSize 10
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "User2"
Location [204, 209, 911, 509]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "User data"
Position [35, 93, 65, 107]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 122, 300, 153]
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [135, 78, 215, 122]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [135, 178, 215, 222]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Walsh Code\nGenerator"
Ports [0, 1]
Position [15, 178, 100, 222]
FontSize 10
SourceBlock "commseqgen2/Walsh Code\nGenerator"
SourceType "Walsh Code Generator"
ShowPortLabels on
length "64"
index "30"
ts "1/(1000*10)"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Outport
Name "Spread out"
Position [350, 128, 380, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "PN"
Position [350, 183, 380, 197]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "User data"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Walsh Code\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [15, 0; 0, 30]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -55]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -10]
DstBlock "PN"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Spread out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "User2 data"
Ports [0, 1]
Position [30, 323, 110, 367]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "20"
Ts "1/1000"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType SubSystem
Name "User3"
Ports [1, 2]
Position [210, 512, 310, 603]
BackgroundColor "green"
FontSize 10
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "User3"
Location [485, 390, 1141, 690]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "User data"
Position [35, 93, 65, 107]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 122, 300, 153]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [135, 78, 215, 122]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [135, 178, 215, 222]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Walsh Code\nGenerator"
Ports [0, 1]
Position [25, 178, 110, 222]
FontSize 10
SourceBlock "commseqgen2/Walsh Code\nGenerator"
SourceType "Walsh Code Generator"
ShowPortLabels on
length "64"
index "15"
ts "1/(1000*10)"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Outport
Name "Spread out"
Position [350, 128, 380, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "PN"
Position [350, 203, 380, 217]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "User data"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Walsh Code\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [15, 0; 0, 30]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -55]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 10]
DstBlock "PN"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Spread out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "User3 data"
Ports [0, 1]
Position [35, 533, 115, 577]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "37"
Ts "1/1000"
frameBased off
sampPerFrame "1"
orient off
}
Line {
SrcBlock "Detector2"
SrcPort 1
Points [125, 0; 0, 20]
DstBlock "Error Rate\nCalculation1"
DstPort 2
}
Line {
SrcBlock "Error Rate\nCalculation1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "User1 data"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [45, 0]
DstBlock "User1"
DstPort 1
}
Branch {
Points [0, -60; 915, 0; 0, 45]
DstBlock "Error Rate\nCalculation3"
DstPort 1
}
}
Line {
SrcBlock "User2 data"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [35, 0]
DstBlock "User2"
DstPort 1
}
Branch {
Points [0, -65; 945, 0]
DstBlock "Error Rate\nCalculation1"
DstPort 1
}
}
Line {
SrcBlock "User1"
SrcPort 1
Points [85, 0; 0, 170]
DstBlock "Sum"
DstPort 1
}
Line {
SrcPort 1
Points [70, 0; 0, 45]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "User3 data"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [50, 0]
DstBlock "User3"
DstPort 1
}
Branch {
Points [0, 110; 900, 0; 0, -110]
DstBlock "Error Rate\nCalculation2"
DstPort 1
}
}
Line {
SrcBlock "User3"
SrcPort 1
Points [195, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Detector2"
DstPort 1
}
Branch {
Points [0, -185]
DstBlock "Detector1"
DstPort 1
}
Branch {
Points [0, 205]
DstBlock "Detector3"
DstPort 1
}
}
Line {
SrcBlock "User2"
SrcPort 2
Points [30, 0; 0, 100; 415, 0; 0, -95]
DstBlock "Detector2"
DstPort 2
}
Line {
SrcBlock "User3"
SrcPort 2
DstBlock "Detector3"
DstPort 2
}
Line {
SrcBlock "User1"
SrcPort 2
Points [505, 0]
DstBlock "Detector1"
DstPort 2
}
Line {
SrcBlock "Detector1"
SrcPort 1
Points [80, 0; 0, 20]
DstBlock "Error Rate\nCalculation3"
DstPort 2
}
Line {
SrcBlock "Detector3"
SrcPort 1
Points [80, 0; 0, 10]
DstBlock "Error Rate\nCalculation2"
DstPort 2
}
Line {
SrcBlock "Error Rate\nCalculation3"
SrcPort 1
DstBlock "Display3"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation2"
SrcPort 1
DstBlock "Display2"
DstPort 1
}
Annotation {
Name "CDMA with integration and damp"
Position [207, 50]
BackgroundColor "[0.894118, 0.894118, 0.894118]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
}
}
# Finite State Machines
#
# Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14
#
#
Stateflow {
machine {
id 1
name "dsss_awgn2"
created "12-May-2007 17:21:44"
isLibrary 0
firstTarget 2
sfVersion 60014000.000006
}
target {
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -