You are on page 1of 4

8/14/2015

thequartersineLUTcode

UserName

Password

Login

Help

Register

RememberMe?

Home

Forum

Marketplace

NewPosts
FAQ Calendar
ChineseForum

Forum

General

Community

SharedMaterial

ForumActions

GeneralAlteraDiscussion

FAQ

QuickLinks

AboutUs

Register
AdvancedSearch

ForumRules

thequartersineLUTcode

Ifthisisyourfirstvisit,besuretocheckouttheFAQbyclickingthelinkabove.Youmayhavetoregister
beforeyoucanpost:clicktheregisterlinkabovetoproceed.Tostartviewingmessages,selecttheforumthat
youwanttovisitfromtheselectionbelow.
Results1to6of6

Thread:thequartersineLUTcode
ThreadTools

SearchThread

Display

#1

October9th,2012, 09:10AM
orao
AlteraPupil

JoinDate:
Posts:
RepPower:

Dec2011
19
1

thequartersineLUTcode
Dearall
IneedtogetthequartersineLUTinDDFS(HerewiththeMATLABcodethatIused)
i=[0:i1]
x=(i1)*sin((pi/2)*i/31))

ReplyWithQuote

#2

October9th,2012, 01:05PM
CosworthRS
AlteraScholar

JoinDate:
Posts:
RepPower:

Jan2012
31
1

Re:thequartersineLUTcode
OriginallyPostedbyorao

IneedtogetthequartersineLUT

Hopeyougotit
Whatexactlythequestionis?

ReplyWithQuote
http://www.alteraforum.com/forum/showthread.php?t=38048

1/4

8/14/2015

thequartersineLUTcode

#3

October9th,2012, 07:29PM
orao
AlteraPupil

JoinDate:
Posts:
RepPower:

Dec2011
19
1

Re:thequartersineLUTcode
Accordingtothisequation:
i=[0:i1]
x=(i1)*sin((pi/2)*i/i1)+1/2*(i1))
TheresultthatIgotisnotthesinewaveshape(theLUTvaluesinvertedinminuswhen
itpassthehalfof(pi/2)range).herewiththeattachedsinewavefile

ReplyWithQuote

#4

October10th,2012, 02:41AM
CosworthRS
AlteraScholar

JoinDate:
Posts:
RepPower:

Jan2012
31
1

Re:thequartersineLUTcode
AsfarasiknowMATLABusesfloatingpointrepresentation,whichisnotimplementedin
HDLbydefault.Maybeifyougivemoreinformation(LUTinput,outputwidth,precision,
whatlanguageyouuse)Icouldhelpyouout.

ReplyWithQuote

#5

October13th,2012, 09:03AM
orao
AlteraPupil

JoinDate:
Posts:
RepPower:

Dec2011
19
1

Re:thequartersineLUTcode
TheQuartersinewaveLUTcodefor8bits:
i=[0:255]
x=255*sin((pi/2)*i/255)
y=str(x,8)
butwheniuseditinDDSsimulation,Igotnosinewave((note:iappliedalltheother
requirment))

ReplyWithQuote

#6

October13th,2012, 09:44AM
JoinDate:
Location:
http://www.alteraforum.com/forum/showthread.php?t=38048

Oct2008
London,UK
2/4

8/14/2015

thequartersineLUTcode

Posts:
RepPower:

kaz

AlteraGuru

3,090
1

Re:thequartersineLUTcode
Thereissomeerrorinyoursinevaluesbutalmostcorrect.
Trythis:
x=round(255*sin(2*pi*(0:1023)/1024))
x=x(1:256)
Youshouldgetproperquartersinefromxotherwisetelluswhatyoudowithx.
youcanalsojustuse:
x=round(255*sin(2*pi*(0:255)/1024))
LasteditedbykazOctober13th,2012at09:47AM.

ReplyWithQuote

QuickNavigation

GeneralAlteraDiscussion Top

SOPCandbeginbursttransfer|isitpossibletodownloadthetrainingmaterialPPT?
SimilarThreads

PLISineFunction
ByflyinghighinforumGeneralAlteraDiscussion

Replies:0
LastPost:July30th,2012,12:02AM

sineangleconversion
BytechnovlsiinforumGeneralAlteraDiscussion

Replies:5
LastPost:July22nd,2011,09:45PM

sinewave:howtosetamplitude?
BywoeicheeinforumDSPBuilderandDSPIPs

Replies:3
LastPost:December1st,2009,04:46AM

NCO:SineWaveform
Byjasonkee111inforumDSPBuilderandDSPIPs

Replies:15
LastPost:November15th,2009,05:15PM

NCO:SineWaveform
Byjasonkee111inforumGeneralAlteraDiscussion

Bookmarks

Digg
del.icio.us
StumbleUpon
Google

http://www.alteraforum.com/forum/showthread.php?t=38048

Replies:2
LastPost:November9th,2009,11:54PM

PostingPermissions

Youmaynotpostnew
threads
Youmaynotpostreplies
Youmaynotpost
attachments
Youmaynotedityour
posts

BBcodeisOn
SmiliesareOn
[IMG]codeisOn
[VIDEO]codeis
On
HTMLcodeisOff
ForumRules

3/4

8/14/2015

thequartersineLUTcode

AlteraForums Archive Top

ProWebFluid[vB4version]

SanJoseWebDesign|
AlltimesareGMT8.Thetimenowis10:05PM.

http://www.alteraforum.com/forum/showthread.php?t=38048

4/4

You might also like