Compare commits
No commits in common. "davidblade" and "master" have entirely different histories.
davidblade
...
master
42 changed files with 5031 additions and 107466 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -1,28 +0,0 @@
|
|||
#Notes about compiling baldeRf
|
||||
I've got an error when using wsl because the files are in windows format.
|
||||
The command to translate the file to linx version is: sudo find . -type f -exec dos2unix {} \;
|
||||
|
||||
19/10/2025
|
||||
I am having problems with quartus root file. It cannot find the version. It is located here C:\intelFPGA_lite\quartus. Create a linux variable. Probably on the env variables in windows
|
||||
|
||||
1) Change files to linux format find . -type f -print0 | xargs -0 -n 1 -P 4 dos2unix
|
||||
2) Converting windows paths to linux format. Remember that by dragging the file to the main window the path gets printed in the prompt.
|
||||
2.1) example: cd $(wslpath 'D:\aaa\bbb\ccc\ddd\eee\fff\ggg') #from windows to linux
|
||||
2.2) example: notepad.exe $(wslpath -w ./myfile.txt) #from windows to linux
|
||||
|
||||
3) Transfer windows environmental variable to wsl "setx WSLENV QSYS_ROOTDIR/up"
|
||||
|
||||
4) Location of the make file for the niosII aplications
|
||||
4.1 ) Notice in Makefile:
|
||||
ad936x: cmake_check_build_system
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ad936x
|
||||
|
||||
5) I am getting an error generating the libad936x code. The Makefile located in BladeRF2p0/bladeRF/hdl/quartus/work/bladerf-micro-A4-hosted/libad936x regenerate all the files when "make rebuild_cache" is excuted.
|
||||
|
||||
6) When the Makefile located at libad936x is executed. It run in according to the comment of the Makefile
|
||||
|
||||
-> The top-level source directory on which CMake was run ->CMAKE_SOURCE_DIR = /mnt/c/Users/dr829/OneDrive/Documents/BladeRF2p0/bladeRF/hdl/fpga/ip/analogdevicesinc/no_OS
|
||||
|
||||
7) try make-dn for debugging
|
||||
|
||||
8) Problem in the cmake file: C:\Users\dr829\OneDrive\Documents\BladeRF2p0\bladeRF\hdl\quartus\work\bladerf-micro-A4-hosted\libad936x
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
|||
19/10/2025
|
||||
0x1f47
|
||||
102872
DavidNotes/micro.dxf
102872
DavidNotes/micro.dxf
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,81 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>bladeRF</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
<dictionary>
|
||||
<key>?name?</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.append_environment</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
|
||||
<value>all</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildArguments</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildCommand</key>
|
||||
<value>cs-make</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildLocation</key>
|
||||
<value>${workspace_loc:/bladeRF}</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
|
||||
<value>clean</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.contents</key>
|
||||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
|
||||
<value>false</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
|
||||
<value>DEBUG=y all</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.stopOnError</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>bladeRF</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
<dictionary>
|
||||
<key>?name?</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.append_environment</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
|
||||
<value>all</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildArguments</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildCommand</key>
|
||||
<value>cs-make</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildLocation</key>
|
||||
<value>${workspace_loc:/bladeRF}</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
|
||||
<value>clean</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.contents</key>
|
||||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
|
||||
<value>false</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
|
||||
<value>DEBUG=y all</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.stopOnError</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
|
|||
|
|
@ -1,33 +1,33 @@
|
|||
<?xml version="1.0" encoding="us-ascii"?>
|
||||
<CyXmlSerializer>
|
||||
<!--This file is machine generated and read. It is not intended to be edited by hand.-->
|
||||
<!--Due to this, there is no schema for this file.-->
|
||||
<CyGuid_7d237aff-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtGpif2exe" version="2">
|
||||
<CyGuid_7d237b00-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtProject" version="1">
|
||||
<ProjectDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2model.xml" persistent="./projectfiles/gpif2model.xml" target="7d237b02-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2view.xml" persistent="./projectfiles/gpif2view.xml" target="7d237b01-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2timingsimulation.xml" persistent="./projectfiles/gpif2timingsimulation.xml" target="3ad448c6-d155-4f76-a7fb-e760cd8e6feb">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</ProjectDocs>
|
||||
<OutputDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\waste.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\c4loader.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</OutputDocs>
|
||||
</CyGuid_7d237b00-d944-11da-aaba-00164119d63b>
|
||||
<Settings>
|
||||
<Setting name="GPIF2_OutputName" value="cyfxgpif2config" />
|
||||
<Setting name="GPIF2_OutputLocation" value="${ProjectDir}" />
|
||||
<Setting name="GPIF2_Template" value="cygpif2cheadertemplate" />
|
||||
</Settings>
|
||||
</CyGuid_7d237aff-d944-11da-aaba-00164119d63b>
|
||||
<?xml version="1.0" encoding="us-ascii"?>
|
||||
<CyXmlSerializer>
|
||||
<!--This file is machine generated and read. It is not intended to be edited by hand.-->
|
||||
<!--Due to this, there is no schema for this file.-->
|
||||
<CyGuid_7d237aff-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtGpif2exe" version="2">
|
||||
<CyGuid_7d237b00-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtProject" version="1">
|
||||
<ProjectDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2model.xml" persistent="./projectfiles/gpif2model.xml" target="7d237b02-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2view.xml" persistent="./projectfiles/gpif2view.xml" target="7d237b01-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2timingsimulation.xml" persistent="./projectfiles/gpif2timingsimulation.xml" target="3ad448c6-d155-4f76-a7fb-e760cd8e6feb">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</ProjectDocs>
|
||||
<OutputDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\waste.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\c4loader.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</OutputDocs>
|
||||
</CyGuid_7d237b00-d944-11da-aaba-00164119d63b>
|
||||
<Settings>
|
||||
<Setting name="GPIF2_OutputName" value="cyfxgpif2config" />
|
||||
<Setting name="GPIF2_OutputLocation" value="${ProjectDir}" />
|
||||
<Setting name="GPIF2_Template" value="cygpif2cheadertemplate" />
|
||||
</Settings>
|
||||
</CyGuid_7d237aff-d944-11da-aaba-00164119d63b>
|
||||
</CyXmlSerializer>
|
||||
|
|
@ -1,127 +1,127 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIIModel version="3">
|
||||
<InterfaceDefination>
|
||||
<InterfaceSetting>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<I2CEnabled>False</I2CEnabled>
|
||||
<SPIEnabled>False</SPIEnabled>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<ADMuxedEnabled>False</ADMuxedEnabled>
|
||||
<InterfaceType>Master</InterfaceType>
|
||||
<CommunicationType>Synchronous</CommunicationType>
|
||||
<ClockSource>Internal</ClockSource>
|
||||
<ClockEdge>Positive</ClockEdge>
|
||||
<Endianness>LittleEndian</Endianness>
|
||||
<DataBusWidth>Bit16</DataBusWidth>
|
||||
<AddressBuswidth>0</AddressBuswidth>
|
||||
</InterfaceSetting>
|
||||
</InterfaceDefination>
|
||||
<Signals>
|
||||
<Signal ElementId="OUTPUT0" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>OUTPUT0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_26</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Beta</Delay>
|
||||
<AssetionType>Toggle</AssetionType>
|
||||
</Signal>
|
||||
</Signals>
|
||||
<StateMachine>
|
||||
<AddressCounter />
|
||||
<DataCounter />
|
||||
<ControlCounter />
|
||||
<AddressComparator />
|
||||
<DataComparator />
|
||||
<ControlComparator />
|
||||
<DRQ />
|
||||
<AddrData />
|
||||
<State ElementId="STARTSTATE0" StateType="StartState">
|
||||
<DisplayName>START</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE0" StateType="NormalState">
|
||||
<DisplayName>STATE0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE1" StateType="NormalState">
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE4" StateType="NormalState">
|
||||
<DisplayName>STATE2</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE5" StateType="NormalState">
|
||||
<DisplayName>STATE5</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>OUTPUT0</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE3" StateType="NormalState">
|
||||
<DisplayName>STATE1</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>OUTPUT0</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE6" StateType="NormalState">
|
||||
<DisplayName>STATE4</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<Transition ElementId="TRANSITION0" SourceState="STATE1" DestinationState="STATE0" Equation="DMA_RDY_TH3" />
|
||||
<Transition ElementId="TRANSITION1" SourceState="STARTSTATE0" DestinationState="STATE1" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION5" SourceState="STATE0" DestinationState="STATE3" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION6" SourceState="STATE3" DestinationState="STATE4" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION7" SourceState="STATE4" DestinationState="STATE5" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION8" SourceState="STATE5" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION9" SourceState="STATE6" DestinationState="STATE0" Equation="DMA_RDY_TH3" />
|
||||
</StateMachine>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIIModel version="3">
|
||||
<InterfaceDefination>
|
||||
<InterfaceSetting>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<I2CEnabled>False</I2CEnabled>
|
||||
<SPIEnabled>False</SPIEnabled>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<ADMuxedEnabled>False</ADMuxedEnabled>
|
||||
<InterfaceType>Master</InterfaceType>
|
||||
<CommunicationType>Synchronous</CommunicationType>
|
||||
<ClockSource>Internal</ClockSource>
|
||||
<ClockEdge>Positive</ClockEdge>
|
||||
<Endianness>LittleEndian</Endianness>
|
||||
<DataBusWidth>Bit16</DataBusWidth>
|
||||
<AddressBuswidth>0</AddressBuswidth>
|
||||
</InterfaceSetting>
|
||||
</InterfaceDefination>
|
||||
<Signals>
|
||||
<Signal ElementId="OUTPUT0" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>OUTPUT0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_26</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Beta</Delay>
|
||||
<AssetionType>Toggle</AssetionType>
|
||||
</Signal>
|
||||
</Signals>
|
||||
<StateMachine>
|
||||
<AddressCounter />
|
||||
<DataCounter />
|
||||
<ControlCounter />
|
||||
<AddressComparator />
|
||||
<DataComparator />
|
||||
<ControlComparator />
|
||||
<DRQ />
|
||||
<AddrData />
|
||||
<State ElementId="STARTSTATE0" StateType="StartState">
|
||||
<DisplayName>START</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE0" StateType="NormalState">
|
||||
<DisplayName>STATE0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE1" StateType="NormalState">
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE4" StateType="NormalState">
|
||||
<DisplayName>STATE2</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE5" StateType="NormalState">
|
||||
<DisplayName>STATE5</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>OUTPUT0</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE3" StateType="NormalState">
|
||||
<DisplayName>STATE1</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>OUTPUT0</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE6" StateType="NormalState">
|
||||
<DisplayName>STATE4</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DrivePreviousSetData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<Transition ElementId="TRANSITION0" SourceState="STATE1" DestinationState="STATE0" Equation="DMA_RDY_TH3" />
|
||||
<Transition ElementId="TRANSITION1" SourceState="STARTSTATE0" DestinationState="STATE1" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION5" SourceState="STATE0" DestinationState="STATE3" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION6" SourceState="STATE3" DestinationState="STATE4" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION7" SourceState="STATE4" DestinationState="STATE5" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION8" SourceState="STATE5" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION9" SourceState="STATE6" DestinationState="STATE0" Equation="DMA_RDY_TH3" />
|
||||
</StateMachine>
|
||||
</GPIFIIModel>
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIITimingSimulation version="1">
|
||||
<Clock>100</Clock>
|
||||
<BufferSize>512</BufferSize>
|
||||
<WaterMark>0</WaterMark>
|
||||
<Scenario Name="SCENARIO0" CurrentThread="Thread3">
|
||||
<State StateId="STARTSTATE0" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
<State StateId="STATE3" WaitNumber="0" />
|
||||
<State StateId="STATE4" WaitNumber="0" />
|
||||
<State StateId="STATE5" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
</Scenario>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIITimingSimulation version="1">
|
||||
<Clock>100</Clock>
|
||||
<BufferSize>512</BufferSize>
|
||||
<WaterMark>0</WaterMark>
|
||||
<Scenario Name="SCENARIO0" CurrentThread="Thread3">
|
||||
<State StateId="STARTSTATE0" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
<State StateId="STATE3" WaitNumber="0" />
|
||||
<State StateId="STATE4" WaitNumber="0" />
|
||||
<State StateId="STATE5" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
</Scenario>
|
||||
</GPIFIITimingSimulation>
|
||||
|
|
@ -1,161 +1,161 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="4">
|
||||
<CyStates>
|
||||
<CyNormalState>
|
||||
<Left>515</Left>
|
||||
<Top>214.446666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE0</Name>
|
||||
<DisplayName>STATE0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>225</Left>
|
||||
<Top>137.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE1</Name>
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>679</Left>
|
||||
<Top>96.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE3</Name>
|
||||
<DisplayName>STATE1</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>885</Left>
|
||||
<Top>36.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE4</Name>
|
||||
<DisplayName>STATE2</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1104</Left>
|
||||
<Top>100.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE5</Name>
|
||||
<DisplayName>STATE3</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1265</Left>
|
||||
<Top>233.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE6</Name>
|
||||
<DisplayName>STATE4</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyStartState>
|
||||
<Left>29</Left>
|
||||
<Top>18.4466666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STARTSTATE0</Name>
|
||||
<DisplayName>START</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyStartState>
|
||||
</CyStates>
|
||||
<CyTransitions>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION9</Name>
|
||||
<TransitionEquation>DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION8</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE5</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION7</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE4</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION6</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE3</SourceName>
|
||||
<SinkName>STATE4</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION5</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE0</SourceName>
|
||||
<SinkName>STATE3</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION1</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STARTSTATE0</SourceName>
|
||||
<SinkName>STATE1</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION0</Name>
|
||||
<TransitionEquation>DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE1</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
</CyTransitions>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="4">
|
||||
<CyStates>
|
||||
<CyNormalState>
|
||||
<Left>515</Left>
|
||||
<Top>214.446666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE0</Name>
|
||||
<DisplayName>STATE0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>225</Left>
|
||||
<Top>137.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE1</Name>
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>679</Left>
|
||||
<Top>96.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE3</Name>
|
||||
<DisplayName>STATE1</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>885</Left>
|
||||
<Top>36.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE4</Name>
|
||||
<DisplayName>STATE2</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1104</Left>
|
||||
<Top>100.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE5</Name>
|
||||
<DisplayName>STATE3</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1265</Left>
|
||||
<Top>233.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE6</Name>
|
||||
<DisplayName>STATE4</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyStartState>
|
||||
<Left>29</Left>
|
||||
<Top>18.4466666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STARTSTATE0</Name>
|
||||
<DisplayName>START</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyStartState>
|
||||
</CyStates>
|
||||
<CyTransitions>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION9</Name>
|
||||
<TransitionEquation>DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION8</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE5</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION7</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE4</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION6</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE3</SourceName>
|
||||
<SinkName>STATE4</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION5</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE0</SourceName>
|
||||
<SinkName>STATE3</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION1</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STARTSTATE0</SourceName>
|
||||
<SinkName>STATE1</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION0</Name>
|
||||
<TransitionEquation>DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE1</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
</CyTransitions>
|
||||
</Root>
|
||||
|
|
@ -1,30 +1,30 @@
|
|||
<?xml version="1.0" encoding="us-ascii"?>
|
||||
<CyXmlSerializer>
|
||||
<!--This file is machine generated and read. It is not intended to be edited by hand.-->
|
||||
<!--Due to this, there is no schema for this file.-->
|
||||
<CyGuid_7d237aff-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtGpif2exe" version="2">
|
||||
<CyGuid_7d237b00-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtProject" version="1">
|
||||
<ProjectDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2model.xml" persistent="./projectfiles/gpif2model.xml" target="7d237b02-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2view.xml" persistent="./projectfiles/gpif2view.xml" target="7d237b01-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2timingsimulation.xml" persistent="./projectfiles/gpif2timingsimulation.xml" target="3ad448c6-d155-4f76-a7fb-e760cd8e6feb">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</ProjectDocs>
|
||||
<OutputDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\RFlink.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</OutputDocs>
|
||||
</CyGuid_7d237b00-d944-11da-aaba-00164119d63b>
|
||||
<Settings>
|
||||
<Setting name="GPIF2_OutputName" value="cyfxgpif2config" />
|
||||
<Setting name="GPIF2_OutputLocation" value="${ProjectDir}" />
|
||||
<Setting name="GPIF2_Template" value="cygpif2cheadertemplate" />
|
||||
</Settings>
|
||||
</CyGuid_7d237aff-d944-11da-aaba-00164119d63b>
|
||||
<?xml version="1.0" encoding="us-ascii"?>
|
||||
<CyXmlSerializer>
|
||||
<!--This file is machine generated and read. It is not intended to be edited by hand.-->
|
||||
<!--Due to this, there is no schema for this file.-->
|
||||
<CyGuid_7d237aff-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtGpif2exe" version="2">
|
||||
<CyGuid_7d237b00-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtProject" version="1">
|
||||
<ProjectDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2model.xml" persistent="./projectfiles/gpif2model.xml" target="7d237b02-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2view.xml" persistent="./projectfiles/gpif2view.xml" target="7d237b01-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="gpif2timingsimulation.xml" persistent="./projectfiles/gpif2timingsimulation.xml" target="3ad448c6-d155-4f76-a7fb-e760cd8e6feb">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</ProjectDocs>
|
||||
<OutputDocs>
|
||||
<CyGuid_7d237b03-d944-11da-aaba-00164119d63b type_name="CyGpif2Designer.Common.PrjMgmt.Model.CyPrjMgmtItem" name="cyfxgpif2config.h" persistent="C:\Users\Robert\Documents\GPIF II Designer\RFlink.cydsn\cyfxgpif2config.h" target="7d237afd-d944-11da-aaba-00164119d63b">
|
||||
<Hidden v="False" />
|
||||
</CyGuid_7d237b03-d944-11da-aaba-00164119d63b>
|
||||
</OutputDocs>
|
||||
</CyGuid_7d237b00-d944-11da-aaba-00164119d63b>
|
||||
<Settings>
|
||||
<Setting name="GPIF2_OutputName" value="cyfxgpif2config" />
|
||||
<Setting name="GPIF2_OutputLocation" value="${ProjectDir}" />
|
||||
<Setting name="GPIF2_Template" value="cygpif2cheadertemplate" />
|
||||
</Settings>
|
||||
</CyGuid_7d237aff-d944-11da-aaba-00164119d63b>
|
||||
</CyXmlSerializer>
|
||||
|
|
@ -1,208 +1,208 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIIModel version="3">
|
||||
<InterfaceDefination>
|
||||
<InterfaceSetting>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<I2CEnabled>False</I2CEnabled>
|
||||
<SPIEnabled>False</SPIEnabled>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<ADMuxedEnabled>False</ADMuxedEnabled>
|
||||
<InterfaceType>Master</InterfaceType>
|
||||
<CommunicationType>Synchronous</CommunicationType>
|
||||
<ClockSource>Internal</ClockSource>
|
||||
<ClockEdge>Positive</ClockEdge>
|
||||
<Endianness>LittleEndian</Endianness>
|
||||
<DataBusWidth>Bit32</DataBusWidth>
|
||||
<AddressBuswidth>0</AddressBuswidth>
|
||||
</InterfaceSetting>
|
||||
</InterfaceDefination>
|
||||
<Signals>
|
||||
<Signal ElementId="INPUT0" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>RX_0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_17</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT1" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>RX_1</DisplayName>
|
||||
<GPIOPinNumber>GPIO_18</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT2" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>TX_2</DisplayName>
|
||||
<GPIOPinNumber>GPIO_19</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT3" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>TX_3</DisplayName>
|
||||
<GPIOPinNumber>GPIO_20</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT0" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_RX</DisplayName>
|
||||
<GPIOPinNumber>GPIO_21</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG0" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_25</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_0_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG1" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG1</DisplayName>
|
||||
<GPIOPinNumber>GPIO_29</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_1_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG2" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG2</DisplayName>
|
||||
<GPIOPinNumber>GPIO_27</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_2_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG3" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG3</DisplayName>
|
||||
<GPIOPinNumber>GPIO_28</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_3_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT1" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_TX</DisplayName>
|
||||
<GPIOPinNumber>GPIO_22</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT2" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_DONE</DisplayName>
|
||||
<GPIOPinNumber>GPIO_23</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT3" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>SYS_RST</DisplayName>
|
||||
<GPIOPinNumber>GPIO_24</GPIOPinNumber>
|
||||
<IntialValue>High</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Toggle</AssetionType>
|
||||
</Signal>
|
||||
</Signals>
|
||||
<StateMachine>
|
||||
<AddressCounter />
|
||||
<DataCounter />
|
||||
<ControlCounter />
|
||||
<AddressComparator />
|
||||
<DataComparator />
|
||||
<ControlComparator />
|
||||
<DRQ />
|
||||
<AddrData />
|
||||
<State ElementId="STARTSTATE0" StateType="StartState">
|
||||
<DisplayName>START</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE0" StateType="NormalState">
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>SYS_RST</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE1" StateType="NormalState">
|
||||
<DisplayName>IF_RX_0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="IN_DATA0" ActionType="IN_DATA">
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread0</ThreadNumber>
|
||||
<SampleData>True</SampleData>
|
||||
<WriteDataIntoDataSink>True</WriteDataIntoDataSink>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE2" StateType="NormalState">
|
||||
<DisplayName>IF_RX_1</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="IN_DATA0" ActionType="IN_DATA">
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread1</ThreadNumber>
|
||||
<SampleData>True</SampleData>
|
||||
<WriteDataIntoDataSink>True</WriteDataIntoDataSink>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE10" StateType="NormalState">
|
||||
<DisplayName>IF_TX_2</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread2</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE5" StateType="NormalState">
|
||||
<DisplayName>DONE</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE6" StateType="NormalState">
|
||||
<DisplayName>WAIT_0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>DMA_DONE</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE12" StateType="NormalState">
|
||||
<DisplayName>IF_TX_3</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE13" StateType="NormalState">
|
||||
<DisplayName>IF_TX</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE11" StateType="NormalState">
|
||||
<DisplayName>IF_RX</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<Transition ElementId="TRANSITION0" SourceState="STARTSTATE0" DestinationState="STATE0" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION23" SourceState="STATE13" DestinationState="STATE10" Equation="TX_2" />
|
||||
<Transition ElementId="TRANSITION1" SourceState="STATE1" DestinationState="STATE5" Equation="!DMA_RDY_TH0" />
|
||||
<Transition ElementId="TRANSITION2" SourceState="STATE2" DestinationState="STATE5" Equation="!DMA_RDY_TH1" />
|
||||
<Transition ElementId="TRANSITION17" SourceState="STATE10" DestinationState="STATE5" Equation="!DMA_RDY_TH2" />
|
||||
<Transition ElementId="TRANSITION24" SourceState="STATE13" DestinationState="STATE12" Equation="TX_3" />
|
||||
<Transition ElementId="TRANSITION19" SourceState="STATE11" DestinationState="STATE1" Equation="RX_0" />
|
||||
<Transition ElementId="TRANSITION12" SourceState="STATE0" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION22" SourceState="STATE6" DestinationState="STATE13" Equation="TX_2|TX_3" />
|
||||
<Transition ElementId="TRANSITION21" SourceState="STATE6" DestinationState="STATE11" Equation="RX_0|RX_1" />
|
||||
<Transition ElementId="TRANSITION25" SourceState="STATE12" DestinationState="STATE5" Equation="!DMA_RDY_TH3" />
|
||||
<Transition ElementId="TRANSITION20" SourceState="STATE11" DestinationState="STATE2" Equation="RX_1" />
|
||||
<Transition ElementId="TRANSITION26" SourceState="STATE5" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
</StateMachine>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIIModel version="3">
|
||||
<InterfaceDefination>
|
||||
<InterfaceSetting>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<I2CEnabled>False</I2CEnabled>
|
||||
<SPIEnabled>False</SPIEnabled>
|
||||
<I2SEnabled>False</I2SEnabled>
|
||||
<ADMuxedEnabled>False</ADMuxedEnabled>
|
||||
<InterfaceType>Master</InterfaceType>
|
||||
<CommunicationType>Synchronous</CommunicationType>
|
||||
<ClockSource>Internal</ClockSource>
|
||||
<ClockEdge>Positive</ClockEdge>
|
||||
<Endianness>LittleEndian</Endianness>
|
||||
<DataBusWidth>Bit32</DataBusWidth>
|
||||
<AddressBuswidth>0</AddressBuswidth>
|
||||
</InterfaceSetting>
|
||||
</InterfaceDefination>
|
||||
<Signals>
|
||||
<Signal ElementId="INPUT0" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>RX_0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_17</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT1" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>RX_1</DisplayName>
|
||||
<GPIOPinNumber>GPIO_18</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT2" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>TX_2</DisplayName>
|
||||
<GPIOPinNumber>GPIO_19</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="INPUT3" SignalType="Input" SpecialFunction="None">
|
||||
<DisplayName>TX_3</DisplayName>
|
||||
<GPIOPinNumber>GPIO_20</GPIOPinNumber>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT0" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_RX</DisplayName>
|
||||
<GPIOPinNumber>GPIO_21</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG0" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG0</DisplayName>
|
||||
<GPIOPinNumber>GPIO_25</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_0_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG1" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG1</DisplayName>
|
||||
<GPIOPinNumber>GPIO_29</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_1_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG2" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG2</DisplayName>
|
||||
<GPIOPinNumber>GPIO_27</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_2_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="FLAG3" SignalType="Flags" SpecialFunction="None">
|
||||
<DisplayName>FLAG3</DisplayName>
|
||||
<GPIOPinNumber>GPIO_28</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Flags>Thread_3_DMA_Ready</Flags>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT1" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_TX</DisplayName>
|
||||
<GPIOPinNumber>GPIO_22</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT2" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>DMA_DONE</DisplayName>
|
||||
<GPIOPinNumber>GPIO_23</GPIOPinNumber>
|
||||
<IntialValue>Low</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Assert</AssetionType>
|
||||
</Signal>
|
||||
<Signal ElementId="OUTPUT3" SignalType="Output" SpecialFunction="None">
|
||||
<DisplayName>SYS_RST</DisplayName>
|
||||
<GPIOPinNumber>GPIO_24</GPIOPinNumber>
|
||||
<IntialValue>High</IntialValue>
|
||||
<Polarity>ActiveHigh</Polarity>
|
||||
<Delay>Alpha</Delay>
|
||||
<AssetionType>Toggle</AssetionType>
|
||||
</Signal>
|
||||
</Signals>
|
||||
<StateMachine>
|
||||
<AddressCounter />
|
||||
<DataCounter />
|
||||
<ControlCounter />
|
||||
<AddressComparator />
|
||||
<DataComparator />
|
||||
<ControlComparator />
|
||||
<DRQ />
|
||||
<AddrData />
|
||||
<State ElementId="STARTSTATE0" StateType="StartState">
|
||||
<DisplayName>START</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE0" StateType="NormalState">
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>SYS_RST</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE1" StateType="NormalState">
|
||||
<DisplayName>IF_RX_0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="IN_DATA0" ActionType="IN_DATA">
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread0</ThreadNumber>
|
||||
<SampleData>True</SampleData>
|
||||
<WriteDataIntoDataSink>True</WriteDataIntoDataSink>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE2" StateType="NormalState">
|
||||
<DisplayName>IF_RX_1</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="IN_DATA0" ActionType="IN_DATA">
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread1</ThreadNumber>
|
||||
<SampleData>True</SampleData>
|
||||
<WriteDataIntoDataSink>True</WriteDataIntoDataSink>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE10" StateType="NormalState">
|
||||
<DisplayName>IF_TX_2</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread2</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE5" StateType="NormalState">
|
||||
<DisplayName>DONE</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE6" StateType="NormalState">
|
||||
<DisplayName>WAIT_0</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_GPIO0" ActionType="DR_GPIO">
|
||||
<ControlPinName>DMA_DONE</ControlPinName>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE12" StateType="NormalState">
|
||||
<DisplayName>IF_TX_3</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
<Action ElementId="DR_DATA0" ActionType="DR_DATA">
|
||||
<IsDataCounterConnected>False</IsDataCounterConnected>
|
||||
<DataSourceSink>Socket</DataSourceSink>
|
||||
<ThreadNumber>Thread3</ThreadNumber>
|
||||
<SyncBurstMode>Enable</SyncBurstMode>
|
||||
<DriveNewData>DriveNewData</DriveNewData>
|
||||
<UpdateSource>True</UpdateSource>
|
||||
</Action>
|
||||
</State>
|
||||
<State ElementId="STATE13" StateType="NormalState">
|
||||
<DisplayName>IF_TX</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<State ElementId="STATE11" StateType="NormalState">
|
||||
<DisplayName>IF_RX</DisplayName>
|
||||
<RepeatUntillNextTransition>True</RepeatUntillNextTransition>
|
||||
<RepeatCount>0</RepeatCount>
|
||||
</State>
|
||||
<Transition ElementId="TRANSITION0" SourceState="STARTSTATE0" DestinationState="STATE0" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION23" SourceState="STATE13" DestinationState="STATE10" Equation="TX_2" />
|
||||
<Transition ElementId="TRANSITION1" SourceState="STATE1" DestinationState="STATE5" Equation="!DMA_RDY_TH0" />
|
||||
<Transition ElementId="TRANSITION2" SourceState="STATE2" DestinationState="STATE5" Equation="!DMA_RDY_TH1" />
|
||||
<Transition ElementId="TRANSITION17" SourceState="STATE10" DestinationState="STATE5" Equation="!DMA_RDY_TH2" />
|
||||
<Transition ElementId="TRANSITION24" SourceState="STATE13" DestinationState="STATE12" Equation="TX_3" />
|
||||
<Transition ElementId="TRANSITION19" SourceState="STATE11" DestinationState="STATE1" Equation="RX_0" />
|
||||
<Transition ElementId="TRANSITION12" SourceState="STATE0" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
<Transition ElementId="TRANSITION22" SourceState="STATE6" DestinationState="STATE13" Equation="TX_2|TX_3" />
|
||||
<Transition ElementId="TRANSITION21" SourceState="STATE6" DestinationState="STATE11" Equation="RX_0|RX_1" />
|
||||
<Transition ElementId="TRANSITION25" SourceState="STATE12" DestinationState="STATE5" Equation="!DMA_RDY_TH3" />
|
||||
<Transition ElementId="TRANSITION20" SourceState="STATE11" DestinationState="STATE2" Equation="RX_1" />
|
||||
<Transition ElementId="TRANSITION26" SourceState="STATE5" DestinationState="STATE6" Equation="LOGIC_ONE" />
|
||||
</StateMachine>
|
||||
</GPIFIIModel>
|
||||
|
|
@ -1,37 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIITimingSimulation version="1">
|
||||
<Clock>100</Clock>
|
||||
<BufferSize>16</BufferSize>
|
||||
<WaterMark>12</WaterMark>
|
||||
<Scenario Name="SCENARIO0" CurrentThread="Thread0">
|
||||
<State StateId="STARTSTATE0" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE11" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE5" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
</Scenario>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GPIFIITimingSimulation version="1">
|
||||
<Clock>100</Clock>
|
||||
<BufferSize>16</BufferSize>
|
||||
<WaterMark>12</WaterMark>
|
||||
<Scenario Name="SCENARIO0" CurrentThread="Thread0">
|
||||
<State StateId="STARTSTATE0" WaitNumber="0" />
|
||||
<State StateId="STATE0" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE11" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE1" WaitNumber="0" />
|
||||
<State StateId="STATE5" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
<State StateId="STATE6" WaitNumber="0" />
|
||||
</Scenario>
|
||||
</GPIFIITimingSimulation>
|
||||
|
|
@ -1,260 +1,260 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="4">
|
||||
<CyStates>
|
||||
<CyNormalState>
|
||||
<Left>224</Left>
|
||||
<Top>274.446666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE0</Name>
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>771</Left>
|
||||
<Top>129.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE1</Name>
|
||||
<DisplayName>IF_RX_0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>770</Left>
|
||||
<Top>237.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE2</Name>
|
||||
<DisplayName>IF_RX_1</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1024</Left>
|
||||
<Top>262.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE5</Name>
|
||||
<DisplayName>DONE</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>491</Left>
|
||||
<Top>271.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE6</Name>
|
||||
<DisplayName>WAIT_0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>771</Left>
|
||||
<Top>357.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE10</Name>
|
||||
<DisplayName>IF_TX_2</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>635</Left>
|
||||
<Top>166.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE11</Name>
|
||||
<DisplayName>IF_RX</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>772</Left>
|
||||
<Top>470.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE12</Name>
|
||||
<DisplayName>IF_TX_3</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>631</Left>
|
||||
<Top>418.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE13</Name>
|
||||
<DisplayName>IF_TX</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyStartState>
|
||||
<Left>29</Left>
|
||||
<Top>18.4466666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STARTSTATE0</Name>
|
||||
<DisplayName>START</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyStartState>
|
||||
</CyStates>
|
||||
<CyTransitions>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION26</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE5</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION25</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE12</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION24</Name>
|
||||
<TransitionEquation>TX_3</TransitionEquation>
|
||||
<SourceName>STATE13</SourceName>
|
||||
<SinkName>STATE12</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION23</Name>
|
||||
<TransitionEquation>TX_2</TransitionEquation>
|
||||
<SourceName>STATE13</SourceName>
|
||||
<SinkName>STATE10</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION22</Name>
|
||||
<TransitionEquation>TX_2|TX_3</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE13</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION21</Name>
|
||||
<TransitionEquation>RX_0|RX_1</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE11</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION20</Name>
|
||||
<TransitionEquation>RX_1</TransitionEquation>
|
||||
<SourceName>STATE11</SourceName>
|
||||
<SinkName>STATE2</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION19</Name>
|
||||
<TransitionEquation>RX_0</TransitionEquation>
|
||||
<SourceName>STATE11</SourceName>
|
||||
<SinkName>STATE1</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION17</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH2</TransitionEquation>
|
||||
<SourceName>STATE10</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION12</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE0</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION2</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH1</TransitionEquation>
|
||||
<SourceName>STATE2</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION1</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH0</TransitionEquation>
|
||||
<SourceName>STATE1</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION0</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STARTSTATE0</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
</CyTransitions>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="4">
|
||||
<CyStates>
|
||||
<CyNormalState>
|
||||
<Left>224</Left>
|
||||
<Top>274.446666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE0</Name>
|
||||
<DisplayName>INIT</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>771</Left>
|
||||
<Top>129.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE1</Name>
|
||||
<DisplayName>IF_RX_0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>770</Left>
|
||||
<Top>237.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE2</Name>
|
||||
<DisplayName>IF_RX_1</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>1024</Left>
|
||||
<Top>262.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE5</Name>
|
||||
<DisplayName>DONE</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>491</Left>
|
||||
<Top>271.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE6</Name>
|
||||
<DisplayName>WAIT_0</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>771</Left>
|
||||
<Top>357.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE10</Name>
|
||||
<DisplayName>IF_TX_2</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>635</Left>
|
||||
<Top>166.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE11</Name>
|
||||
<DisplayName>IF_RX</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>772</Left>
|
||||
<Top>470.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE12</Name>
|
||||
<DisplayName>IF_TX_3</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyNormalState>
|
||||
<Left>631</Left>
|
||||
<Top>418.41</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STATE13</Name>
|
||||
<DisplayName>IF_TX</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyNormalState>
|
||||
<CyStartState>
|
||||
<Left>29</Left>
|
||||
<Top>18.4466666666667</Top>
|
||||
<Width>83</Width>
|
||||
<Height>70</Height>
|
||||
<Name>STARTSTATE0</Name>
|
||||
<DisplayName>START</DisplayName>
|
||||
<zIndex>1</zIndex>
|
||||
<IsGroup>False</IsGroup>
|
||||
<ParentID>00000000-0000-0000-0000-000000000000</ParentID>
|
||||
</CyStartState>
|
||||
</CyStates>
|
||||
<CyTransitions>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION26</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE5</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION25</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH3</TransitionEquation>
|
||||
<SourceName>STATE12</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION24</Name>
|
||||
<TransitionEquation>TX_3</TransitionEquation>
|
||||
<SourceName>STATE13</SourceName>
|
||||
<SinkName>STATE12</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION23</Name>
|
||||
<TransitionEquation>TX_2</TransitionEquation>
|
||||
<SourceName>STATE13</SourceName>
|
||||
<SinkName>STATE10</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION22</Name>
|
||||
<TransitionEquation>TX_2|TX_3</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE13</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION21</Name>
|
||||
<TransitionEquation>RX_0|RX_1</TransitionEquation>
|
||||
<SourceName>STATE6</SourceName>
|
||||
<SinkName>STATE11</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION20</Name>
|
||||
<TransitionEquation>RX_1</TransitionEquation>
|
||||
<SourceName>STATE11</SourceName>
|
||||
<SinkName>STATE2</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION19</Name>
|
||||
<TransitionEquation>RX_0</TransitionEquation>
|
||||
<SourceName>STATE11</SourceName>
|
||||
<SinkName>STATE1</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION17</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH2</TransitionEquation>
|
||||
<SourceName>STATE10</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION12</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STATE0</SourceName>
|
||||
<SinkName>STATE6</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION2</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH1</TransitionEquation>
|
||||
<SourceName>STATE2</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION1</Name>
|
||||
<TransitionEquation>!DMA_RDY_TH0</TransitionEquation>
|
||||
<SourceName>STATE1</SourceName>
|
||||
<SinkName>STATE5</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
<CyTransition>
|
||||
<Name>TRANSITION0</Name>
|
||||
<TransitionEquation>LOGIC_ONE</TransitionEquation>
|
||||
<SourceName>STARTSTATE0</SourceName>
|
||||
<SinkName>STATE0</SinkName>
|
||||
<SourceConnectorName>Connector</SourceConnectorName>
|
||||
<SinkConnectorName>Connector</SinkConnectorName>
|
||||
<SourceArrowSymbol>None</SourceArrowSymbol>
|
||||
<SinkArrowSymbol>Arrow</SinkArrowSymbol>
|
||||
<zIndex>0</zIndex>
|
||||
</CyTransition>
|
||||
</CyTransitions>
|
||||
</Root>
|
||||
|
|
@ -1,61 +1,61 @@
|
|||
BANDWIDTH_TYPE=AUTO
|
||||
CLK0_DIVIDE_BY=88
|
||||
CLK0_DUTY_CYCLE=50
|
||||
CLK0_MULTIPLY_BY=105
|
||||
CLK0_PHASE_SHIFT=0
|
||||
COMPENSATE_CLOCK=CLK0
|
||||
INCLK0_INPUT_FREQUENCY=26041
|
||||
INTENDED_DEVICE_FAMILY="Cyclone IV E"
|
||||
LPM_TYPE=altpll
|
||||
OPERATION_MODE=NORMAL
|
||||
PLL_TYPE=AUTO
|
||||
PORT_ACTIVECLOCK=PORT_UNUSED
|
||||
PORT_ARESET=PORT_USED
|
||||
PORT_CLKBAD0=PORT_UNUSED
|
||||
PORT_CLKBAD1=PORT_UNUSED
|
||||
PORT_CLKLOSS=PORT_UNUSED
|
||||
PORT_CLKSWITCH=PORT_UNUSED
|
||||
PORT_CONFIGUPDATE=PORT_UNUSED
|
||||
PORT_FBIN=PORT_UNUSED
|
||||
PORT_INCLK0=PORT_USED
|
||||
PORT_INCLK1=PORT_UNUSED
|
||||
PORT_LOCKED=PORT_USED
|
||||
PORT_PFDENA=PORT_UNUSED
|
||||
PORT_PHASECOUNTERSELECT=PORT_UNUSED
|
||||
PORT_PHASEDONE=PORT_UNUSED
|
||||
PORT_PHASESTEP=PORT_UNUSED
|
||||
PORT_PHASEUPDOWN=PORT_UNUSED
|
||||
PORT_PLLENA=PORT_UNUSED
|
||||
PORT_SCANACLR=PORT_UNUSED
|
||||
PORT_SCANCLK=PORT_UNUSED
|
||||
PORT_SCANCLKENA=PORT_UNUSED
|
||||
PORT_SCANDATA=PORT_UNUSED
|
||||
PORT_SCANDATAOUT=PORT_UNUSED
|
||||
PORT_SCANDONE=PORT_UNUSED
|
||||
PORT_SCANREAD=PORT_UNUSED
|
||||
PORT_SCANWRITE=PORT_UNUSED
|
||||
PORT_clk0=PORT_USED
|
||||
PORT_clk1=PORT_UNUSED
|
||||
PORT_clk2=PORT_UNUSED
|
||||
PORT_clk3=PORT_UNUSED
|
||||
PORT_clk4=PORT_UNUSED
|
||||
PORT_clk5=PORT_UNUSED
|
||||
PORT_clkena0=PORT_UNUSED
|
||||
PORT_clkena1=PORT_UNUSED
|
||||
PORT_clkena2=PORT_UNUSED
|
||||
PORT_clkena3=PORT_UNUSED
|
||||
PORT_clkena4=PORT_UNUSED
|
||||
PORT_clkena5=PORT_UNUSED
|
||||
PORT_extclk0=PORT_UNUSED
|
||||
PORT_extclk1=PORT_UNUSED
|
||||
PORT_extclk2=PORT_UNUSED
|
||||
PORT_extclk3=PORT_UNUSED
|
||||
SELF_RESET_ON_LOSS_LOCK=OFF
|
||||
WIDTH_CLOCK=5
|
||||
DEVICE_FAMILY="Cyclone IV E"
|
||||
CBX_AUTO_BLACKBOX=ALL
|
||||
areset
|
||||
inclk
|
||||
inclk
|
||||
clk
|
||||
locked
|
||||
BANDWIDTH_TYPE=AUTO
|
||||
CLK0_DIVIDE_BY=88
|
||||
CLK0_DUTY_CYCLE=50
|
||||
CLK0_MULTIPLY_BY=105
|
||||
CLK0_PHASE_SHIFT=0
|
||||
COMPENSATE_CLOCK=CLK0
|
||||
INCLK0_INPUT_FREQUENCY=26041
|
||||
INTENDED_DEVICE_FAMILY="Cyclone IV E"
|
||||
LPM_TYPE=altpll
|
||||
OPERATION_MODE=NORMAL
|
||||
PLL_TYPE=AUTO
|
||||
PORT_ACTIVECLOCK=PORT_UNUSED
|
||||
PORT_ARESET=PORT_USED
|
||||
PORT_CLKBAD0=PORT_UNUSED
|
||||
PORT_CLKBAD1=PORT_UNUSED
|
||||
PORT_CLKLOSS=PORT_UNUSED
|
||||
PORT_CLKSWITCH=PORT_UNUSED
|
||||
PORT_CONFIGUPDATE=PORT_UNUSED
|
||||
PORT_FBIN=PORT_UNUSED
|
||||
PORT_INCLK0=PORT_USED
|
||||
PORT_INCLK1=PORT_UNUSED
|
||||
PORT_LOCKED=PORT_USED
|
||||
PORT_PFDENA=PORT_UNUSED
|
||||
PORT_PHASECOUNTERSELECT=PORT_UNUSED
|
||||
PORT_PHASEDONE=PORT_UNUSED
|
||||
PORT_PHASESTEP=PORT_UNUSED
|
||||
PORT_PHASEUPDOWN=PORT_UNUSED
|
||||
PORT_PLLENA=PORT_UNUSED
|
||||
PORT_SCANACLR=PORT_UNUSED
|
||||
PORT_SCANCLK=PORT_UNUSED
|
||||
PORT_SCANCLKENA=PORT_UNUSED
|
||||
PORT_SCANDATA=PORT_UNUSED
|
||||
PORT_SCANDATAOUT=PORT_UNUSED
|
||||
PORT_SCANDONE=PORT_UNUSED
|
||||
PORT_SCANREAD=PORT_UNUSED
|
||||
PORT_SCANWRITE=PORT_UNUSED
|
||||
PORT_clk0=PORT_USED
|
||||
PORT_clk1=PORT_UNUSED
|
||||
PORT_clk2=PORT_UNUSED
|
||||
PORT_clk3=PORT_UNUSED
|
||||
PORT_clk4=PORT_UNUSED
|
||||
PORT_clk5=PORT_UNUSED
|
||||
PORT_clkena0=PORT_UNUSED
|
||||
PORT_clkena1=PORT_UNUSED
|
||||
PORT_clkena2=PORT_UNUSED
|
||||
PORT_clkena3=PORT_UNUSED
|
||||
PORT_clkena4=PORT_UNUSED
|
||||
PORT_clkena5=PORT_UNUSED
|
||||
PORT_extclk0=PORT_UNUSED
|
||||
PORT_extclk1=PORT_UNUSED
|
||||
PORT_extclk2=PORT_UNUSED
|
||||
PORT_extclk3=PORT_UNUSED
|
||||
SELF_RESET_ON_LOSS_LOCK=OFF
|
||||
WIDTH_CLOCK=5
|
||||
DEVICE_FAMILY="Cyclone IV E"
|
||||
CBX_AUTO_BLACKBOX=ALL
|
||||
areset
|
||||
inclk
|
||||
inclk
|
||||
clk
|
||||
locked
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE pinplan>
|
||||
<pinplan intended_family="Cyclone IV E" variation_name="serial_pll" megafunction_name="ALTPLL" specifies="all_ports">
|
||||
<global>
|
||||
<pin name="areset" direction="input" scope="external" />
|
||||
<pin name="inclk0" direction="input" scope="external" source="clock" />
|
||||
<pin name="c0" direction="output" scope="external" source="clock" />
|
||||
<pin name="locked" direction="output" scope="external" />
|
||||
|
||||
</global>
|
||||
</pinplan>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE pinplan>
|
||||
<pinplan intended_family="Cyclone IV E" variation_name="serial_pll" megafunction_name="ALTPLL" specifies="all_ports">
|
||||
<global>
|
||||
<pin name="areset" direction="input" scope="external" />
|
||||
<pin name="inclk0" direction="input" scope="external" source="clock" />
|
||||
<pin name="c0" direction="output" scope="external" source="clock" />
|
||||
<pin name="locked" direction="output" scope="external" />
|
||||
|
||||
</global>
|
||||
</pinplan>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
set_global_assignment -name IP_TOOL_NAME "ALTPLL"
|
||||
set_global_assignment -name IP_TOOL_VERSION "12.1"
|
||||
set_global_assignment -name VHDL_FILE [file join $::quartus(qip_path) "serial_pll.vhd"]
|
||||
set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) "serial_pll.ppf"]
|
||||
set_global_assignment -name IP_TOOL_NAME "ALTPLL"
|
||||
set_global_assignment -name IP_TOOL_VERSION "12.1"
|
||||
set_global_assignment -name VHDL_FILE [file join $::quartus(qip_path) "serial_pll.vhd"]
|
||||
set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) "serial_pll.ppf"]
|
||||
|
|
|
|||
|
|
@ -1,365 +1,365 @@
|
|||
-- megafunction wizard: %ALTPLL%
|
||||
-- GENERATION: STANDARD
|
||||
-- VERSION: WM1.0
|
||||
-- MODULE: altpll
|
||||
|
||||
-- ============================================================
|
||||
-- File Name: serial_pll.vhd
|
||||
-- Megafunction Name(s):
|
||||
-- altpll
|
||||
--
|
||||
-- Simulation Library Files(s):
|
||||
-- altera_mf
|
||||
-- ============================================================
|
||||
-- ************************************************************
|
||||
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
--
|
||||
-- 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
-- ************************************************************
|
||||
|
||||
|
||||
--Copyright (C) 1991-2012 Altera Corporation
|
||||
--Your use of Altera Corporation's design tools, logic functions
|
||||
--and other software and tools, and its AMPP partner logic
|
||||
--functions, and any output files from any of the foregoing
|
||||
--(including device programming or simulation files), and any
|
||||
--associated documentation or information are expressly subject
|
||||
--to the terms and conditions of the Altera Program License
|
||||
--Subscription Agreement, Altera MegaCore Function License
|
||||
--Agreement, or other applicable license agreement, including,
|
||||
--without limitation, that your use is for the sole purpose of
|
||||
--programming logic devices manufactured by Altera and sold by
|
||||
--Altera or its authorized distributors. Please refer to the
|
||||
--applicable agreement for further details.
|
||||
|
||||
|
||||
LIBRARY ieee;
|
||||
USE ieee.std_logic_1164.all;
|
||||
|
||||
LIBRARY altera_mf;
|
||||
USE altera_mf.all;
|
||||
|
||||
ENTITY serial_pll IS
|
||||
PORT
|
||||
(
|
||||
areset : IN STD_LOGIC := '0';
|
||||
inclk0 : IN STD_LOGIC := '0';
|
||||
c0 : OUT STD_LOGIC ;
|
||||
locked : OUT STD_LOGIC
|
||||
);
|
||||
END serial_pll;
|
||||
|
||||
|
||||
ARCHITECTURE SYN OF serial_pll IS
|
||||
|
||||
SIGNAL sub_wire0 : STD_LOGIC ;
|
||||
SIGNAL sub_wire1 : STD_LOGIC_VECTOR (4 DOWNTO 0);
|
||||
SIGNAL sub_wire2 : STD_LOGIC ;
|
||||
SIGNAL sub_wire3 : STD_LOGIC ;
|
||||
SIGNAL sub_wire4 : STD_LOGIC_VECTOR (1 DOWNTO 0);
|
||||
SIGNAL sub_wire5_bv : BIT_VECTOR (0 DOWNTO 0);
|
||||
SIGNAL sub_wire5 : STD_LOGIC_VECTOR (0 DOWNTO 0);
|
||||
|
||||
|
||||
|
||||
COMPONENT altpll
|
||||
GENERIC (
|
||||
bandwidth_type : STRING;
|
||||
clk0_divide_by : NATURAL;
|
||||
clk0_duty_cycle : NATURAL;
|
||||
clk0_multiply_by : NATURAL;
|
||||
clk0_phase_shift : STRING;
|
||||
compensate_clock : STRING;
|
||||
inclk0_input_frequency : NATURAL;
|
||||
intended_device_family : STRING;
|
||||
lpm_hint : STRING;
|
||||
lpm_type : STRING;
|
||||
operation_mode : STRING;
|
||||
pll_type : STRING;
|
||||
port_activeclock : STRING;
|
||||
port_areset : STRING;
|
||||
port_clkbad0 : STRING;
|
||||
port_clkbad1 : STRING;
|
||||
port_clkloss : STRING;
|
||||
port_clkswitch : STRING;
|
||||
port_configupdate : STRING;
|
||||
port_fbin : STRING;
|
||||
port_inclk0 : STRING;
|
||||
port_inclk1 : STRING;
|
||||
port_locked : STRING;
|
||||
port_pfdena : STRING;
|
||||
port_phasecounterselect : STRING;
|
||||
port_phasedone : STRING;
|
||||
port_phasestep : STRING;
|
||||
port_phaseupdown : STRING;
|
||||
port_pllena : STRING;
|
||||
port_scanaclr : STRING;
|
||||
port_scanclk : STRING;
|
||||
port_scanclkena : STRING;
|
||||
port_scandata : STRING;
|
||||
port_scandataout : STRING;
|
||||
port_scandone : STRING;
|
||||
port_scanread : STRING;
|
||||
port_scanwrite : STRING;
|
||||
port_clk0 : STRING;
|
||||
port_clk1 : STRING;
|
||||
port_clk2 : STRING;
|
||||
port_clk3 : STRING;
|
||||
port_clk4 : STRING;
|
||||
port_clk5 : STRING;
|
||||
port_clkena0 : STRING;
|
||||
port_clkena1 : STRING;
|
||||
port_clkena2 : STRING;
|
||||
port_clkena3 : STRING;
|
||||
port_clkena4 : STRING;
|
||||
port_clkena5 : STRING;
|
||||
port_extclk0 : STRING;
|
||||
port_extclk1 : STRING;
|
||||
port_extclk2 : STRING;
|
||||
port_extclk3 : STRING;
|
||||
self_reset_on_loss_lock : STRING;
|
||||
width_clock : NATURAL
|
||||
);
|
||||
PORT (
|
||||
areset : IN STD_LOGIC ;
|
||||
clk : OUT STD_LOGIC_VECTOR (4 DOWNTO 0);
|
||||
inclk : IN STD_LOGIC_VECTOR (1 DOWNTO 0);
|
||||
locked : OUT STD_LOGIC
|
||||
);
|
||||
END COMPONENT;
|
||||
|
||||
BEGIN
|
||||
sub_wire5_bv(0 DOWNTO 0) <= "0";
|
||||
sub_wire5 <= To_stdlogicvector(sub_wire5_bv);
|
||||
locked <= sub_wire0;
|
||||
sub_wire2 <= sub_wire1(0);
|
||||
c0 <= sub_wire2;
|
||||
sub_wire3 <= inclk0;
|
||||
sub_wire4 <= sub_wire5(0 DOWNTO 0) & sub_wire3;
|
||||
|
||||
altpll_component : altpll
|
||||
GENERIC MAP (
|
||||
bandwidth_type => "AUTO",
|
||||
clk0_divide_by => 88,
|
||||
clk0_duty_cycle => 50,
|
||||
clk0_multiply_by => 105,
|
||||
clk0_phase_shift => "0",
|
||||
compensate_clock => "CLK0",
|
||||
inclk0_input_frequency => 26041,
|
||||
intended_device_family => "Cyclone IV E",
|
||||
lpm_hint => "CBX_MODULE_PREFIX=serial_pll",
|
||||
lpm_type => "altpll",
|
||||
operation_mode => "NORMAL",
|
||||
pll_type => "AUTO",
|
||||
port_activeclock => "PORT_UNUSED",
|
||||
port_areset => "PORT_USED",
|
||||
port_clkbad0 => "PORT_UNUSED",
|
||||
port_clkbad1 => "PORT_UNUSED",
|
||||
port_clkloss => "PORT_UNUSED",
|
||||
port_clkswitch => "PORT_UNUSED",
|
||||
port_configupdate => "PORT_UNUSED",
|
||||
port_fbin => "PORT_UNUSED",
|
||||
port_inclk0 => "PORT_USED",
|
||||
port_inclk1 => "PORT_UNUSED",
|
||||
port_locked => "PORT_USED",
|
||||
port_pfdena => "PORT_UNUSED",
|
||||
port_phasecounterselect => "PORT_UNUSED",
|
||||
port_phasedone => "PORT_UNUSED",
|
||||
port_phasestep => "PORT_UNUSED",
|
||||
port_phaseupdown => "PORT_UNUSED",
|
||||
port_pllena => "PORT_UNUSED",
|
||||
port_scanaclr => "PORT_UNUSED",
|
||||
port_scanclk => "PORT_UNUSED",
|
||||
port_scanclkena => "PORT_UNUSED",
|
||||
port_scandata => "PORT_UNUSED",
|
||||
port_scandataout => "PORT_UNUSED",
|
||||
port_scandone => "PORT_UNUSED",
|
||||
port_scanread => "PORT_UNUSED",
|
||||
port_scanwrite => "PORT_UNUSED",
|
||||
port_clk0 => "PORT_USED",
|
||||
port_clk1 => "PORT_UNUSED",
|
||||
port_clk2 => "PORT_UNUSED",
|
||||
port_clk3 => "PORT_UNUSED",
|
||||
port_clk4 => "PORT_UNUSED",
|
||||
port_clk5 => "PORT_UNUSED",
|
||||
port_clkena0 => "PORT_UNUSED",
|
||||
port_clkena1 => "PORT_UNUSED",
|
||||
port_clkena2 => "PORT_UNUSED",
|
||||
port_clkena3 => "PORT_UNUSED",
|
||||
port_clkena4 => "PORT_UNUSED",
|
||||
port_clkena5 => "PORT_UNUSED",
|
||||
port_extclk0 => "PORT_UNUSED",
|
||||
port_extclk1 => "PORT_UNUSED",
|
||||
port_extclk2 => "PORT_UNUSED",
|
||||
port_extclk3 => "PORT_UNUSED",
|
||||
self_reset_on_loss_lock => "OFF",
|
||||
width_clock => 5
|
||||
)
|
||||
PORT MAP (
|
||||
areset => areset,
|
||||
inclk => sub_wire4,
|
||||
locked => sub_wire0,
|
||||
clk => sub_wire1
|
||||
);
|
||||
|
||||
|
||||
|
||||
END SYN;
|
||||
|
||||
-- ============================================================
|
||||
-- CNX file retrieval info
|
||||
-- ============================================================
|
||||
-- Retrieval info: PRIVATE: ACTIVECLK_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH STRING "1.000"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_FREQ_UNIT STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_PRESET STRING "Low"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_USE_AUTO STRING "1"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_USE_PRESET STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKBAD_SWITCHOVER_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKLOSS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKSWITCH_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CREATE_INCLK1_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c0"
|
||||
-- Retrieval info: PRIVATE: CUR_FBIN_CLK STRING "c0"
|
||||
-- Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING "6"
|
||||
-- Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC "88"
|
||||
-- Retrieval info: PRIVATE: DUTY_CYCLE0 STRING "50.00000000"
|
||||
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING "45.818180"
|
||||
-- Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING "0"
|
||||
-- Retrieval info: PRIVATE: EXT_FEEDBACK_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_COUNTER_EDIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_FEATURE_ENABLED STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_MODE_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCK_COUNTER_EDIT NUMERIC "1048575"
|
||||
-- Retrieval info: PRIVATE: HAS_MANUAL_SWITCHOVER STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK0_FREQ_EDIT STRING "38.400"
|
||||
-- Retrieval info: PRIVATE: INCLK0_FREQ_UNIT_COMBO STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT STRING "100.000"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_COMBO STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
|
||||
-- Retrieval info: PRIVATE: INT_FEEDBACK__MODE_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: LOCKED_OUTPUT_CHECK STRING "1"
|
||||
-- Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE STRING "Not Available"
|
||||
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE_DIRTY NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT0 STRING "deg"
|
||||
-- Retrieval info: PRIVATE: MIG_DEVICE_SPEED_GRADE STRING "Any"
|
||||
-- Retrieval info: PRIVATE: MIRROR_CLK0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC "105"
|
||||
-- Retrieval info: PRIVATE: NORMAL_MODE_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ0 STRING "100.00000000"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT0 STRING "0.00000000"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT_STEP_ENABLED_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT0 STRING "deg"
|
||||
-- Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_ARESET_CHECK STRING "1"
|
||||
-- Retrieval info: PRIVATE: PLL_AUTOPLL_CHECK NUMERIC "1"
|
||||
-- Retrieval info: PRIVATE: PLL_ENHPLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_FASTPLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_FBMIMIC_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_LVDS_PLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_PFDENA_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_TARGET_HARCOPY_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PRIMARY_CLK_COMBO STRING "inclk0"
|
||||
-- Retrieval info: PRIVATE: RECONFIG_FILE STRING "serial_pll.mif"
|
||||
-- Retrieval info: PRIVATE: SACN_INPUTS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: SCAN_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: SELF_RESET_LOCK_LOSS STRING "0"
|
||||
-- Retrieval info: PRIVATE: SHORT_SCAN_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FEATURE_ENABLED STRING "0"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FREQ STRING "50.000"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FREQ_UNIT STRING "KHz"
|
||||
-- Retrieval info: PRIVATE: SPREAD_PERCENT STRING "0.500"
|
||||
-- Retrieval info: PRIVATE: SPREAD_USE STRING "0"
|
||||
-- Retrieval info: PRIVATE: SRC_SYNCH_COMP_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: STICKY_CLK0 STRING "1"
|
||||
-- Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUMERIC "1"
|
||||
-- Retrieval info: PRIVATE: SWITCHOVER_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
||||
-- Retrieval info: PRIVATE: USE_CLK0 STRING "1"
|
||||
-- Retrieval info: PRIVATE: USE_CLKENA0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: USE_MIL_SPEED_GRADE NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: ZERO_DELAY_RADIO STRING "0"
|
||||
-- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
|
||||
-- Retrieval info: CONSTANT: BANDWIDTH_TYPE STRING "AUTO"
|
||||
-- Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC "88"
|
||||
-- Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC "50"
|
||||
-- Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC "105"
|
||||
-- Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING "0"
|
||||
-- Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK0"
|
||||
-- Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC "26041"
|
||||
-- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
|
||||
-- Retrieval info: CONSTANT: LPM_TYPE STRING "altpll"
|
||||
-- Retrieval info: CONSTANT: OPERATION_MODE STRING "NORMAL"
|
||||
-- Retrieval info: CONSTANT: PLL_TYPE STRING "AUTO"
|
||||
-- Retrieval info: CONSTANT: PORT_ACTIVECLOCK STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_ARESET STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKBAD0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKBAD1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKLOSS STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKSWITCH STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CONFIGUPDATE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_FBIN STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_INCLK0 STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_INCLK1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_LOCKED STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_PFDENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASECOUNTERSELECT STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASEDONE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASESTEP STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASEUPDOWN STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PLLENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANACLR STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANCLK STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANCLKENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDATA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDATAOUT STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDONE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANREAD STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANWRITE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk4 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk5 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena4 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena5 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: SELF_RESET_ON_LOSS_LOCK STRING "OFF"
|
||||
-- Retrieval info: CONSTANT: WIDTH_CLOCK NUMERIC "5"
|
||||
-- Retrieval info: USED_PORT: @clk 0 0 5 0 OUTPUT_CLK_EXT VCC "@clk[4..0]"
|
||||
-- Retrieval info: USED_PORT: @inclk 0 0 2 0 INPUT_CLK_EXT VCC "@inclk[1..0]"
|
||||
-- Retrieval info: USED_PORT: areset 0 0 0 0 INPUT GND "areset"
|
||||
-- Retrieval info: USED_PORT: c0 0 0 0 0 OUTPUT_CLK_EXT VCC "c0"
|
||||
-- Retrieval info: USED_PORT: inclk0 0 0 0 0 INPUT_CLK_EXT GND "inclk0"
|
||||
-- Retrieval info: USED_PORT: locked 0 0 0 0 OUTPUT GND "locked"
|
||||
-- Retrieval info: CONNECT: @areset 0 0 0 0 areset 0 0 0 0
|
||||
-- Retrieval info: CONNECT: @inclk 0 0 1 1 GND 0 0 0 0
|
||||
-- Retrieval info: CONNECT: @inclk 0 0 1 0 inclk0 0 0 0 0
|
||||
-- Retrieval info: CONNECT: c0 0 0 0 0 @clk 0 0 1 0
|
||||
-- Retrieval info: CONNECT: locked 0 0 0 0 @locked 0 0 0 0
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.vhd TRUE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.ppf TRUE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.inc FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.cmp FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.bsf FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll_inst.vhd FALSE
|
||||
-- Retrieval info: LIB_FILE: altera_mf
|
||||
-- Retrieval info: CBX_MODULE_PREFIX: ON
|
||||
-- megafunction wizard: %ALTPLL%
|
||||
-- GENERATION: STANDARD
|
||||
-- VERSION: WM1.0
|
||||
-- MODULE: altpll
|
||||
|
||||
-- ============================================================
|
||||
-- File Name: serial_pll.vhd
|
||||
-- Megafunction Name(s):
|
||||
-- altpll
|
||||
--
|
||||
-- Simulation Library Files(s):
|
||||
-- altera_mf
|
||||
-- ============================================================
|
||||
-- ************************************************************
|
||||
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
--
|
||||
-- 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
-- ************************************************************
|
||||
|
||||
|
||||
--Copyright (C) 1991-2012 Altera Corporation
|
||||
--Your use of Altera Corporation's design tools, logic functions
|
||||
--and other software and tools, and its AMPP partner logic
|
||||
--functions, and any output files from any of the foregoing
|
||||
--(including device programming or simulation files), and any
|
||||
--associated documentation or information are expressly subject
|
||||
--to the terms and conditions of the Altera Program License
|
||||
--Subscription Agreement, Altera MegaCore Function License
|
||||
--Agreement, or other applicable license agreement, including,
|
||||
--without limitation, that your use is for the sole purpose of
|
||||
--programming logic devices manufactured by Altera and sold by
|
||||
--Altera or its authorized distributors. Please refer to the
|
||||
--applicable agreement for further details.
|
||||
|
||||
|
||||
LIBRARY ieee;
|
||||
USE ieee.std_logic_1164.all;
|
||||
|
||||
LIBRARY altera_mf;
|
||||
USE altera_mf.all;
|
||||
|
||||
ENTITY serial_pll IS
|
||||
PORT
|
||||
(
|
||||
areset : IN STD_LOGIC := '0';
|
||||
inclk0 : IN STD_LOGIC := '0';
|
||||
c0 : OUT STD_LOGIC ;
|
||||
locked : OUT STD_LOGIC
|
||||
);
|
||||
END serial_pll;
|
||||
|
||||
|
||||
ARCHITECTURE SYN OF serial_pll IS
|
||||
|
||||
SIGNAL sub_wire0 : STD_LOGIC ;
|
||||
SIGNAL sub_wire1 : STD_LOGIC_VECTOR (4 DOWNTO 0);
|
||||
SIGNAL sub_wire2 : STD_LOGIC ;
|
||||
SIGNAL sub_wire3 : STD_LOGIC ;
|
||||
SIGNAL sub_wire4 : STD_LOGIC_VECTOR (1 DOWNTO 0);
|
||||
SIGNAL sub_wire5_bv : BIT_VECTOR (0 DOWNTO 0);
|
||||
SIGNAL sub_wire5 : STD_LOGIC_VECTOR (0 DOWNTO 0);
|
||||
|
||||
|
||||
|
||||
COMPONENT altpll
|
||||
GENERIC (
|
||||
bandwidth_type : STRING;
|
||||
clk0_divide_by : NATURAL;
|
||||
clk0_duty_cycle : NATURAL;
|
||||
clk0_multiply_by : NATURAL;
|
||||
clk0_phase_shift : STRING;
|
||||
compensate_clock : STRING;
|
||||
inclk0_input_frequency : NATURAL;
|
||||
intended_device_family : STRING;
|
||||
lpm_hint : STRING;
|
||||
lpm_type : STRING;
|
||||
operation_mode : STRING;
|
||||
pll_type : STRING;
|
||||
port_activeclock : STRING;
|
||||
port_areset : STRING;
|
||||
port_clkbad0 : STRING;
|
||||
port_clkbad1 : STRING;
|
||||
port_clkloss : STRING;
|
||||
port_clkswitch : STRING;
|
||||
port_configupdate : STRING;
|
||||
port_fbin : STRING;
|
||||
port_inclk0 : STRING;
|
||||
port_inclk1 : STRING;
|
||||
port_locked : STRING;
|
||||
port_pfdena : STRING;
|
||||
port_phasecounterselect : STRING;
|
||||
port_phasedone : STRING;
|
||||
port_phasestep : STRING;
|
||||
port_phaseupdown : STRING;
|
||||
port_pllena : STRING;
|
||||
port_scanaclr : STRING;
|
||||
port_scanclk : STRING;
|
||||
port_scanclkena : STRING;
|
||||
port_scandata : STRING;
|
||||
port_scandataout : STRING;
|
||||
port_scandone : STRING;
|
||||
port_scanread : STRING;
|
||||
port_scanwrite : STRING;
|
||||
port_clk0 : STRING;
|
||||
port_clk1 : STRING;
|
||||
port_clk2 : STRING;
|
||||
port_clk3 : STRING;
|
||||
port_clk4 : STRING;
|
||||
port_clk5 : STRING;
|
||||
port_clkena0 : STRING;
|
||||
port_clkena1 : STRING;
|
||||
port_clkena2 : STRING;
|
||||
port_clkena3 : STRING;
|
||||
port_clkena4 : STRING;
|
||||
port_clkena5 : STRING;
|
||||
port_extclk0 : STRING;
|
||||
port_extclk1 : STRING;
|
||||
port_extclk2 : STRING;
|
||||
port_extclk3 : STRING;
|
||||
self_reset_on_loss_lock : STRING;
|
||||
width_clock : NATURAL
|
||||
);
|
||||
PORT (
|
||||
areset : IN STD_LOGIC ;
|
||||
clk : OUT STD_LOGIC_VECTOR (4 DOWNTO 0);
|
||||
inclk : IN STD_LOGIC_VECTOR (1 DOWNTO 0);
|
||||
locked : OUT STD_LOGIC
|
||||
);
|
||||
END COMPONENT;
|
||||
|
||||
BEGIN
|
||||
sub_wire5_bv(0 DOWNTO 0) <= "0";
|
||||
sub_wire5 <= To_stdlogicvector(sub_wire5_bv);
|
||||
locked <= sub_wire0;
|
||||
sub_wire2 <= sub_wire1(0);
|
||||
c0 <= sub_wire2;
|
||||
sub_wire3 <= inclk0;
|
||||
sub_wire4 <= sub_wire5(0 DOWNTO 0) & sub_wire3;
|
||||
|
||||
altpll_component : altpll
|
||||
GENERIC MAP (
|
||||
bandwidth_type => "AUTO",
|
||||
clk0_divide_by => 88,
|
||||
clk0_duty_cycle => 50,
|
||||
clk0_multiply_by => 105,
|
||||
clk0_phase_shift => "0",
|
||||
compensate_clock => "CLK0",
|
||||
inclk0_input_frequency => 26041,
|
||||
intended_device_family => "Cyclone IV E",
|
||||
lpm_hint => "CBX_MODULE_PREFIX=serial_pll",
|
||||
lpm_type => "altpll",
|
||||
operation_mode => "NORMAL",
|
||||
pll_type => "AUTO",
|
||||
port_activeclock => "PORT_UNUSED",
|
||||
port_areset => "PORT_USED",
|
||||
port_clkbad0 => "PORT_UNUSED",
|
||||
port_clkbad1 => "PORT_UNUSED",
|
||||
port_clkloss => "PORT_UNUSED",
|
||||
port_clkswitch => "PORT_UNUSED",
|
||||
port_configupdate => "PORT_UNUSED",
|
||||
port_fbin => "PORT_UNUSED",
|
||||
port_inclk0 => "PORT_USED",
|
||||
port_inclk1 => "PORT_UNUSED",
|
||||
port_locked => "PORT_USED",
|
||||
port_pfdena => "PORT_UNUSED",
|
||||
port_phasecounterselect => "PORT_UNUSED",
|
||||
port_phasedone => "PORT_UNUSED",
|
||||
port_phasestep => "PORT_UNUSED",
|
||||
port_phaseupdown => "PORT_UNUSED",
|
||||
port_pllena => "PORT_UNUSED",
|
||||
port_scanaclr => "PORT_UNUSED",
|
||||
port_scanclk => "PORT_UNUSED",
|
||||
port_scanclkena => "PORT_UNUSED",
|
||||
port_scandata => "PORT_UNUSED",
|
||||
port_scandataout => "PORT_UNUSED",
|
||||
port_scandone => "PORT_UNUSED",
|
||||
port_scanread => "PORT_UNUSED",
|
||||
port_scanwrite => "PORT_UNUSED",
|
||||
port_clk0 => "PORT_USED",
|
||||
port_clk1 => "PORT_UNUSED",
|
||||
port_clk2 => "PORT_UNUSED",
|
||||
port_clk3 => "PORT_UNUSED",
|
||||
port_clk4 => "PORT_UNUSED",
|
||||
port_clk5 => "PORT_UNUSED",
|
||||
port_clkena0 => "PORT_UNUSED",
|
||||
port_clkena1 => "PORT_UNUSED",
|
||||
port_clkena2 => "PORT_UNUSED",
|
||||
port_clkena3 => "PORT_UNUSED",
|
||||
port_clkena4 => "PORT_UNUSED",
|
||||
port_clkena5 => "PORT_UNUSED",
|
||||
port_extclk0 => "PORT_UNUSED",
|
||||
port_extclk1 => "PORT_UNUSED",
|
||||
port_extclk2 => "PORT_UNUSED",
|
||||
port_extclk3 => "PORT_UNUSED",
|
||||
self_reset_on_loss_lock => "OFF",
|
||||
width_clock => 5
|
||||
)
|
||||
PORT MAP (
|
||||
areset => areset,
|
||||
inclk => sub_wire4,
|
||||
locked => sub_wire0,
|
||||
clk => sub_wire1
|
||||
);
|
||||
|
||||
|
||||
|
||||
END SYN;
|
||||
|
||||
-- ============================================================
|
||||
-- CNX file retrieval info
|
||||
-- ============================================================
|
||||
-- Retrieval info: PRIVATE: ACTIVECLK_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH STRING "1.000"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_FREQ_UNIT STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_PRESET STRING "Low"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_USE_AUTO STRING "1"
|
||||
-- Retrieval info: PRIVATE: BANDWIDTH_USE_PRESET STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKBAD_SWITCHOVER_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKLOSS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CLKSWITCH_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CREATE_INCLK1_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c0"
|
||||
-- Retrieval info: PRIVATE: CUR_FBIN_CLK STRING "c0"
|
||||
-- Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING "6"
|
||||
-- Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC "88"
|
||||
-- Retrieval info: PRIVATE: DUTY_CYCLE0 STRING "50.00000000"
|
||||
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING "45.818180"
|
||||
-- Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING "0"
|
||||
-- Retrieval info: PRIVATE: EXT_FEEDBACK_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_COUNTER_EDIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_FEATURE_ENABLED STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCKED_MODE_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: GLOCK_COUNTER_EDIT NUMERIC "1048575"
|
||||
-- Retrieval info: PRIVATE: HAS_MANUAL_SWITCHOVER STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK0_FREQ_EDIT STRING "38.400"
|
||||
-- Retrieval info: PRIVATE: INCLK0_FREQ_UNIT_COMBO STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT STRING "100.000"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_CHANGED STRING "1"
|
||||
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_COMBO STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
|
||||
-- Retrieval info: PRIVATE: INT_FEEDBACK__MODE_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: LOCKED_OUTPUT_CHECK STRING "1"
|
||||
-- Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE STRING "Not Available"
|
||||
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE_DIRTY NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT0 STRING "deg"
|
||||
-- Retrieval info: PRIVATE: MIG_DEVICE_SPEED_GRADE STRING "Any"
|
||||
-- Retrieval info: PRIVATE: MIRROR_CLK0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC "105"
|
||||
-- Retrieval info: PRIVATE: NORMAL_MODE_RADIO STRING "1"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ0 STRING "100.00000000"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING "MHz"
|
||||
-- Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT0 STRING "0.00000000"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT_STEP_ENABLED_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT0 STRING "deg"
|
||||
-- Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_ARESET_CHECK STRING "1"
|
||||
-- Retrieval info: PRIVATE: PLL_AUTOPLL_CHECK NUMERIC "1"
|
||||
-- Retrieval info: PRIVATE: PLL_ENHPLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_FASTPLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_FBMIMIC_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_LVDS_PLL_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PLL_PFDENA_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: PLL_TARGET_HARCOPY_CHECK NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: PRIMARY_CLK_COMBO STRING "inclk0"
|
||||
-- Retrieval info: PRIVATE: RECONFIG_FILE STRING "serial_pll.mif"
|
||||
-- Retrieval info: PRIVATE: SACN_INPUTS_CHECK STRING "0"
|
||||
-- Retrieval info: PRIVATE: SCAN_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: SELF_RESET_LOCK_LOSS STRING "0"
|
||||
-- Retrieval info: PRIVATE: SHORT_SCAN_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FEATURE_ENABLED STRING "0"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FREQ STRING "50.000"
|
||||
-- Retrieval info: PRIVATE: SPREAD_FREQ_UNIT STRING "KHz"
|
||||
-- Retrieval info: PRIVATE: SPREAD_PERCENT STRING "0.500"
|
||||
-- Retrieval info: PRIVATE: SPREAD_USE STRING "0"
|
||||
-- Retrieval info: PRIVATE: SRC_SYNCH_COMP_RADIO STRING "0"
|
||||
-- Retrieval info: PRIVATE: STICKY_CLK0 STRING "1"
|
||||
-- Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUMERIC "1"
|
||||
-- Retrieval info: PRIVATE: SWITCHOVER_FEATURE_ENABLED STRING "1"
|
||||
-- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
||||
-- Retrieval info: PRIVATE: USE_CLK0 STRING "1"
|
||||
-- Retrieval info: PRIVATE: USE_CLKENA0 STRING "0"
|
||||
-- Retrieval info: PRIVATE: USE_MIL_SPEED_GRADE NUMERIC "0"
|
||||
-- Retrieval info: PRIVATE: ZERO_DELAY_RADIO STRING "0"
|
||||
-- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
|
||||
-- Retrieval info: CONSTANT: BANDWIDTH_TYPE STRING "AUTO"
|
||||
-- Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC "88"
|
||||
-- Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC "50"
|
||||
-- Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC "105"
|
||||
-- Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING "0"
|
||||
-- Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK0"
|
||||
-- Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC "26041"
|
||||
-- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
|
||||
-- Retrieval info: CONSTANT: LPM_TYPE STRING "altpll"
|
||||
-- Retrieval info: CONSTANT: OPERATION_MODE STRING "NORMAL"
|
||||
-- Retrieval info: CONSTANT: PLL_TYPE STRING "AUTO"
|
||||
-- Retrieval info: CONSTANT: PORT_ACTIVECLOCK STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_ARESET STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKBAD0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKBAD1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKLOSS STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CLKSWITCH STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_CONFIGUPDATE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_FBIN STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_INCLK0 STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_INCLK1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_LOCKED STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_PFDENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASECOUNTERSELECT STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASEDONE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASESTEP STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PHASEUPDOWN STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_PLLENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANACLR STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANCLK STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANCLKENA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDATA STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDATAOUT STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANDONE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANREAD STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_SCANWRITE STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_USED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk4 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clk5 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena4 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_clkena5 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk0 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk1 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk2 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: PORT_extclk3 STRING "PORT_UNUSED"
|
||||
-- Retrieval info: CONSTANT: SELF_RESET_ON_LOSS_LOCK STRING "OFF"
|
||||
-- Retrieval info: CONSTANT: WIDTH_CLOCK NUMERIC "5"
|
||||
-- Retrieval info: USED_PORT: @clk 0 0 5 0 OUTPUT_CLK_EXT VCC "@clk[4..0]"
|
||||
-- Retrieval info: USED_PORT: @inclk 0 0 2 0 INPUT_CLK_EXT VCC "@inclk[1..0]"
|
||||
-- Retrieval info: USED_PORT: areset 0 0 0 0 INPUT GND "areset"
|
||||
-- Retrieval info: USED_PORT: c0 0 0 0 0 OUTPUT_CLK_EXT VCC "c0"
|
||||
-- Retrieval info: USED_PORT: inclk0 0 0 0 0 INPUT_CLK_EXT GND "inclk0"
|
||||
-- Retrieval info: USED_PORT: locked 0 0 0 0 OUTPUT GND "locked"
|
||||
-- Retrieval info: CONNECT: @areset 0 0 0 0 areset 0 0 0 0
|
||||
-- Retrieval info: CONNECT: @inclk 0 0 1 1 GND 0 0 0 0
|
||||
-- Retrieval info: CONNECT: @inclk 0 0 1 0 inclk0 0 0 0 0
|
||||
-- Retrieval info: CONNECT: c0 0 0 0 0 @clk 0 0 1 0
|
||||
-- Retrieval info: CONNECT: locked 0 0 0 0 @locked 0 0 0 0
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.vhd TRUE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.ppf TRUE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.inc FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.cmp FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll.bsf FALSE
|
||||
-- Retrieval info: GEN_FILE: TYPE_NORMAL serial_pll_inst.vhd FALSE
|
||||
-- Retrieval info: LIB_FILE: altera_mf
|
||||
-- Retrieval info: CBX_MODULE_PREFIX: ON
|
||||
|
|
|
|||
|
|
@ -1,58 +1,58 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity async_fifo is
|
||||
port (
|
||||
-- Global clear
|
||||
clear : in std_logic ;
|
||||
|
||||
-- Write side
|
||||
w_clock : in std_logic ;
|
||||
w_enable : in std_logic ;
|
||||
w_data : in std_logic_vector(7 downto 0) ;
|
||||
w_empty : out std_logic ;
|
||||
w_full : out std_logic ;
|
||||
|
||||
-- Read side
|
||||
r_clock : in std_logic ;
|
||||
r_enable : in std_logic ;
|
||||
r_data : out std_logic_vector(7 downto 0) ;
|
||||
r_empty : out std_logic ;
|
||||
r_full : out std_logic
|
||||
) ;
|
||||
end entity ; -- async_fifo
|
||||
|
||||
architecture arch of async_fifo is
|
||||
|
||||
-- Clear signals for their respective sides
|
||||
signal r_clear : std_logic ;
|
||||
signal w_clear : std_logic ;
|
||||
|
||||
type status_t is record
|
||||
address : natural range 0 to 1023 ;
|
||||
count : natural range 0 to 1023 ;
|
||||
end record ;
|
||||
|
||||
begin
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity async_fifo is
|
||||
port (
|
||||
-- Global clear
|
||||
clear : in std_logic ;
|
||||
|
||||
-- Write side
|
||||
w_clock : in std_logic ;
|
||||
w_enable : in std_logic ;
|
||||
w_data : in std_logic_vector(7 downto 0) ;
|
||||
w_empty : out std_logic ;
|
||||
w_full : out std_logic ;
|
||||
|
||||
-- Read side
|
||||
r_clock : in std_logic ;
|
||||
r_enable : in std_logic ;
|
||||
r_data : out std_logic_vector(7 downto 0) ;
|
||||
r_empty : out std_logic ;
|
||||
r_full : out std_logic
|
||||
) ;
|
||||
end entity ; -- async_fifo
|
||||
|
||||
architecture arch of async_fifo is
|
||||
|
||||
-- Clear signals for their respective sides
|
||||
signal r_clear : std_logic ;
|
||||
signal w_clear : std_logic ;
|
||||
|
||||
type status_t is record
|
||||
address : natural range 0 to 1023 ;
|
||||
count : natural range 0 to 1023 ;
|
||||
end record ;
|
||||
|
||||
begin
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,165 +1,165 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
package cordic_p is
|
||||
|
||||
-- Vectoring mode forces outputs.y to 0
|
||||
-- Rotation mode forces outputs.z to 0
|
||||
type cordic_mode_t is (CORDIC_ROTATION, CORDIC_VECTORING) ;
|
||||
|
||||
-- TODO: Make this a generic package
|
||||
type cordic_xyz_t is record
|
||||
x : signed(15 downto 0) ;
|
||||
y : signed(15 downto 0) ;
|
||||
z : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
end package ; -- cordic_p
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity cordic is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
mode : in cordic_mode_t ;
|
||||
inputs : in cordic_xyz_t ;
|
||||
outputs : out cordic_xyz_t
|
||||
) ;
|
||||
end entity ; -- cordic
|
||||
|
||||
architecture arch of cordic is
|
||||
|
||||
-- TODO: Make this generic
|
||||
constant NUM_STAGES : natural := 12 ;
|
||||
|
||||
-- TODO: Use the VHDL-2008 integer_vector
|
||||
type integer_array_t is array(natural range <>) of integer ;
|
||||
|
||||
-- Each stage of the CORDIC is atan(2^(-i))
|
||||
function calculate_cordic_table return integer_array_t is
|
||||
variable rv : integer_array_t(0 to NUM_STAGES-1) := (others => 0) ;
|
||||
begin
|
||||
for i in 0 to rv'high loop
|
||||
rv(i) := integer(round((2.0**NUM_STAGES)*arctan(2.0**(-i))/MATH_PI)) ;
|
||||
end loop ;
|
||||
return rv ;
|
||||
end function ;
|
||||
|
||||
-- Constant array
|
||||
constant K : integer_array_t := calculate_cordic_table ;
|
||||
|
||||
-- The array for CORDIC stages
|
||||
type xyzs_t is array(0 to NUM_STAGES-1) of cordic_xyz_t ;
|
||||
|
||||
-- ALl the XYZ's for the CORDIC stages
|
||||
signal xyzs : xyzs_t ;
|
||||
|
||||
begin
|
||||
|
||||
rotate : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
xyzs <= (others =>(x => (others =>'0'), y => (others =>'0'), z => (others =>'0'), valid => '0')) ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
-- First stage will rotate the vector to be within -pi/2 to pi/2
|
||||
xyzs(0).valid <= inputs.valid ;
|
||||
if( inputs.valid = '1' ) then
|
||||
case mode is
|
||||
when CORDIC_ROTATION =>
|
||||
-- Make sure we're only rotating -pi/2 to pi/2 and adjust accordingly
|
||||
if( inputs.z > 2**(NUM_STAGES-1) ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z - 2**NUM_STAGES ;
|
||||
elsif( inputs.z < -(2**(NUM_STAGES-1)) ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z + 2**NUM_STAGES ;
|
||||
else
|
||||
xyzs(0).x <= inputs.x ;
|
||||
xyzs(0).y <= inputs.y ;
|
||||
xyzs(0).z <= inputs.z ;
|
||||
end if ;
|
||||
when CORDIC_VECTORING =>
|
||||
-- Make sure we're in the 1st or 4th quadrant only
|
||||
if( inputs.x < 0 and inputs.y < 0 ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z - 2**(NUM_STAGES) ;
|
||||
elsif( inputs.x < 0 ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z + 2**(NUM_STAGES) ;
|
||||
else
|
||||
xyzs(0).x <= inputs.x ;
|
||||
xyzs(0).y <= inputs.y ;
|
||||
xyzs(0).z <= inputs.z ;
|
||||
end if ;
|
||||
end case ;
|
||||
|
||||
end if ;
|
||||
|
||||
-- Run through all the other stages
|
||||
for i in 0 to xyzs'high-1 loop
|
||||
xyzs(i+1).valid <= xyzs(i).valid ;
|
||||
if( xyzs(i).valid = '1' ) then
|
||||
case mode is
|
||||
when CORDIC_ROTATION =>
|
||||
if( xyzs(i).z < 0 ) then
|
||||
xyzs(i+1).x <= xyzs(i).x + shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y - shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z + K(i) ;
|
||||
else
|
||||
xyzs(i+1).x <= xyzs(i).x - shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y + shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z - K(i) ;
|
||||
end if ;
|
||||
when CORDIC_VECTORING =>
|
||||
if( xyzs(i).y < 0 ) then
|
||||
xyzs(i+1).x <= xyzs(i).x - shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y + shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z - K(i) ;
|
||||
else
|
||||
xyzs(i+1).x <= xyzs(i).x + shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y - shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z + K(i) ;
|
||||
end if ;
|
||||
end case ;
|
||||
end if ;
|
||||
end loop ;
|
||||
|
||||
-- Output stage
|
||||
outputs <= xyzs(xyzs'high) ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
package cordic_p is
|
||||
|
||||
-- Vectoring mode forces outputs.y to 0
|
||||
-- Rotation mode forces outputs.z to 0
|
||||
type cordic_mode_t is (CORDIC_ROTATION, CORDIC_VECTORING) ;
|
||||
|
||||
-- TODO: Make this a generic package
|
||||
type cordic_xyz_t is record
|
||||
x : signed(15 downto 0) ;
|
||||
y : signed(15 downto 0) ;
|
||||
z : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
end package ; -- cordic_p
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity cordic is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
mode : in cordic_mode_t ;
|
||||
inputs : in cordic_xyz_t ;
|
||||
outputs : out cordic_xyz_t
|
||||
) ;
|
||||
end entity ; -- cordic
|
||||
|
||||
architecture arch of cordic is
|
||||
|
||||
-- TODO: Make this generic
|
||||
constant NUM_STAGES : natural := 12 ;
|
||||
|
||||
-- TODO: Use the VHDL-2008 integer_vector
|
||||
type integer_array_t is array(natural range <>) of integer ;
|
||||
|
||||
-- Each stage of the CORDIC is atan(2^(-i))
|
||||
function calculate_cordic_table return integer_array_t is
|
||||
variable rv : integer_array_t(0 to NUM_STAGES-1) := (others => 0) ;
|
||||
begin
|
||||
for i in 0 to rv'high loop
|
||||
rv(i) := integer(round((2.0**NUM_STAGES)*arctan(2.0**(-i))/MATH_PI)) ;
|
||||
end loop ;
|
||||
return rv ;
|
||||
end function ;
|
||||
|
||||
-- Constant array
|
||||
constant K : integer_array_t := calculate_cordic_table ;
|
||||
|
||||
-- The array for CORDIC stages
|
||||
type xyzs_t is array(0 to NUM_STAGES-1) of cordic_xyz_t ;
|
||||
|
||||
-- ALl the XYZ's for the CORDIC stages
|
||||
signal xyzs : xyzs_t ;
|
||||
|
||||
begin
|
||||
|
||||
rotate : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
xyzs <= (others =>(x => (others =>'0'), y => (others =>'0'), z => (others =>'0'), valid => '0')) ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
-- First stage will rotate the vector to be within -pi/2 to pi/2
|
||||
xyzs(0).valid <= inputs.valid ;
|
||||
if( inputs.valid = '1' ) then
|
||||
case mode is
|
||||
when CORDIC_ROTATION =>
|
||||
-- Make sure we're only rotating -pi/2 to pi/2 and adjust accordingly
|
||||
if( inputs.z > 2**(NUM_STAGES-1) ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z - 2**NUM_STAGES ;
|
||||
elsif( inputs.z < -(2**(NUM_STAGES-1)) ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z + 2**NUM_STAGES ;
|
||||
else
|
||||
xyzs(0).x <= inputs.x ;
|
||||
xyzs(0).y <= inputs.y ;
|
||||
xyzs(0).z <= inputs.z ;
|
||||
end if ;
|
||||
when CORDIC_VECTORING =>
|
||||
-- Make sure we're in the 1st or 4th quadrant only
|
||||
if( inputs.x < 0 and inputs.y < 0 ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z - 2**(NUM_STAGES) ;
|
||||
elsif( inputs.x < 0 ) then
|
||||
xyzs(0).x <= -inputs.x ;
|
||||
xyzs(0).y <= -inputs.y ;
|
||||
xyzs(0).z <= inputs.z + 2**(NUM_STAGES) ;
|
||||
else
|
||||
xyzs(0).x <= inputs.x ;
|
||||
xyzs(0).y <= inputs.y ;
|
||||
xyzs(0).z <= inputs.z ;
|
||||
end if ;
|
||||
end case ;
|
||||
|
||||
end if ;
|
||||
|
||||
-- Run through all the other stages
|
||||
for i in 0 to xyzs'high-1 loop
|
||||
xyzs(i+1).valid <= xyzs(i).valid ;
|
||||
if( xyzs(i).valid = '1' ) then
|
||||
case mode is
|
||||
when CORDIC_ROTATION =>
|
||||
if( xyzs(i).z < 0 ) then
|
||||
xyzs(i+1).x <= xyzs(i).x + shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y - shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z + K(i) ;
|
||||
else
|
||||
xyzs(i+1).x <= xyzs(i).x - shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y + shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z - K(i) ;
|
||||
end if ;
|
||||
when CORDIC_VECTORING =>
|
||||
if( xyzs(i).y < 0 ) then
|
||||
xyzs(i+1).x <= xyzs(i).x - shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y + shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z - K(i) ;
|
||||
else
|
||||
xyzs(i+1).x <= xyzs(i).x + shift_right(xyzs(i).y, i) ;
|
||||
xyzs(i+1).y <= xyzs(i).y - shift_right(xyzs(i).x, i) ;
|
||||
xyzs(i+1).z <= xyzs(i).z + K(i) ;
|
||||
end if ;
|
||||
end case ;
|
||||
end if ;
|
||||
end loop ;
|
||||
|
||||
-- Output stage
|
||||
outputs <= xyzs(xyzs'high) ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,101 +1,101 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity fsk_demodulator is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
|
||||
in_real : in signed(15 downto 0) ;
|
||||
in_imag : in signed(15 downto 0) ;
|
||||
in_valid : in std_logic ;
|
||||
|
||||
out_ssd : buffer signed(15 downto 0) ;
|
||||
out_valid : out std_logic
|
||||
) ;
|
||||
end entity ; -- fsk_demodulator
|
||||
|
||||
architecture arch of fsk_demodulator is
|
||||
|
||||
signal cordic_inputs : cordic_xyz_t ;
|
||||
signal cordic_outputs : cordic_xyz_t ;
|
||||
|
||||
signal prev_z : signed(15 downto 0) ;
|
||||
signal delta_z : signed(15 downto 0) ;
|
||||
signal delta_z_valid : std_logic ;
|
||||
signal unwrapped_z : signed(15 downto 0) ;
|
||||
signal unwrapped_valid : std_logic ;
|
||||
|
||||
begin
|
||||
|
||||
cordic_inputs <= ( x => in_real, y => in_imag, z => (others =>'0'), valid => in_valid ) ;
|
||||
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_VECTORING,
|
||||
inputs => cordic_inputs,
|
||||
outputs => cordic_outputs
|
||||
) ;
|
||||
|
||||
find_derivative : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
prev_z <= (others =>'0') ;
|
||||
delta_z <= (others =>'0') ;
|
||||
delta_z_valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
delta_z_valid <= cordic_outputs.valid ;
|
||||
if( cordic_outputs.valid = '1' ) then
|
||||
prev_z <= cordic_outputs.z ;
|
||||
delta_z <= cordic_outputs.z - prev_z ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
unwrap : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
unwrapped_z <= (others =>'0') ;
|
||||
unwrapped_valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
unwrapped_valid <= delta_z_valid ;
|
||||
if( delta_z > 4096 ) then
|
||||
unwrapped_z <= delta_z - 8192 ;
|
||||
elsif( delta_z < -4096 ) then
|
||||
unwrapped_z <= delta_z + 8192 ;
|
||||
else
|
||||
unwrapped_z <= delta_z ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
out_ssd <= out_ssd - shift_right(out_ssd,4) + unwrapped_z when rising_edge(clock) and unwrapped_valid = '1' ;
|
||||
out_valid <= unwrapped_valid when rising_edge(clock);
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity fsk_demodulator is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
|
||||
in_real : in signed(15 downto 0) ;
|
||||
in_imag : in signed(15 downto 0) ;
|
||||
in_valid : in std_logic ;
|
||||
|
||||
out_ssd : buffer signed(15 downto 0) ;
|
||||
out_valid : out std_logic
|
||||
) ;
|
||||
end entity ; -- fsk_demodulator
|
||||
|
||||
architecture arch of fsk_demodulator is
|
||||
|
||||
signal cordic_inputs : cordic_xyz_t ;
|
||||
signal cordic_outputs : cordic_xyz_t ;
|
||||
|
||||
signal prev_z : signed(15 downto 0) ;
|
||||
signal delta_z : signed(15 downto 0) ;
|
||||
signal delta_z_valid : std_logic ;
|
||||
signal unwrapped_z : signed(15 downto 0) ;
|
||||
signal unwrapped_valid : std_logic ;
|
||||
|
||||
begin
|
||||
|
||||
cordic_inputs <= ( x => in_real, y => in_imag, z => (others =>'0'), valid => in_valid ) ;
|
||||
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_VECTORING,
|
||||
inputs => cordic_inputs,
|
||||
outputs => cordic_outputs
|
||||
) ;
|
||||
|
||||
find_derivative : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
prev_z <= (others =>'0') ;
|
||||
delta_z <= (others =>'0') ;
|
||||
delta_z_valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
delta_z_valid <= cordic_outputs.valid ;
|
||||
if( cordic_outputs.valid = '1' ) then
|
||||
prev_z <= cordic_outputs.z ;
|
||||
delta_z <= cordic_outputs.z - prev_z ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
unwrap : process(clock, reset)
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
unwrapped_z <= (others =>'0') ;
|
||||
unwrapped_valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
unwrapped_valid <= delta_z_valid ;
|
||||
if( delta_z > 4096 ) then
|
||||
unwrapped_z <= delta_z - 8192 ;
|
||||
elsif( delta_z < -4096 ) then
|
||||
unwrapped_z <= delta_z + 8192 ;
|
||||
else
|
||||
unwrapped_z <= delta_z ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
out_ssd <= out_ssd - shift_right(out_ssd,4) + unwrapped_z when rising_edge(clock) and unwrapped_valid = '1' ;
|
||||
out_valid <= unwrapped_valid when rising_edge(clock);
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,103 +1,103 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity fsk_modulator is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
|
||||
symbol : in std_logic ;
|
||||
symbol_valid : in std_logic ;
|
||||
|
||||
out_real : out signed(15 downto 0) ;
|
||||
out_imag : out signed(15 downto 0) ;
|
||||
out_valid : out std_logic
|
||||
) ;
|
||||
end entity ; -- fsk_modulator
|
||||
|
||||
architecture arch of fsk_modulator is
|
||||
|
||||
-- Positive deviation for ZERO and negative deviation for ONE
|
||||
constant ZERO : signed(15 downto 0) := to_signed(integer(round(4096.0/19.2)),16) ;
|
||||
constant ONE : signed(15 downto 0) := -ZERO ;
|
||||
|
||||
signal nco_input : nco_input_t ;
|
||||
signal nco_output : nco_output_t ;
|
||||
|
||||
begin
|
||||
|
||||
register_new_symbol : process(clock, reset)
|
||||
-- variable dir : std_logic ;
|
||||
-- variable dphase : signed(15 downto 0) ;
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
-- dir := '1' ;
|
||||
-- dphase := (others =>'0') ;
|
||||
nco_input.dphase <= ZERO ;
|
||||
nco_input.valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
nco_input.valid <= '1' ;
|
||||
-- if( dir = '1' ) then
|
||||
-- if( dphase < 4094) then
|
||||
-- dphase := dphase + 1 ;
|
||||
-- else
|
||||
-- dphase := dphase - 1 ;
|
||||
-- dir := '0' ;
|
||||
-- end if ;
|
||||
-- else
|
||||
-- if( dphase > -4094) then
|
||||
-- dphase := dphase - 1 ;
|
||||
-- else
|
||||
-- dphase := dphase + 1 ;
|
||||
-- dir := '1' ;
|
||||
-- end if ;
|
||||
-- end if ;
|
||||
if( symbol_valid = '1' ) then
|
||||
-- nco_input.dphase <= dphase ;
|
||||
if( symbol = '0' ) then
|
||||
nco_input.dphase <= ZERO ;
|
||||
else
|
||||
nco_input.dphase <= ONE ;
|
||||
end if ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
U_nco : entity work.nco
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
inputs => nco_input,
|
||||
outputs => nco_output
|
||||
) ;
|
||||
|
||||
out_real <= nco_output.re ;
|
||||
out_imag <= nco_output.im ;
|
||||
out_valid <= nco_output.valid ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity fsk_modulator is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
|
||||
symbol : in std_logic ;
|
||||
symbol_valid : in std_logic ;
|
||||
|
||||
out_real : out signed(15 downto 0) ;
|
||||
out_imag : out signed(15 downto 0) ;
|
||||
out_valid : out std_logic
|
||||
) ;
|
||||
end entity ; -- fsk_modulator
|
||||
|
||||
architecture arch of fsk_modulator is
|
||||
|
||||
-- Positive deviation for ZERO and negative deviation for ONE
|
||||
constant ZERO : signed(15 downto 0) := to_signed(integer(round(4096.0/19.2)),16) ;
|
||||
constant ONE : signed(15 downto 0) := -ZERO ;
|
||||
|
||||
signal nco_input : nco_input_t ;
|
||||
signal nco_output : nco_output_t ;
|
||||
|
||||
begin
|
||||
|
||||
register_new_symbol : process(clock, reset)
|
||||
-- variable dir : std_logic ;
|
||||
-- variable dphase : signed(15 downto 0) ;
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
-- dir := '1' ;
|
||||
-- dphase := (others =>'0') ;
|
||||
nco_input.dphase <= ZERO ;
|
||||
nco_input.valid <= '0' ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
nco_input.valid <= '1' ;
|
||||
-- if( dir = '1' ) then
|
||||
-- if( dphase < 4094) then
|
||||
-- dphase := dphase + 1 ;
|
||||
-- else
|
||||
-- dphase := dphase - 1 ;
|
||||
-- dir := '0' ;
|
||||
-- end if ;
|
||||
-- else
|
||||
-- if( dphase > -4094) then
|
||||
-- dphase := dphase - 1 ;
|
||||
-- else
|
||||
-- dphase := dphase + 1 ;
|
||||
-- dir := '1' ;
|
||||
-- end if ;
|
||||
-- end if ;
|
||||
if( symbol_valid = '1' ) then
|
||||
-- nco_input.dphase <= dphase ;
|
||||
if( symbol = '0' ) then
|
||||
nco_input.dphase <= ZERO ;
|
||||
else
|
||||
nco_input.dphase <= ONE ;
|
||||
end if ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
U_nco : entity work.nco
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
inputs => nco_input,
|
||||
outputs => nco_output
|
||||
) ;
|
||||
|
||||
out_real <= nco_output.re ;
|
||||
out_imag <= nco_output.im ;
|
||||
out_valid <= nco_output.valid ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,99 +1,99 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
package nco_p is
|
||||
|
||||
type nco_input_t is record
|
||||
dphase : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
type nco_output_t is record
|
||||
re : signed(15 downto 0) ;
|
||||
im : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
end package ; -- nco_p
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity nco is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
inputs : in nco_input_t ;
|
||||
outputs : out nco_output_t
|
||||
) ;
|
||||
end entity ; -- nco
|
||||
|
||||
architecture arch of nco is
|
||||
|
||||
signal phase : signed(15 downto 0) ;
|
||||
|
||||
signal cordic_inputs : cordic_xyz_t ;
|
||||
signal cordic_outputs : cordic_xyz_t ;
|
||||
|
||||
begin
|
||||
|
||||
accumulate_phase : process(clock, reset)
|
||||
variable temp : signed(15 downto 0) ;
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
phase <= (others =>'0') ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
if( inputs.valid = '1' ) then
|
||||
temp := phase + inputs.dphase ;
|
||||
if( temp > 4096 ) then
|
||||
temp := temp - 8192 ;
|
||||
elsif( temp < -4096 ) then
|
||||
temp := temp + 8192 ;
|
||||
end if ;
|
||||
phase <= temp ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
cordic_inputs <= ( x => to_signed(1234,16), y => (others =>'0'), z => phase, valid => inputs.valid ) ;
|
||||
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_ROTATION,
|
||||
inputs => cordic_inputs,
|
||||
outputs => cordic_outputs
|
||||
) ;
|
||||
|
||||
outputs.re <= cordic_outputs.x ;
|
||||
outputs.im <= cordic_outputs.y ;
|
||||
outputs.valid <= cordic_outputs.valid ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
package nco_p is
|
||||
|
||||
type nco_input_t is record
|
||||
dphase : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
type nco_output_t is record
|
||||
re : signed(15 downto 0) ;
|
||||
im : signed(15 downto 0) ;
|
||||
valid : std_logic ;
|
||||
end record ;
|
||||
|
||||
end package ; -- nco_p
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity nco is
|
||||
port (
|
||||
clock : in std_logic ;
|
||||
reset : in std_logic ;
|
||||
inputs : in nco_input_t ;
|
||||
outputs : out nco_output_t
|
||||
) ;
|
||||
end entity ; -- nco
|
||||
|
||||
architecture arch of nco is
|
||||
|
||||
signal phase : signed(15 downto 0) ;
|
||||
|
||||
signal cordic_inputs : cordic_xyz_t ;
|
||||
signal cordic_outputs : cordic_xyz_t ;
|
||||
|
||||
begin
|
||||
|
||||
accumulate_phase : process(clock, reset)
|
||||
variable temp : signed(15 downto 0) ;
|
||||
begin
|
||||
if( reset = '1' ) then
|
||||
phase <= (others =>'0') ;
|
||||
elsif( rising_edge( clock ) ) then
|
||||
if( inputs.valid = '1' ) then
|
||||
temp := phase + inputs.dphase ;
|
||||
if( temp > 4096 ) then
|
||||
temp := temp - 8192 ;
|
||||
elsif( temp < -4096 ) then
|
||||
temp := temp + 8192 ;
|
||||
end if ;
|
||||
phase <= temp ;
|
||||
end if ;
|
||||
end if ;
|
||||
end process ;
|
||||
|
||||
cordic_inputs <= ( x => to_signed(1234,16), y => (others =>'0'), z => phase, valid => inputs.valid ) ;
|
||||
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_ROTATION,
|
||||
inputs => cordic_inputs,
|
||||
outputs => cordic_outputs
|
||||
) ;
|
||||
|
||||
outputs.re <= cordic_outputs.x ;
|
||||
outputs.im <= cordic_outputs.y ;
|
||||
outputs.valid <= cordic_outputs.valid ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,104 +1,104 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity cordic_tb is
|
||||
end entity ; -- cordic_tb
|
||||
|
||||
architecture arch of cordic_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
signal inputs : cordic_xyz_t := ( x => (others =>'0'), y => (others =>'0'), z => (others =>'0'), valid => '0' );
|
||||
signal outputs : cordic_xyz_t ;
|
||||
signal outputs2 : cordic_xyz_t ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ; -- nop
|
||||
|
||||
begin
|
||||
|
||||
-- Generate clock
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
-- Magnitude/phase to cos+isin
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_ROTATION,
|
||||
inputs => inputs,
|
||||
outputs => outputs
|
||||
) ;
|
||||
|
||||
-- cos+isin to magnitude/phase
|
||||
U_cordic2 : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_VECTORING,
|
||||
inputs => outputs,
|
||||
outputs => outputs2
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable ang : integer := 0 ;
|
||||
variable dang : integer := integer(round(0.01*4096.0)) ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
ang := 0 ;
|
||||
inputs.x <= to_signed( integer(round(4096.0/1.66)), inputs.x'length ) ;
|
||||
inputs.y <= to_signed( 0, inputs.y'length ) ;
|
||||
for i in 0 to 10000 loop
|
||||
inputs.z <= to_signed( ang, inputs.z'length ) ;
|
||||
inputs.valid <= '1' ;
|
||||
wait until rising_edge( clock ) ;
|
||||
inputs.valid <= '0' ;
|
||||
nop( clock, 20 ) ;
|
||||
ang := ang + dang ;
|
||||
if( ang > 4096 ) then
|
||||
ang := ang - 8192 ;
|
||||
elsif( ang < -4096 ) then
|
||||
ang := ang + 8192 ;
|
||||
end if ;
|
||||
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
|
||||
entity cordic_tb is
|
||||
end entity ; -- cordic_tb
|
||||
|
||||
architecture arch of cordic_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
signal inputs : cordic_xyz_t := ( x => (others =>'0'), y => (others =>'0'), z => (others =>'0'), valid => '0' );
|
||||
signal outputs : cordic_xyz_t ;
|
||||
signal outputs2 : cordic_xyz_t ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ; -- nop
|
||||
|
||||
begin
|
||||
|
||||
-- Generate clock
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
-- Magnitude/phase to cos+isin
|
||||
U_cordic : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_ROTATION,
|
||||
inputs => inputs,
|
||||
outputs => outputs
|
||||
) ;
|
||||
|
||||
-- cos+isin to magnitude/phase
|
||||
U_cordic2 : entity work.cordic
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
mode => CORDIC_VECTORING,
|
||||
inputs => outputs,
|
||||
outputs => outputs2
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable ang : integer := 0 ;
|
||||
variable dang : integer := integer(round(0.01*4096.0)) ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
ang := 0 ;
|
||||
inputs.x <= to_signed( integer(round(4096.0/1.66)), inputs.x'length ) ;
|
||||
inputs.y <= to_signed( 0, inputs.y'length ) ;
|
||||
for i in 0 to 10000 loop
|
||||
inputs.z <= to_signed( ang, inputs.z'length ) ;
|
||||
inputs.valid <= '1' ;
|
||||
wait until rising_edge( clock ) ;
|
||||
inputs.valid <= '0' ;
|
||||
nop( clock, 20 ) ;
|
||||
ang := ang + dang ;
|
||||
if( ang > 4096 ) then
|
||||
ang := ang - 8192 ;
|
||||
elsif( ang < -4096 ) then
|
||||
ang := ang + 8192 ;
|
||||
end if ;
|
||||
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,103 +1,103 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
entity fsk_tb is
|
||||
end entity ; -- fsk_tb
|
||||
|
||||
architecture arch of fsk_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
|
||||
signal tx_symbol : std_logic := '0' ;
|
||||
signal tx_valid : std_logic := '0' ;
|
||||
|
||||
signal tx_sig_real : signed(15 downto 0) ;
|
||||
signal tx_sig_imag : signed(15 downto 0) ;
|
||||
signal tx_sig_valid : std_logic ;
|
||||
|
||||
signal rx_symbol : signed(15 downto 0) ;
|
||||
signal rx_valid : std_logic ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_fsk_modulator : entity work.fsk_modulator
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
symbol => tx_symbol,
|
||||
symbol_valid => tx_valid,
|
||||
out_real => tx_sig_real,
|
||||
out_imag => tx_sig_imag,
|
||||
out_valid => tx_sig_valid
|
||||
) ;
|
||||
|
||||
U_fsk_demodulator : entity work.fsk_demodulator
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
in_real => tx_sig_real,
|
||||
in_imag => tx_sig_imag,
|
||||
in_valid => tx_sig_valid,
|
||||
out_ssd => rx_symbol,
|
||||
out_valid => rx_valid
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable s1, s2 : natural ;
|
||||
variable random : real ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
s1 := 1234 ;
|
||||
s2 := 2345 ;
|
||||
for i in 0 to 10000 loop
|
||||
uniform( s1, s2, random ) ;
|
||||
if( random >= 0.5 ) then
|
||||
tx_symbol <= '1' ;
|
||||
else
|
||||
tx_symbol <= '0' ;
|
||||
end if ;
|
||||
tx_valid <= '1' ;
|
||||
nop( clock, 50 ) ;
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
use ieee.math_real.all ;
|
||||
|
||||
entity fsk_tb is
|
||||
end entity ; -- fsk_tb
|
||||
|
||||
architecture arch of fsk_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
|
||||
signal tx_symbol : std_logic := '0' ;
|
||||
signal tx_valid : std_logic := '0' ;
|
||||
|
||||
signal tx_sig_real : signed(15 downto 0) ;
|
||||
signal tx_sig_imag : signed(15 downto 0) ;
|
||||
signal tx_sig_valid : std_logic ;
|
||||
|
||||
signal rx_symbol : signed(15 downto 0) ;
|
||||
signal rx_valid : std_logic ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_fsk_modulator : entity work.fsk_modulator
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
symbol => tx_symbol,
|
||||
symbol_valid => tx_valid,
|
||||
out_real => tx_sig_real,
|
||||
out_imag => tx_sig_imag,
|
||||
out_valid => tx_sig_valid
|
||||
) ;
|
||||
|
||||
U_fsk_demodulator : entity work.fsk_demodulator
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
in_real => tx_sig_real,
|
||||
in_imag => tx_sig_imag,
|
||||
in_valid => tx_sig_valid,
|
||||
out_ssd => rx_symbol,
|
||||
out_valid => rx_valid
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable s1, s2 : natural ;
|
||||
variable random : real ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
s1 := 1234 ;
|
||||
s2 := 2345 ;
|
||||
for i in 0 to 10000 loop
|
||||
uniform( s1, s2, random ) ;
|
||||
if( random >= 0.5 ) then
|
||||
tx_symbol <= '1' ;
|
||||
else
|
||||
tx_symbol <= '0' ;
|
||||
end if ;
|
||||
tx_valid <= '1' ;
|
||||
nop( clock, 50 ) ;
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,92 +1,92 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity nco_tb is
|
||||
end entity ; -- nco_tb
|
||||
|
||||
architecture arch of nco_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
|
||||
signal inputs : nco_input_t := ( dphase => (others =>'0'), valid => '0' );
|
||||
signal outputs : nco_output_t ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_nco : entity work.nco
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
inputs => inputs,
|
||||
outputs => outputs
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable up_downx : boolean := true ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
for i in 0 to 100000 loop
|
||||
if( inputs.dphase = 4096 ) then
|
||||
up_downx := false ;
|
||||
elsif( inputs.dphase = -4096 ) then
|
||||
up_downx := true ;
|
||||
end if ;
|
||||
|
||||
if( up_downx ) then
|
||||
inputs.dphase <= inputs.dphase + 1 ;
|
||||
else
|
||||
inputs.dphase <= inputs.dphase - 1 ;
|
||||
end if ;
|
||||
|
||||
inputs.valid <= '1' ;
|
||||
wait until rising_edge( clock ) ;
|
||||
inputs.valid <= '0' ;
|
||||
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
library work ;
|
||||
use work.cordic_p.all ;
|
||||
use work.nco_p.all ;
|
||||
|
||||
entity nco_tb is
|
||||
end entity ; -- nco_tb
|
||||
|
||||
architecture arch of nco_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
|
||||
signal inputs : nco_input_t := ( dphase => (others =>'0'), valid => '0' );
|
||||
signal outputs : nco_output_t ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge( clock ) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_nco : entity work.nco
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
inputs => inputs,
|
||||
outputs => outputs
|
||||
) ;
|
||||
|
||||
tb : process
|
||||
variable up_downx : boolean := true ;
|
||||
begin
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
for i in 0 to 100000 loop
|
||||
if( inputs.dphase = 4096 ) then
|
||||
up_downx := false ;
|
||||
elsif( inputs.dphase = -4096 ) then
|
||||
up_downx := true ;
|
||||
end if ;
|
||||
|
||||
if( up_downx ) then
|
||||
inputs.dphase <= inputs.dphase + 1 ;
|
||||
else
|
||||
inputs.dphase <= inputs.dphase - 1 ;
|
||||
end if ;
|
||||
|
||||
inputs.valid <= '1' ;
|
||||
wait until rising_edge( clock ) ;
|
||||
inputs.valid <= '0' ;
|
||||
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
end loop ;
|
||||
|
||||
report "-- End of Simulation --" severity failure ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,143 +1,143 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity uart_tb is
|
||||
end entity ; -- uart_tb
|
||||
|
||||
architecture arch of uart_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
signal enable : std_logic := '0' ;
|
||||
|
||||
signal rs232_rxd : std_logic ;
|
||||
signal rs232_txd : std_logic := '1' ;
|
||||
|
||||
signal txd_we : std_logic ;
|
||||
signal txd_full : std_logic := '0' ;
|
||||
signal txd_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
signal rxd_re : std_logic ;
|
||||
signal rxd_empty : std_logic := '1' ;
|
||||
signal rxd_data : std_logic_vector(7 downto 0) := (others =>'0') ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge(clock) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
procedure uart_send( signal clock : in std_logic ; signal txd : out std_logic ; data : in std_logic_vector(7 downto 0) ; cpb : in natural ) is
|
||||
begin
|
||||
wait until rising_edge(clock) ;
|
||||
-- Send start bit
|
||||
txd <= '0' ;
|
||||
nop( clock, cpb ) ;
|
||||
|
||||
-- Send data
|
||||
for i in 0 to data'high loop
|
||||
txd <= data(i) ;
|
||||
nop( clock, cpb ) ;
|
||||
end loop ;
|
||||
|
||||
-- Send stop bit
|
||||
txd <= '1' ;
|
||||
nop( clock, cpb ) ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_uart : entity work.uart
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
enable => enable,
|
||||
|
||||
rs232_rxd => rs232_rxd,
|
||||
rs232_txd => rs232_txd,
|
||||
|
||||
txd_we => txd_we,
|
||||
txd_full => txd_full,
|
||||
txd_data => txd_data,
|
||||
|
||||
rxd_re => rxd_re,
|
||||
rxd_empty => rxd_empty,
|
||||
rxd_data => rxd_data
|
||||
) ;
|
||||
|
||||
stimulate : process
|
||||
begin
|
||||
-- Reset
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- Done with reset ...
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- Make sure we don't do anything when we aren't enabled ...
|
||||
enable <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- ... and now lets go!
|
||||
enable <= '1' ;
|
||||
nop( clock, 100000 ) ;
|
||||
|
||||
-- Ding!
|
||||
report "-- End of Simulation -- " severity failure ;
|
||||
|
||||
end process ;
|
||||
|
||||
-- Just keep sending data in from the UART
|
||||
simulate_uart_sending : process
|
||||
variable val : natural := 0 ;
|
||||
begin
|
||||
rs232_txd <= '1' ;
|
||||
wait until enable = '1' ;
|
||||
nop( clock, 100 ) ;
|
||||
while true loop
|
||||
uart_send( clock, rs232_txd, std_logic_vector(to_unsigned(val,8)), 10 ) ;
|
||||
val := (val + 1) mod 256 ;
|
||||
--nop( clock, 5 ) ;
|
||||
end loop ;
|
||||
end process ;
|
||||
|
||||
-- Feedback data continuously
|
||||
simulate_s2u_fifo : process
|
||||
begin
|
||||
rxd_empty <= '1' ;
|
||||
wait until enable = '1' ;
|
||||
nop( clock, 100 ) ;
|
||||
rxd_empty <= '0' ;
|
||||
rxd_data <= (others =>'0') ;
|
||||
while true loop
|
||||
wait until rising_edge( clock ) and rxd_re = '1' ;
|
||||
rxd_data <= std_logic_vector(unsigned(rxd_data)+1) ;
|
||||
end loop ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity uart_tb is
|
||||
end entity ; -- uart_tb
|
||||
|
||||
architecture arch of uart_tb is
|
||||
|
||||
signal clock : std_logic := '1' ;
|
||||
signal reset : std_logic := '1' ;
|
||||
signal enable : std_logic := '0' ;
|
||||
|
||||
signal rs232_rxd : std_logic ;
|
||||
signal rs232_txd : std_logic := '1' ;
|
||||
|
||||
signal txd_we : std_logic ;
|
||||
signal txd_full : std_logic := '0' ;
|
||||
signal txd_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
signal rxd_re : std_logic ;
|
||||
signal rxd_empty : std_logic := '1' ;
|
||||
signal rxd_data : std_logic_vector(7 downto 0) := (others =>'0') ;
|
||||
|
||||
procedure nop( signal clock : in std_logic ; count : in natural ) is
|
||||
begin
|
||||
for i in 1 to count loop
|
||||
wait until rising_edge(clock) ;
|
||||
end loop ;
|
||||
end procedure ;
|
||||
|
||||
procedure uart_send( signal clock : in std_logic ; signal txd : out std_logic ; data : in std_logic_vector(7 downto 0) ; cpb : in natural ) is
|
||||
begin
|
||||
wait until rising_edge(clock) ;
|
||||
-- Send start bit
|
||||
txd <= '0' ;
|
||||
nop( clock, cpb ) ;
|
||||
|
||||
-- Send data
|
||||
for i in 0 to data'high loop
|
||||
txd <= data(i) ;
|
||||
nop( clock, cpb ) ;
|
||||
end loop ;
|
||||
|
||||
-- Send stop bit
|
||||
txd <= '1' ;
|
||||
nop( clock, cpb ) ;
|
||||
end procedure ;
|
||||
|
||||
begin
|
||||
|
||||
clock <= not clock after 1 ns ;
|
||||
|
||||
U_uart : entity work.uart
|
||||
port map (
|
||||
clock => clock,
|
||||
reset => reset,
|
||||
enable => enable,
|
||||
|
||||
rs232_rxd => rs232_rxd,
|
||||
rs232_txd => rs232_txd,
|
||||
|
||||
txd_we => txd_we,
|
||||
txd_full => txd_full,
|
||||
txd_data => txd_data,
|
||||
|
||||
rxd_re => rxd_re,
|
||||
rxd_empty => rxd_empty,
|
||||
rxd_data => rxd_data
|
||||
) ;
|
||||
|
||||
stimulate : process
|
||||
begin
|
||||
-- Reset
|
||||
reset <= '1' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- Done with reset ...
|
||||
reset <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- Make sure we don't do anything when we aren't enabled ...
|
||||
enable <= '0' ;
|
||||
nop( clock, 10 ) ;
|
||||
|
||||
-- ... and now lets go!
|
||||
enable <= '1' ;
|
||||
nop( clock, 100000 ) ;
|
||||
|
||||
-- Ding!
|
||||
report "-- End of Simulation -- " severity failure ;
|
||||
|
||||
end process ;
|
||||
|
||||
-- Just keep sending data in from the UART
|
||||
simulate_uart_sending : process
|
||||
variable val : natural := 0 ;
|
||||
begin
|
||||
rs232_txd <= '1' ;
|
||||
wait until enable = '1' ;
|
||||
nop( clock, 100 ) ;
|
||||
while true loop
|
||||
uart_send( clock, rs232_txd, std_logic_vector(to_unsigned(val,8)), 10 ) ;
|
||||
val := (val + 1) mod 256 ;
|
||||
--nop( clock, 5 ) ;
|
||||
end loop ;
|
||||
end process ;
|
||||
|
||||
-- Feedback data continuously
|
||||
simulate_s2u_fifo : process
|
||||
begin
|
||||
rxd_empty <= '1' ;
|
||||
wait until enable = '1' ;
|
||||
nop( clock, 100 ) ;
|
||||
rxd_empty <= '0' ;
|
||||
rxd_data <= (others =>'0') ;
|
||||
while true loop
|
||||
wait until rising_edge( clock ) and rxd_re = '1' ;
|
||||
rxd_data <= std_logic_vector(unsigned(rxd_data)+1) ;
|
||||
end loop ;
|
||||
end process ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -1,134 +1,134 @@
|
|||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity uart_bridge is
|
||||
port (
|
||||
-- UART Interface
|
||||
uart_clock : in std_logic ;
|
||||
uart_reset : in std_logic ;
|
||||
uart_enable : in std_logic ;
|
||||
uart_rxd : out std_logic ;
|
||||
uart_txd : out std_logic ;
|
||||
|
||||
-- SPI Interface
|
||||
spi_clock : in std_logic ;
|
||||
spi_reset : in std_logic ;
|
||||
spi_sclk : out std_logic ;
|
||||
spi_miso : in std_logic ;
|
||||
spi_mosi : out std_logic ;
|
||||
spi_csn : out std_logic
|
||||
) ;
|
||||
end entity ; -- uart_bridge
|
||||
|
||||
architecture arch of uart_bridge is
|
||||
|
||||
-- UART to SPI FIFO signals
|
||||
signal u2s_write : std_logic ;
|
||||
signal u2s_full : std_logic ;
|
||||
signal u2s_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
-- SPI to UART FIFO signals
|
||||
signal s2u_read : std_logic ;
|
||||
signal s2u_empty : std_logic ;
|
||||
signal s2u_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
begin
|
||||
|
||||
-- UART interface
|
||||
U_uart : entity work.uart
|
||||
port map (
|
||||
-- Control signals
|
||||
clock => uart_clock,
|
||||
reset => uart_reset,
|
||||
enable => uart_enable,
|
||||
|
||||
-- External UART signals
|
||||
rs232_rxd => uart_rxd,
|
||||
rs232_txd => uart_txd,
|
||||
|
||||
-- FIFO signals for UART to FIFO from external interface
|
||||
txd_we => u2s_write,
|
||||
txd_full => u2s_full,
|
||||
txd_wdata => u2s_data,
|
||||
|
||||
-- FIFO signals for FIFO to UART to be transmitted back
|
||||
rxd_re => s2u_read,
|
||||
rxd_empty => s2u_empty,
|
||||
rxd_rdata => s2u_data
|
||||
) ;
|
||||
|
||||
-- Dual clock FIFO for UART -> SPI comms
|
||||
U_u2s_fifo : entity work.async_fifo
|
||||
port map (
|
||||
-- Write side: UART
|
||||
w_clock => uart_clock,
|
||||
w_enable => u2s_write,
|
||||
w_data => u2s_data,
|
||||
w_empty => open,
|
||||
w_full => u2s_full,
|
||||
|
||||
-- Read side: SPI
|
||||
r_clock => spi_clock,
|
||||
r_enable => spi_read,
|
||||
r_data => spi_data,
|
||||
r_empty => spi_empty,
|
||||
r_full => open
|
||||
) ;
|
||||
|
||||
-- Dual clock FIFO for SPI -> UART comms
|
||||
U_s2u_fifo : entity work.async_fifo
|
||||
port map (
|
||||
-- Write side: SPI
|
||||
w_clock => spi_clock,
|
||||
w_enable => spi_readback_wen,
|
||||
w_data => spi_readback_data,
|
||||
w_empty => open,
|
||||
w_full => s2u_full,
|
||||
|
||||
-- Read side: UART
|
||||
r_clock => uart_clock,
|
||||
r_enable => s2u_read,
|
||||
r_data => s2u_data,
|
||||
r_empty => s2u_empty,
|
||||
r_full => open
|
||||
) ;
|
||||
|
||||
-- LMS SPI interface
|
||||
U_lms_spi : entity lms_spi
|
||||
port map (
|
||||
-- Control signals
|
||||
clock => spi_clock,
|
||||
reset => spi_reset,
|
||||
|
||||
-- SPI data stream
|
||||
spi_data => spi_data,
|
||||
spi_read => spi_read,
|
||||
spi_empty => spi_empty,
|
||||
|
||||
-- SPI readback data stream
|
||||
readback_data => spi_readback_data,
|
||||
readback_enable => spi_readback_wen
|
||||
) ;
|
||||
|
||||
end architecture ; -- arch
|
||||
-- Copyright (c) 2013 Nuand LLC
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
-- of this software and associated documentation files (the "Software"), to deal
|
||||
-- in the Software without restriction, including without limitation the rights
|
||||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
-- copies of the Software, and to permit persons to whom the Software is
|
||||
-- furnished to do so, subject to the following conditions:
|
||||
--
|
||||
-- The above copyright notice and this permission notice shall be included in
|
||||
-- all copies or substantial portions of the Software.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
-- THE SOFTWARE.
|
||||
|
||||
library ieee ;
|
||||
use ieee.std_logic_1164.all ;
|
||||
use ieee.numeric_std.all ;
|
||||
|
||||
entity uart_bridge is
|
||||
port (
|
||||
-- UART Interface
|
||||
uart_clock : in std_logic ;
|
||||
uart_reset : in std_logic ;
|
||||
uart_enable : in std_logic ;
|
||||
uart_rxd : out std_logic ;
|
||||
uart_txd : out std_logic ;
|
||||
|
||||
-- SPI Interface
|
||||
spi_clock : in std_logic ;
|
||||
spi_reset : in std_logic ;
|
||||
spi_sclk : out std_logic ;
|
||||
spi_miso : in std_logic ;
|
||||
spi_mosi : out std_logic ;
|
||||
spi_csn : out std_logic
|
||||
) ;
|
||||
end entity ; -- uart_bridge
|
||||
|
||||
architecture arch of uart_bridge is
|
||||
|
||||
-- UART to SPI FIFO signals
|
||||
signal u2s_write : std_logic ;
|
||||
signal u2s_full : std_logic ;
|
||||
signal u2s_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
-- SPI to UART FIFO signals
|
||||
signal s2u_read : std_logic ;
|
||||
signal s2u_empty : std_logic ;
|
||||
signal s2u_data : std_logic_vector(7 downto 0) ;
|
||||
|
||||
begin
|
||||
|
||||
-- UART interface
|
||||
U_uart : entity work.uart
|
||||
port map (
|
||||
-- Control signals
|
||||
clock => uart_clock,
|
||||
reset => uart_reset,
|
||||
enable => uart_enable,
|
||||
|
||||
-- External UART signals
|
||||
rs232_rxd => uart_rxd,
|
||||
rs232_txd => uart_txd,
|
||||
|
||||
-- FIFO signals for UART to FIFO from external interface
|
||||
txd_we => u2s_write,
|
||||
txd_full => u2s_full,
|
||||
txd_wdata => u2s_data,
|
||||
|
||||
-- FIFO signals for FIFO to UART to be transmitted back
|
||||
rxd_re => s2u_read,
|
||||
rxd_empty => s2u_empty,
|
||||
rxd_rdata => s2u_data
|
||||
) ;
|
||||
|
||||
-- Dual clock FIFO for UART -> SPI comms
|
||||
U_u2s_fifo : entity work.async_fifo
|
||||
port map (
|
||||
-- Write side: UART
|
||||
w_clock => uart_clock,
|
||||
w_enable => u2s_write,
|
||||
w_data => u2s_data,
|
||||
w_empty => open,
|
||||
w_full => u2s_full,
|
||||
|
||||
-- Read side: SPI
|
||||
r_clock => spi_clock,
|
||||
r_enable => spi_read,
|
||||
r_data => spi_data,
|
||||
r_empty => spi_empty,
|
||||
r_full => open
|
||||
) ;
|
||||
|
||||
-- Dual clock FIFO for SPI -> UART comms
|
||||
U_s2u_fifo : entity work.async_fifo
|
||||
port map (
|
||||
-- Write side: SPI
|
||||
w_clock => spi_clock,
|
||||
w_enable => spi_readback_wen,
|
||||
w_data => spi_readback_data,
|
||||
w_empty => open,
|
||||
w_full => s2u_full,
|
||||
|
||||
-- Read side: UART
|
||||
r_clock => uart_clock,
|
||||
r_enable => s2u_read,
|
||||
r_data => s2u_data,
|
||||
r_empty => s2u_empty,
|
||||
r_full => open
|
||||
) ;
|
||||
|
||||
-- LMS SPI interface
|
||||
U_lms_spi : entity lms_spi
|
||||
port map (
|
||||
-- Control signals
|
||||
clock => spi_clock,
|
||||
reset => spi_reset,
|
||||
|
||||
-- SPI data stream
|
||||
spi_data => spi_data,
|
||||
spi_read => spi_read,
|
||||
spi_empty => spi_empty,
|
||||
|
||||
-- SPI readback data stream
|
||||
readback_data => spi_readback_data,
|
||||
readback_enable => spi_readback_wen
|
||||
) ;
|
||||
|
||||
end architecture ; -- arch
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# FX3 PLL
|
||||
echo "Build FX3 PLL"
|
||||
ip-generate.exe \
|
||||
ip-generate \
|
||||
--output-directory="fx3_pll" \
|
||||
--output-name="fx3_pll" \
|
||||
--remove-qsys-generate-warning \
|
||||
|
|
@ -22,7 +22,7 @@ ip-generate.exe \
|
|||
|
||||
# System PLL
|
||||
echo "Build System PLL"
|
||||
ip-generate.exe \
|
||||
ip-generate \
|
||||
--output-directory="system_pll" \
|
||||
--output-name="system_pll" \
|
||||
--remove-qsys-generate-warning \
|
||||
|
|
|
|||
|
|
@ -1,50 +1,524 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="cdt.managedbuild.toolchain.gnu.cross.base.17224070">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.cross.base.17224070" moduleId="org.eclipse.cdt.core.settings" name="Default">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration buildProperties="" id="cdt.managedbuild.toolchain.gnu.cross.base.17224070" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||
<folderInfo id="cdt.managedbuild.toolchain.gnu.cross.base.17224070.1633983466" name="/" resourcePath="">
|
||||
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.base.447565788" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.base">
|
||||
<option id="cdt.managedbuild.option.gnu.cross.prefix.831410452" name="Prefix" superClass="cdt.managedbuild.option.gnu.cross.prefix"/>
|
||||
<option id="cdt.managedbuild.option.gnu.cross.path.527300648" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path"/>
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.181473810" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
|
||||
<builder id="cdt.managedbuild.builder.gnu.cross.1035497258" managedBuildOn="false" name="Gnu Make Builder.Default" superClass="cdt.managedbuild.builder.gnu.cross"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.1264279326" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.808427911" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.1833819473" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.379737521" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1099174303" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.1496107346" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
<scannerConfigBuildInfo instanceId="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339;preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339.;cdt.managedbuild.tool.gnu.c.compiler.cygwin.base.1009810634;cdt.managedbuild.tool.gnu.c.compiler.input.cygwin.147388906">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339;preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339.;cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.base.1631729392;cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin.842138811">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="test1.null.1998559220" name="test1"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
<buildSystem id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339">
|
||||
<storageModule id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339" moduleId="org.eclipse.cdt.core.settings"/>
|
||||
</buildSystem>
|
||||
<cconfiguration id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339">
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="bladeRF_nios" buildProperties="" description="" id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339" name="Nios II" parent="org.eclipse.cdt.build.core.prefbase.cfg">
|
||||
<folderInfo id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339." name="/" resourcePath="">
|
||||
<toolChain id="altera.nios2.mingw.gcc4.1252612423" name="MinGW Nios II GCC4" superClass="altera.nios2.mingw.gcc4">
|
||||
<targetPlatform id="altera.nios2.mingw.gcc4.1914476081" name="Nios II" superClass="altera.nios2.mingw.gcc4"/>
|
||||
<builder buildPath="${workspace_loc://bladeRF_nios}" id="cdt.managedbuild.target.gnu.builder.cygwin.base.656724989" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.cygwin.base"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.assembler.cygwin.base.1204759541" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.cygwin.base">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.802842597" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.archiver.cygwin.base.1706665657" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.cygwin.base"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.base.1631729392" name="Cygwin C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.base">
|
||||
<option id="gnu.cpp.compiler.option.preprocessor.undef.1851588163" name="Undefined symbols (-U)" superClass="gnu.cpp.compiler.option.preprocessor.undef" valueType="undefDefinedSymbols">
|
||||
<listOptionValue builtIn="false" value="__INT_FAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SCHAR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTPTR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__unix__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="_stdcall"/>
|
||||
<listOptionValue builtIn="false" value="__SHRT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_WCHAR_T__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_PTRDIFF_T__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_TYPEINFO_EQUALITY_INLINE"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_DOUBLE__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__INTPTR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__cdecl"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_PATCHLEVEL__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_POINTER__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__CYGWIN32__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__i386"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG_LONG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_MERGED_TYPEINFO_NAMES"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_RADIX__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__pentiumpro__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__i686"/>
|
||||
<listOptionValue builtIn="false" value="__LONG_LONG_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__NO_INLINE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__unix"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__fastcall"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INTPTR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__PTRDIFF_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZE_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_WEAK__"/>
|
||||
<listOptionValue builtIn="false" value="__i686__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="unix"/>
|
||||
<listOptionValue builtIn="false" value="__stdcall"/>
|
||||
<listOptionValue builtIn="false" value="__cplusplus"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_EVAL_METHOD__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="_X86_"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__PRAGMA_REDEFINE_EXTNAME"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__REGISTER_PREFIX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__CYGWIN__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"/>
|
||||
<listOptionValue builtIn="false" value="i386"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTPTR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_ABI_VERSION"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG_DOUBLE__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"/>
|
||||
<listOptionValue builtIn="false" value="__SIZE_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__EXCEPTIONS"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="_cdecl"/>
|
||||
<listOptionValue builtIn="false" value="__DEPRECATED"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_RTTI"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_SIZE_T__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_MINOR__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__BIGGEST_ALIGNMENT__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__STDC__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_FLOAT__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__VERSION__"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_WINT_T__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_INT__"/>
|
||||
<listOptionValue builtIn="false" value="__USER_LABEL_PREFIX__"/>
|
||||
<listOptionValue builtIn="false" value="__LONG_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__pentiumpro"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__PTRDIFF_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__i386__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR_BIT__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_SHORT__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC_EVAL_METHOD__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_GNU_INLINE__"/>
|
||||
<listOptionValue builtIn="false" value="_fastcall"/>
|
||||
<listOptionValue builtIn="false" value="__declspec(x)"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__STDC_HOSTED__"/>
|
||||
<listOptionValue builtIn="false" value="__DECIMAL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_UNSIGNED__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FINITE_MATH_ONLY__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR16_TYPE__"/>
|
||||
</option>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin.842138811" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.compiler.cygwin.base.1009810634" name="Cygwin C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.cygwin.base">
|
||||
<option id="gnu.c.compiler.option.preprocessor.undef.symbol.937831354" name="Undefined symbols (-U)" superClass="gnu.c.compiler.option.preprocessor.undef.symbol" valueType="undefDefinedSymbols">
|
||||
<listOptionValue builtIn="false" value="__INT_FAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SCHAR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTPTR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__unix__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="_stdcall"/>
|
||||
<listOptionValue builtIn="false" value="__SHRT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_WCHAR_T__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_PTRDIFF_T__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_TYPEINFO_EQUALITY_INLINE"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_DOUBLE__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__INTPTR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__cdecl"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_PATCHLEVEL__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_POINTER__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__CYGWIN32__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__i386"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG_LONG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_MERGED_TYPEINFO_NAMES"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_RADIX__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__pentiumpro__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__i686"/>
|
||||
<listOptionValue builtIn="false" value="__LONG_LONG_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__NO_INLINE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__unix"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__fastcall"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INTPTR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__PTRDIFF_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZE_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__i686__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="unix"/>
|
||||
<listOptionValue builtIn="false" value="__stdcall"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_EVAL_METHOD__"/>
|
||||
<listOptionValue builtIn="false" value="_X86_"/>
|
||||
<listOptionValue builtIn="false" value="__UINT16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__PRAGMA_REDEFINE_EXTNAME"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__REGISTER_PREFIX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_DENORM_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__CYGWIN__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"/>
|
||||
<listOptionValue builtIn="false" value="i386"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTPTR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_HAS_DENORM__"/>
|
||||
<listOptionValue builtIn="false" value="__GXX_ABI_VERSION"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MIN_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG_DOUBLE__"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"/>
|
||||
<listOptionValue builtIn="false" value="__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"/>
|
||||
<listOptionValue builtIn="false" value="__SIZE_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="_cdecl"/>
|
||||
<listOptionValue builtIn="false" value="__SIG_ATOMIC_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_SIZE_T__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST16_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_MINOR__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__BIGGEST_ALIGNMENT__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__WINT_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC64_EPSILON__"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_LEAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__STDC__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_FLOAT__"/>
|
||||
<listOptionValue builtIn="false" value="__INTMAX_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT_FAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC32_MAX_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__VERSION__"/>
|
||||
<listOptionValue builtIn="false" value="__INT32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__INT64_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_WINT_T__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_INT__"/>
|
||||
<listOptionValue builtIn="false" value="__USER_LABEL_PREFIX__"/>
|
||||
<listOptionValue builtIn="false" value="__LONG_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__pentiumpro"/>
|
||||
<listOptionValue builtIn="false" value="__INT8_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__INT16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST32_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__PTRDIFF_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_C(c)"/>
|
||||
<listOptionValue builtIn="false" value="__i386__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR_BIT__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_SUBNORMAL_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_HAS_QUIET_NAN__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_SHORT__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC_EVAL_METHOD__"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__DBL_MANT_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_FAST16_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT_LEAST64_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__DEC128_MIN__"/>
|
||||
<listOptionValue builtIn="false" value="__GNUC_GNU_INLINE__"/>
|
||||
<listOptionValue builtIn="false" value="_fastcall"/>
|
||||
<listOptionValue builtIn="false" value="__declspec(x)"/>
|
||||
<listOptionValue builtIn="false" value="__FLT_HAS_INFINITY__"/>
|
||||
<listOptionValue builtIn="false" value="__UINT8_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__STDC_HOSTED__"/>
|
||||
<listOptionValue builtIn="false" value="__DECIMAL_DIG__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX_10_EXP__"/>
|
||||
<listOptionValue builtIn="false" value="__SIZEOF_LONG__"/>
|
||||
<listOptionValue builtIn="false" value="__UINTMAX_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__LDBL_MAX__"/>
|
||||
<listOptionValue builtIn="false" value="__FINITE_MATH_ONLY__"/>
|
||||
<listOptionValue builtIn="false" value="__WCHAR_TYPE__"/>
|
||||
<listOptionValue builtIn="false" value="__CHAR16_TYPE__"/>
|
||||
</option>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.cygwin.147388906" superClass="cdt.managedbuild.tool.gnu.c.compiler.input.cygwin"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.linker.cygwin.base.227964594" name="Cygwin C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.base"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.cygwin.base.1294903400" name="Cygwin C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.cygwin.base">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.658614507" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
|
||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
||||
</inputType>
|
||||
</tool>
|
||||
<tool id="altera.tool.gnu.c.compiler.mingw.1156165052" name="Nios II GCC C Compiler" superClass="altera.tool.gnu.c.compiler.mingw">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.479999861" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="altera.tool.gnu.cpp.compiler.mingw.1974147634" name="Nios II GCC C++ Compiler" superClass="altera.tool.gnu.cpp.compiler.mingw">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1182290822" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="altera.tool.gnu.archiver.mingw.581246810" name="Nios II GCC Archiver" superClass="altera.tool.gnu.archiver.mingw"/>
|
||||
<tool id="altera.tool.gnu.c.linker.mingw.1248788786" name="Nios II GCC C Linker" superClass="altera.tool.gnu.c.linker.mingw"/>
|
||||
<tool id="altera.tool.gnu.assembler.mingw.1067107951" name="Nios II GCC Assembler" superClass="altera.tool.gnu.assembler.mingw">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.469807157" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339" moduleId="org.eclipse.cdt.core.settings" name="Nios II">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="bladeRF_nios.null.928137151" name="bladeRF_nios"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
<scannerConfigBuildInfo instanceId="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339;preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339.;cdt.managedbuild.tool.gnu.c.compiler.cygwin.base.1009810634;cdt.managedbuild.tool.gnu.c.compiler.input.cygwin.147388906">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339;preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339.;cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.base.1631729392;cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin.842138811">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
|
||||
<buildTargets>
|
||||
<target name="mem_init_install" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||
<buildCommand>make</buildCommand>
|
||||
<buildArguments/>
|
||||
<buildTarget>mem_init_install</buildTarget>
|
||||
<stopOnError>true</stopOnError>
|
||||
<useDefaultCommand>false</useDefaultCommand>
|
||||
<runAllBuilders>false</runAllBuilders>
|
||||
</target>
|
||||
<target name="mem_init_generate" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||
<buildCommand>make</buildCommand>
|
||||
<buildArguments/>
|
||||
<buildTarget>mem_init_generate</buildTarget>
|
||||
<stopOnError>true</stopOnError>
|
||||
<useDefaultCommand>false</useDefaultCommand>
|
||||
<runAllBuilders>false</runAllBuilders>
|
||||
</target>
|
||||
<target name="help" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||
<buildCommand>make</buildCommand>
|
||||
<buildArguments/>
|
||||
<buildTarget>help</buildTarget>
|
||||
<stopOnError>true</stopOnError>
|
||||
<useDefaultCommand>false</useDefaultCommand>
|
||||
<runAllBuilders>false</runAllBuilders>
|
||||
</target>
|
||||
</buildTargets>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
||||
<configuration configurationName="Nios II">
|
||||
<resource resourceType="PROJECT" workspacePath="/bladeRF_nios"/>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
||||
</cproject>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project>
|
||||
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.17224070" name="Default">
|
||||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
||||
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="-1306444479900" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
</extension>
|
||||
</configuration>
|
||||
</project>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project>
|
||||
<configuration id="preference.org.eclipse.cdt.managedbuilder.core.configurationDataProvider.1762988339" name="Nios II">
|
||||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="com.altera.sbtgui.project.importer.Nios2GCCBuiltinSpecsDetector" console="false" env-hash="-1534438009598365954" id="altera.tool.Nios2GCCBuiltinSpecsDetector" keep-relative-paths="false" name="Nios II GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
</extension>
|
||||
</configuration>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -81,8 +81,7 @@ $(LIBAD936X_BUILDDIR)/Makefile: $(LIBAD936X_MAKE_DEP)
|
|||
|
||||
$(LIBAD936X_BUILDDIR)/libad936x.a: $(LIBAD936X_BUILD_DEP)
|
||||
@$(ECHO) Info: Building libad936x
|
||||
#@$(MAKE) --no-print-directory -C $(LIBAD936X_BUILDDIR) ad936x
|
||||
@$(MAKE) -C $(LIBAD936X_BUILDDIR) ad936x
|
||||
@$(MAKE) --no-print-directory -C $(LIBAD936X_BUILDDIR) ad936x
|
||||
|
||||
# Ensure libad936x is built before the application objects that depend on its headers
|
||||
$(APP_OBJS): $(LIBAD936X_BUILDDIR)/libad936x.a
|
||||
|
|
|
|||
|
|
@ -1,311 +1,311 @@
|
|||
# Top level pins for bladeRF
|
||||
package require ::quartus::project
|
||||
|
||||
# IO Standard
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to c4_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_csx
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sdi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[16]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[15]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[14]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[13]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_present
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_miso
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_mosi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[31]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[30]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[29]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[28]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[27]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[26]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[25]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[24]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[23]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[22]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[21]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[20]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[19]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[18]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[17]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[16]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[15]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[14]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[13]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_cts
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_rxd
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_txd
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_pll_out
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_reset
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_clock_out
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_enable
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_iq_select
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sdio
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sen
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_enable
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_iq_select
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tck
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tms
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to c4_tx_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_clock_in
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[31]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[32]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[28]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[27]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[26]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[25]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[24]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[30]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[29]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[23]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[22]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[21]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[20]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[19]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[18]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[17]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to si_sda
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to mini_exp1
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to mini_exp2
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to ref_vctcxo_tune
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to ref_sma_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to si_scl
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_pclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_v[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_v[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_v[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_v[1]
|
||||
|
||||
# Location Assignments
|
||||
set_location_assignment PIN_A11 -to c4_clock
|
||||
set_location_assignment PIN_B10 -to dac_csx
|
||||
set_location_assignment PIN_B9 -to dac_sclk
|
||||
set_location_assignment PIN_A10 -to dac_sdi
|
||||
set_location_assignment PIN_A9 -to dac_sdo
|
||||
set_location_assignment PIN_M1 -to fx3_ctl[12]
|
||||
set_location_assignment PIN_J4 -to fx3_ctl[11]
|
||||
set_location_assignment PIN_J6 -to fx3_ctl[10]
|
||||
set_location_assignment PIN_N1 -to fx3_ctl[8]
|
||||
set_location_assignment PIN_G3 -to fx3_ctl[7]
|
||||
set_location_assignment PIN_F7 -to fx3_ctl[6]
|
||||
set_location_assignment PIN_B1 -to fx3_ctl[5]
|
||||
set_location_assignment PIN_C1 -to fx3_ctl[4]
|
||||
set_location_assignment PIN_H1 -to fx3_ctl[3]
|
||||
set_location_assignment PIN_H6 -to fx3_ctl[2]
|
||||
set_location_assignment PIN_F2 -to fx3_ctl[1]
|
||||
set_location_assignment PIN_F1 -to fx3_ctl[0]
|
||||
set_location_assignment PIN_AA1 -to fx3_gpif[31]
|
||||
set_location_assignment PIN_Y1 -to fx3_gpif[30]
|
||||
set_location_assignment PIN_AB3 -to fx3_gpif[29]
|
||||
set_location_assignment PIN_P1 -to fx3_gpif[28]
|
||||
set_location_assignment PIN_W7 -to fx3_gpif[27]
|
||||
set_location_assignment PIN_R2 -to fx3_gpif[26]
|
||||
set_location_assignment PIN_W6 -to fx3_gpif[25]
|
||||
set_location_assignment PIN_W1 -to fx3_gpif[24]
|
||||
set_location_assignment PIN_R1 -to fx3_gpif[23]
|
||||
set_location_assignment PIN_V5 -to fx3_gpif[22]
|
||||
set_location_assignment PIN_T4 -to fx3_gpif[21]
|
||||
set_location_assignment PIN_M4 -to fx3_gpif[20]
|
||||
set_location_assignment PIN_T5 -to fx3_gpif[19]
|
||||
set_location_assignment PIN_P4 -to fx3_gpif[18]
|
||||
set_location_assignment PIN_M6 -to fx3_gpif[17]
|
||||
set_location_assignment PIN_N6 -to fx3_gpif[16]
|
||||
set_location_assignment PIN_D1 -to fx3_gpif[15]
|
||||
set_location_assignment PIN_C8 -to fx3_gpif[14]
|
||||
set_location_assignment PIN_C7 -to fx3_gpif[13]
|
||||
set_location_assignment PIN_C4 -to fx3_gpif[12]
|
||||
set_location_assignment PIN_C6 -to fx3_gpif[11]
|
||||
set_location_assignment PIN_B3 -to fx3_gpif[10]
|
||||
set_location_assignment PIN_F10 -to fx3_gpif[9]
|
||||
set_location_assignment PIN_B4 -to fx3_gpif[8]
|
||||
set_location_assignment PIN_K1 -to fx3_gpif[7]
|
||||
set_location_assignment PIN_A8 -to fx3_gpif[6]
|
||||
set_location_assignment PIN_A3 -to fx3_gpif[5]
|
||||
set_location_assignment PIN_F8 -to fx3_gpif[4]
|
||||
set_location_assignment PIN_A5 -to fx3_gpif[3]
|
||||
set_location_assignment PIN_B8 -to fx3_gpif[2]
|
||||
set_location_assignment PIN_B7 -to fx3_gpif[1]
|
||||
set_location_assignment PIN_B6 -to fx3_gpif[0]
|
||||
set_location_assignment PIN_AA4 -to fx3_uart_cts
|
||||
set_location_assignment PIN_AA5 -to fx3_uart_rxd
|
||||
set_location_assignment PIN_AA3 -to fx3_uart_txd
|
||||
set_location_assignment PIN_T21 -to lms_pll_out
|
||||
set_location_assignment PIN_T22 -to lms_rx_clock_out
|
||||
set_location_assignment PIN_B22 -to lms_rx_data[11]
|
||||
set_location_assignment PIN_B21 -to lms_rx_data[10]
|
||||
set_location_assignment PIN_C22 -to lms_rx_data[9]
|
||||
set_location_assignment PIN_C21 -to lms_rx_data[8]
|
||||
set_location_assignment PIN_D22 -to lms_rx_data[7]
|
||||
set_location_assignment PIN_E21 -to lms_rx_data[6]
|
||||
set_location_assignment PIN_D21 -to lms_rx_data[5]
|
||||
set_location_assignment PIN_F21 -to lms_rx_data[4]
|
||||
set_location_assignment PIN_E22 -to lms_rx_data[3]
|
||||
set_location_assignment PIN_H21 -to lms_rx_data[2]
|
||||
set_location_assignment PIN_F22 -to lms_rx_data[1]
|
||||
set_location_assignment PIN_J21 -to lms_rx_data[0]
|
||||
set_location_assignment PIN_H22 -to lms_rx_iq_select
|
||||
set_location_assignment PIN_U21 -to lms_tx_data[11]
|
||||
set_location_assignment PIN_P22 -to lms_tx_data[10]
|
||||
set_location_assignment PIN_U22 -to lms_tx_data[9]
|
||||
set_location_assignment PIN_R21 -to lms_tx_data[8]
|
||||
set_location_assignment PIN_N22 -to lms_tx_data[7]
|
||||
set_location_assignment PIN_R22 -to lms_tx_data[6]
|
||||
set_location_assignment PIN_M22 -to lms_tx_data[5]
|
||||
set_location_assignment PIN_P21 -to lms_tx_data[4]
|
||||
set_location_assignment PIN_L22 -to lms_tx_data[3]
|
||||
set_location_assignment PIN_N21 -to lms_tx_data[2]
|
||||
set_location_assignment PIN_K22 -to lms_tx_data[1]
|
||||
set_location_assignment PIN_M21 -to lms_tx_data[0]
|
||||
set_location_assignment PIN_AA13 -to lms_reset
|
||||
set_location_assignment PIN_AA14 -to lms_rx_enable
|
||||
set_location_assignment PIN_AA20 -to lms_tx_v[2]
|
||||
set_location_assignment PIN_AB13 -to lms_sdio
|
||||
set_location_assignment PIN_AB14 -to lms_sdo
|
||||
set_location_assignment PIN_AB15 -to lms_tx_enable
|
||||
set_location_assignment PIN_AB16 -to lms_sen
|
||||
set_location_assignment PIN_AB19 -to lms_rx_v[2]
|
||||
set_location_assignment PIN_AB20 -to lms_rx_v[1]
|
||||
set_location_assignment PIN_J22 -to lms_tx_iq_select
|
||||
set_location_assignment PIN_F11 -to exp_spi_mosi
|
||||
set_location_assignment PIN_D13 -to exp_gpio[2]
|
||||
set_location_assignment PIN_E13 -to exp_gpio[3]
|
||||
set_location_assignment PIN_E14 -to exp_gpio[4]
|
||||
set_location_assignment PIN_E15 -to exp_gpio[5]
|
||||
set_location_assignment PIN_E16 -to exp_gpio[6]
|
||||
set_location_assignment PIN_D17 -to exp_gpio[7]
|
||||
set_location_assignment PIN_D19 -to exp_gpio[8]
|
||||
set_location_assignment PIN_C19 -to exp_gpio[9]
|
||||
set_location_assignment PIN_D20 -to exp_gpio[10]
|
||||
set_location_assignment PIN_C20 -to exp_gpio[11]
|
||||
set_location_assignment PIN_F13 -to exp_gpio[12]
|
||||
set_location_assignment PIN_F14 -to exp_gpio[13]
|
||||
set_location_assignment PIN_F15 -to exp_gpio[14]
|
||||
set_location_assignment PIN_D15 -to exp_gpio[15]
|
||||
set_location_assignment PIN_A13 -to exp_gpio[16]
|
||||
set_location_assignment PIN_C13 -to exp_present
|
||||
set_location_assignment PIN_G1 -to fx3_pclk
|
||||
set_location_assignment PIN_AA15 -to lms_sclk
|
||||
set_location_assignment PIN_B13 -to exp_spi_miso
|
||||
set_location_assignment PIN_E11 -to exp_spi_clock
|
||||
set_location_assignment PIN_AA7 -to led[1]
|
||||
set_location_assignment PIN_AB7 -to led[2]
|
||||
set_location_assignment PIN_AA21 -to lms_tx_v[1]
|
||||
set_location_assignment PIN_J3 -to fx3_ctl[9]
|
||||
set_location_assignment PIN_G22 -to c4_tx_clock
|
||||
set_location_assignment PIN_A12 -to exp_clock_in
|
||||
set_location_assignment PIN_A14 -to exp_gpio[25]
|
||||
set_location_assignment PIN_A15 -to exp_gpio[26]
|
||||
set_location_assignment PIN_A16 -to exp_gpio[27]
|
||||
set_location_assignment PIN_A17 -to exp_gpio[28]
|
||||
set_location_assignment PIN_A18 -to exp_gpio[32]
|
||||
set_location_assignment PIN_A19 -to exp_gpio[31]
|
||||
set_location_assignment PIN_A20 -to exp_gpio[30]
|
||||
set_location_assignment PIN_B20 -to exp_gpio[29]
|
||||
set_location_assignment PIN_B14 -to exp_gpio[17]
|
||||
set_location_assignment PIN_B15 -to exp_gpio[18]
|
||||
set_location_assignment PIN_B16 -to exp_gpio[20]
|
||||
set_location_assignment PIN_B17 -to exp_gpio[21]
|
||||
set_location_assignment PIN_B18 -to exp_gpio[23]
|
||||
set_location_assignment PIN_B19 -to exp_gpio[24]
|
||||
set_location_assignment PIN_C15 -to exp_gpio[19]
|
||||
set_location_assignment PIN_C17 -to exp_gpio[22]
|
||||
set_location_assignment PIN_AB10 -to led[3]
|
||||
set_location_assignment PIN_AB8 -to mini_exp1
|
||||
set_location_assignment PIN_AB9 -to mini_exp2
|
||||
set_location_assignment PIN_AB11 -to ref_vctcxo_tune
|
||||
set_location_assignment PIN_AB12 -to ref_sma_clock
|
||||
set_location_assignment PIN_A6 -to si_scl
|
||||
set_location_assignment PIN_A7 -to si_sda
|
||||
|
||||
# Configuration information
|
||||
set_global_assignment -name CYCLONEIII_CONFIGURATION_SCHEME "FAST PASSIVE PARALLEL"
|
||||
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF
|
||||
set_global_assignment -name GENERATE_TTF_FILE ON
|
||||
set_global_assignment -name GENERATE_RBF_FILE ON
|
||||
set_global_assignment -name CRC_ERROR_OPEN_DRAIN OFF
|
||||
set_global_assignment -name ON_CHIP_BITSTREAM_DECOMPRESSION OFF
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall
|
||||
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DATA7_THROUGH_DATA2_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_OTHER_AP_PINS_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
|
||||
# Top level pins for bladeRF
|
||||
package require ::quartus::project
|
||||
|
||||
# IO Standard
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to c4_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_csx
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sdi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to dac_sdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[16]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[15]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[14]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[13]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_present
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_miso
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_spi_mosi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_ctl[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[31]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[30]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[29]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[28]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[27]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[26]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[25]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[24]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[23]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[22]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[21]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[20]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[19]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[18]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[17]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[16]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[15]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[14]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[13]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[12]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_gpif[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_cts
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_rxd
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_uart_txd
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_pll_out
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_reset
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_clock_out
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_data[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_enable
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_iq_select
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sdio
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_sen
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[11]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[10]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[9]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[8]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[7]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[6]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[5]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[4]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_data[0]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_enable
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_iq_select
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[3]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdi
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tck
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdo
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tms
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to c4_tx_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_clock_in
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[31]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[32]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[28]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[27]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[26]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[25]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[24]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[30]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[29]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[23]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[22]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[21]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[20]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[19]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[18]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to exp_gpio[17]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to si_sda
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to mini_exp1
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to mini_exp2
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to ref_vctcxo_tune
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to ref_sma_clock
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to si_scl
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to fx3_pclk
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to led[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_v[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_rx_v[1]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_v[2]
|
||||
set_instance_assignment -name IO_STANDARD "1.8 V" -to lms_tx_v[1]
|
||||
|
||||
# Location Assignments
|
||||
set_location_assignment PIN_A11 -to c4_clock
|
||||
set_location_assignment PIN_B10 -to dac_csx
|
||||
set_location_assignment PIN_B9 -to dac_sclk
|
||||
set_location_assignment PIN_A10 -to dac_sdi
|
||||
set_location_assignment PIN_A9 -to dac_sdo
|
||||
set_location_assignment PIN_M1 -to fx3_ctl[12]
|
||||
set_location_assignment PIN_J4 -to fx3_ctl[11]
|
||||
set_location_assignment PIN_J6 -to fx3_ctl[10]
|
||||
set_location_assignment PIN_N1 -to fx3_ctl[8]
|
||||
set_location_assignment PIN_G3 -to fx3_ctl[7]
|
||||
set_location_assignment PIN_F7 -to fx3_ctl[6]
|
||||
set_location_assignment PIN_B1 -to fx3_ctl[5]
|
||||
set_location_assignment PIN_C1 -to fx3_ctl[4]
|
||||
set_location_assignment PIN_H1 -to fx3_ctl[3]
|
||||
set_location_assignment PIN_H6 -to fx3_ctl[2]
|
||||
set_location_assignment PIN_F2 -to fx3_ctl[1]
|
||||
set_location_assignment PIN_F1 -to fx3_ctl[0]
|
||||
set_location_assignment PIN_AA1 -to fx3_gpif[31]
|
||||
set_location_assignment PIN_Y1 -to fx3_gpif[30]
|
||||
set_location_assignment PIN_AB3 -to fx3_gpif[29]
|
||||
set_location_assignment PIN_P1 -to fx3_gpif[28]
|
||||
set_location_assignment PIN_W7 -to fx3_gpif[27]
|
||||
set_location_assignment PIN_R2 -to fx3_gpif[26]
|
||||
set_location_assignment PIN_W6 -to fx3_gpif[25]
|
||||
set_location_assignment PIN_W1 -to fx3_gpif[24]
|
||||
set_location_assignment PIN_R1 -to fx3_gpif[23]
|
||||
set_location_assignment PIN_V5 -to fx3_gpif[22]
|
||||
set_location_assignment PIN_T4 -to fx3_gpif[21]
|
||||
set_location_assignment PIN_M4 -to fx3_gpif[20]
|
||||
set_location_assignment PIN_T5 -to fx3_gpif[19]
|
||||
set_location_assignment PIN_P4 -to fx3_gpif[18]
|
||||
set_location_assignment PIN_M6 -to fx3_gpif[17]
|
||||
set_location_assignment PIN_N6 -to fx3_gpif[16]
|
||||
set_location_assignment PIN_D1 -to fx3_gpif[15]
|
||||
set_location_assignment PIN_C8 -to fx3_gpif[14]
|
||||
set_location_assignment PIN_C7 -to fx3_gpif[13]
|
||||
set_location_assignment PIN_C4 -to fx3_gpif[12]
|
||||
set_location_assignment PIN_C6 -to fx3_gpif[11]
|
||||
set_location_assignment PIN_B3 -to fx3_gpif[10]
|
||||
set_location_assignment PIN_F10 -to fx3_gpif[9]
|
||||
set_location_assignment PIN_B4 -to fx3_gpif[8]
|
||||
set_location_assignment PIN_K1 -to fx3_gpif[7]
|
||||
set_location_assignment PIN_A8 -to fx3_gpif[6]
|
||||
set_location_assignment PIN_A3 -to fx3_gpif[5]
|
||||
set_location_assignment PIN_F8 -to fx3_gpif[4]
|
||||
set_location_assignment PIN_A5 -to fx3_gpif[3]
|
||||
set_location_assignment PIN_B8 -to fx3_gpif[2]
|
||||
set_location_assignment PIN_B7 -to fx3_gpif[1]
|
||||
set_location_assignment PIN_B6 -to fx3_gpif[0]
|
||||
set_location_assignment PIN_AA4 -to fx3_uart_cts
|
||||
set_location_assignment PIN_AA5 -to fx3_uart_rxd
|
||||
set_location_assignment PIN_AA3 -to fx3_uart_txd
|
||||
set_location_assignment PIN_T21 -to lms_pll_out
|
||||
set_location_assignment PIN_T22 -to lms_rx_clock_out
|
||||
set_location_assignment PIN_B22 -to lms_rx_data[11]
|
||||
set_location_assignment PIN_B21 -to lms_rx_data[10]
|
||||
set_location_assignment PIN_C22 -to lms_rx_data[9]
|
||||
set_location_assignment PIN_C21 -to lms_rx_data[8]
|
||||
set_location_assignment PIN_D22 -to lms_rx_data[7]
|
||||
set_location_assignment PIN_E21 -to lms_rx_data[6]
|
||||
set_location_assignment PIN_D21 -to lms_rx_data[5]
|
||||
set_location_assignment PIN_F21 -to lms_rx_data[4]
|
||||
set_location_assignment PIN_E22 -to lms_rx_data[3]
|
||||
set_location_assignment PIN_H21 -to lms_rx_data[2]
|
||||
set_location_assignment PIN_F22 -to lms_rx_data[1]
|
||||
set_location_assignment PIN_J21 -to lms_rx_data[0]
|
||||
set_location_assignment PIN_H22 -to lms_rx_iq_select
|
||||
set_location_assignment PIN_U21 -to lms_tx_data[11]
|
||||
set_location_assignment PIN_P22 -to lms_tx_data[10]
|
||||
set_location_assignment PIN_U22 -to lms_tx_data[9]
|
||||
set_location_assignment PIN_R21 -to lms_tx_data[8]
|
||||
set_location_assignment PIN_N22 -to lms_tx_data[7]
|
||||
set_location_assignment PIN_R22 -to lms_tx_data[6]
|
||||
set_location_assignment PIN_M22 -to lms_tx_data[5]
|
||||
set_location_assignment PIN_P21 -to lms_tx_data[4]
|
||||
set_location_assignment PIN_L22 -to lms_tx_data[3]
|
||||
set_location_assignment PIN_N21 -to lms_tx_data[2]
|
||||
set_location_assignment PIN_K22 -to lms_tx_data[1]
|
||||
set_location_assignment PIN_M21 -to lms_tx_data[0]
|
||||
set_location_assignment PIN_AA13 -to lms_reset
|
||||
set_location_assignment PIN_AA14 -to lms_rx_enable
|
||||
set_location_assignment PIN_AA20 -to lms_tx_v[2]
|
||||
set_location_assignment PIN_AB13 -to lms_sdio
|
||||
set_location_assignment PIN_AB14 -to lms_sdo
|
||||
set_location_assignment PIN_AB15 -to lms_tx_enable
|
||||
set_location_assignment PIN_AB16 -to lms_sen
|
||||
set_location_assignment PIN_AB19 -to lms_rx_v[2]
|
||||
set_location_assignment PIN_AB20 -to lms_rx_v[1]
|
||||
set_location_assignment PIN_J22 -to lms_tx_iq_select
|
||||
set_location_assignment PIN_F11 -to exp_spi_mosi
|
||||
set_location_assignment PIN_D13 -to exp_gpio[2]
|
||||
set_location_assignment PIN_E13 -to exp_gpio[3]
|
||||
set_location_assignment PIN_E14 -to exp_gpio[4]
|
||||
set_location_assignment PIN_E15 -to exp_gpio[5]
|
||||
set_location_assignment PIN_E16 -to exp_gpio[6]
|
||||
set_location_assignment PIN_D17 -to exp_gpio[7]
|
||||
set_location_assignment PIN_D19 -to exp_gpio[8]
|
||||
set_location_assignment PIN_C19 -to exp_gpio[9]
|
||||
set_location_assignment PIN_D20 -to exp_gpio[10]
|
||||
set_location_assignment PIN_C20 -to exp_gpio[11]
|
||||
set_location_assignment PIN_F13 -to exp_gpio[12]
|
||||
set_location_assignment PIN_F14 -to exp_gpio[13]
|
||||
set_location_assignment PIN_F15 -to exp_gpio[14]
|
||||
set_location_assignment PIN_D15 -to exp_gpio[15]
|
||||
set_location_assignment PIN_A13 -to exp_gpio[16]
|
||||
set_location_assignment PIN_C13 -to exp_present
|
||||
set_location_assignment PIN_G1 -to fx3_pclk
|
||||
set_location_assignment PIN_AA15 -to lms_sclk
|
||||
set_location_assignment PIN_B13 -to exp_spi_miso
|
||||
set_location_assignment PIN_E11 -to exp_spi_clock
|
||||
set_location_assignment PIN_AA7 -to led[1]
|
||||
set_location_assignment PIN_AB7 -to led[2]
|
||||
set_location_assignment PIN_AA21 -to lms_tx_v[1]
|
||||
set_location_assignment PIN_J3 -to fx3_ctl[9]
|
||||
set_location_assignment PIN_G22 -to c4_tx_clock
|
||||
set_location_assignment PIN_A12 -to exp_clock_in
|
||||
set_location_assignment PIN_A14 -to exp_gpio[25]
|
||||
set_location_assignment PIN_A15 -to exp_gpio[26]
|
||||
set_location_assignment PIN_A16 -to exp_gpio[27]
|
||||
set_location_assignment PIN_A17 -to exp_gpio[28]
|
||||
set_location_assignment PIN_A18 -to exp_gpio[32]
|
||||
set_location_assignment PIN_A19 -to exp_gpio[31]
|
||||
set_location_assignment PIN_A20 -to exp_gpio[30]
|
||||
set_location_assignment PIN_B20 -to exp_gpio[29]
|
||||
set_location_assignment PIN_B14 -to exp_gpio[17]
|
||||
set_location_assignment PIN_B15 -to exp_gpio[18]
|
||||
set_location_assignment PIN_B16 -to exp_gpio[20]
|
||||
set_location_assignment PIN_B17 -to exp_gpio[21]
|
||||
set_location_assignment PIN_B18 -to exp_gpio[23]
|
||||
set_location_assignment PIN_B19 -to exp_gpio[24]
|
||||
set_location_assignment PIN_C15 -to exp_gpio[19]
|
||||
set_location_assignment PIN_C17 -to exp_gpio[22]
|
||||
set_location_assignment PIN_AB10 -to led[3]
|
||||
set_location_assignment PIN_AB8 -to mini_exp1
|
||||
set_location_assignment PIN_AB9 -to mini_exp2
|
||||
set_location_assignment PIN_AB11 -to ref_vctcxo_tune
|
||||
set_location_assignment PIN_AB12 -to ref_sma_clock
|
||||
set_location_assignment PIN_A6 -to si_scl
|
||||
set_location_assignment PIN_A7 -to si_sda
|
||||
|
||||
# Configuration information
|
||||
set_global_assignment -name CYCLONEIII_CONFIGURATION_SCHEME "FAST PASSIVE PARALLEL"
|
||||
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF
|
||||
set_global_assignment -name GENERATE_TTF_FILE ON
|
||||
set_global_assignment -name GENERATE_RBF_FILE ON
|
||||
set_global_assignment -name CRC_ERROR_OPEN_DRAIN OFF
|
||||
set_global_assignment -name ON_CHIP_BITSTREAM_DECOMPRESSION OFF
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise
|
||||
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall
|
||||
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DATA7_THROUGH_DATA2_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_OTHER_AP_PINS_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
|
||||
|
||||
# Drive Strength and Slew Rate
|
||||
set_instance_assignment -name SLEW_RATE 0 -to fx3_gpif[*]
|
||||
#set_instance_assignment -name CURRENT_STRENGTH_NEW 16MA -to fx3_gpif[*]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -408,8 +408,6 @@ endif
|
|||
ifneq ($(SYS_LIB),)
|
||||
APP_LDFLAGS += -msys-lib=$(SYS_LIB)
|
||||
endif
|
||||
#Note: https://community.altera.com/discussions/nios-system/unrecognized-command-line-options-in-nios-ii-example-project/254078
|
||||
#APP_LDFLAGS += -msys-lib=hal_bsp
|
||||
|
||||
endif # !AVOID_NIOS2_GCC3_OPTIONS
|
||||
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ else
|
|||
cmd="${cmd}; set nios_impl ${nios_rev}"
|
||||
cmd="${cmd}; set ram_size $(get_qsys_ram $size)"
|
||||
cmd="${cmd}; set platform_revision ${rev}"
|
||||
qsys-script\
|
||||
qsys-script \
|
||||
--script=${build_dir}/nios_system.tcl \
|
||||
--cmd="${cmd}"
|
||||
fi
|
||||
|
|
@ -434,7 +434,6 @@ if [ -f nios_system.sopcinfo ]; then
|
|||
echo "Skipping qsys-generate, nios_system.sopcinfo already exists"
|
||||
else
|
||||
qsys-generate --synthesis=Verilog nios_system.qsys
|
||||
#qsys-generate --synthesis=vhdl nios_system.qsys
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
|
@ -447,13 +446,12 @@ mkdir -p bladeRF_nios_bsp
|
|||
if [ -f settings.bsp ]; then
|
||||
echo "Skipping creating Nios BSP, settings.bsp already exists"
|
||||
else
|
||||
echo "Debug:message1"
|
||||
nios2-bsp-create-settings \
|
||||
--settings settings.bsp \
|
||||
--type hal \
|
||||
--bsp-dir bladeRF_nios_bsp \
|
||||
--cpu-name nios2 \
|
||||
--script $(wslpath -w $(readlink -f $QUARTUS_ROOTDIR/..)/nios2eds/sdk2/bin/bsp-set-defaults.tcl) \
|
||||
--script $(readlink -f $QUARTUS_ROOTDIR/..)/nios2eds/sdk2/bin/bsp-set-defaults.tcl \
|
||||
--sopc nios_system.sopcinfo \
|
||||
--set hal.max_file_descriptors 4 \
|
||||
--set hal.enable_instruction_related_exceptions_api false \
|
||||
|
|
@ -475,7 +473,6 @@ make
|
|||
popd
|
||||
|
||||
pushd ${build_dir}/../software/bladeRF_nios/
|
||||
dirs -l -v
|
||||
|
||||
# Encountered issues on Ubuntu 13.04 with the SDK's scripts not resolving
|
||||
# paths properly. In the end, some items wind up being defined as .jar's that
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
@echo off
|
||||
|
||||
set OUTFILE=master_tx.csv
|
||||
if exist %OUTFILE% del %OUTFILE%
|
||||
|
||||
echo Creating %OUTFILE%. This window will close when this is done.
|
||||
for /L %%G in (1, 1, 1000) do echo "0, 0" >> %OUTFILE%
|
||||
for /L %%G in (1, 1, 100) do echo "1447, 1447" >> %OUTFILE%
|
||||
for /L %%G in (1, 1, 1000) do echo "0, 0" >> %OUTFILE%
|
||||
@echo off
|
||||
|
||||
set OUTFILE=master_tx.csv
|
||||
if exist %OUTFILE% del %OUTFILE%
|
||||
|
||||
echo Creating %OUTFILE%. This window will close when this is done.
|
||||
for /L %%G in (1, 1, 1000) do echo "0, 0" >> %OUTFILE%
|
||||
for /L %%G in (1, 1, 100) do echo "1447, 1447" >> %OUTFILE%
|
||||
for /L %%G in (1, 1, 1000) do echo "0, 0" >> %OUTFILE%
|
||||
|
|
|
|||
2
thirdparty/analogdevicesinc/no-OS
vendored
2
thirdparty/analogdevicesinc/no-OS
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 534f202a102530424b1ff2284fd89e0428e7b271
|
||||
Subproject commit 0bba46e6f6f75785a65d425ece37d0a04daf6157
|
||||
Loading…
Add table
Add a link
Reference in a new issue