Hallo Im Rahmen eines Uni Projektes muss ich mit einem Spartan 3 FPGA eien Analoguhr auf einem VGA Bildschirm 640x480 anzeigen lassen . Mein Problem ist , ich weiss nicht wie ich mein Speicherabbild konstuiere. Ich hab ein SRAM 32 Bit Wortbreite und 18 Bit Adresse zu verfuegung .
Ich hatte die Idee dass ich 8 Pixel (3 Bit pro pixel) pro 32 Bit speichere . Damit bleiben 2 Bit in jedem Byte ungenutzt.was kein Problem ist da mein Speicher Gross genug ist .
das Problem ist bei der Berechung von den einzelnen Adressen fuer die einzelnen Pixel , ich bin auf diese Gleichung gekommen :
Adresse im Speicher = ((y-position)*80)+((x-pos)/8)
das Problem in dieser Gleichung ist dass sie eine Multiplikation und eine Division enthaelt und damit viel Rechenzeit braucht und das fuer jedes einzelne Pixel .
Ideen wie man das macht ? vielen Dannk im vorraus
Re: 640x480 VGA Monitor Bitmaske in Sram
...schon ein paar Tage her, Deine Frage und mit etwas Nachdenken bist Du sicher schon weitergekommen - oder?
Da Du ja genug Speicher hast, würde man es so einrichten, dass jedes Pixel eine eigene Adresse bekommt, die man durch 2-er Potenzen darstellen kann. Packt man also immer ein Pixel (à 3 Bit) in ein Nibble (4 Bit), so passen 8 Pixel in ein 32-Bit Speicherwort. Davon hast Du 640/8 in einer Zeile - macht 80 Worte. Hier rundest Du auf und "spendierst" 128 Worte für jede Zeile.
Zur Adressierung verwendest Du dann die untersten 3 Bit um ggf. den Muxer zu steuern, der ein bestimmtes Pixel innerhalb eines Wortes auswählt, die nächsten 7 Adressbits sind dann Dein 8er-Pixel-Zähler für die Zeilenlänge (mit genügend Reserven falls Du damit auch gleich DE, Sync und Porches erzeugen willst), und die nächsten 9 Bits ergeben Deinen Zeilenzähler.
So funzt die Ansteuerung ganz ohne verquere Adress-Arithmetik.
Zitat: Adresse im Speicher = ((y-position)*80)+((x-pos)/8)...Du bist Hochsprachen-Programmierer, der jetzt den Einstieg auf VHDL wagt - nicht wahr? ;-)
xiaoou
20181112 orf adidas crazy coach outlet online saucony shoes giuseppe zanotti outlet ugg outlet magic jerseys five fingers shoes swarovski crystal off-white tory burch outlet polo ralph lauren mizuno running shoes michael kors handbags ralph lauren pas cher canada goose outlet ugg outlet coach outlet gucci outlet polo ralph lauren givenchy handbags michael kors outlet longchamp solde timberwolves jerseys indianapolis colts jerseys polo outlet supreme clothing nike factory outlet pandora ugg outlet pandora charms barbour jackets scarpe mbt ralph lauren polo shirts coach outlet online nhl jerseys ferragamo outlet ugg outlet cartier jewelry mulberry handbags michael kors outlet air jordan 12 canada goose jackets ray ban sunglasses toms shoes canada goose jackets coach outlet ralph lauren polo swarovski crystal polo shirts nike outlet longchamp handbags nike foamposite red bottom shoes nike shoes longchamp handbags north face jackets canada goose outlet canada goose outlet true religion outlet ugg boots new york knicks jersey cavaliers jerseys yeezy boost oakley sunglasses ugg boots nike dunks pandora charms canada goose coach outlet store online mbt shoes michael kors christian louboutin outlet mulberry handbags ferragamo shoes polo outlet ugg outlet camel shoes stussy clothing nfl jerseys wholesale fitflops sale clearance michael kors outlet ugg boots san francisco 49ers jerseys canada goose outlet pandora jewelry polo outlet nike outlet pandora charms sale clearance michael kors handbags ugg outlet oakley sunglasses pandora jewelry true religion jeans malone souliers mules oakley sunglasses ugg boots coach factory outlet uggs outlet nike free nike blazer pas cher michael kors outlet barcelona jersey coach outlet online gucci handbags yeezy boost nike air force 1 nike shoes true religion jeans adidas nmd cheap jerseys coach outlet online swarovski outlet tory burch outlet ugg outlet true religion jeans red bottom shoes air jordan shoes nike lunarglide hermes outlet pandora charms adidas ultra boost columbia sportswear pandora charms heat jerseys canada goose outlet ray ban sunglasses wellensteyn jackets christian louboutin shoes polo outlet air huarache moncler outlet nhl jerseys manchester united jersey pandora charms clippers jerseys ugg outlet ugg outlet ugg boots lakers jerseys chrome hearts sunglasses spurs jerseys montblanc pens kate spade outlet swarovski outlet nike roshe one nike revolution ugg boots hornets jerseys ferragamo outlet mulberry handbags fitflops sale clearance ugg outlet ugg boots michael kors outlet clearance chelsea jersey ubiq shoes christian louboutin outlet coach outlet lebron james shoes kate spade outlet coach outlet lacoste soldes canada goose outlet coach outlet ugg outlet nike shoes canada goose outlet canada goose jackets coach outlet online polo ralph lauren uggs outlet reebok trainers coach outlet pandora charms oakley sunglasses ugg outlet tory burch outlet canada goose outlet bottega veneta outlet christian louboutin outlet ray ban sunglasses polo ralph lauren air jordan 4 ralph lauren outlet coach handbags fred perry polo shirts ugg boots clearance nba jerseys cheap jordans true religion uk coach outlet online kings jerseys uggs outlet christian louboutin outlet kevin durant shoes canada goose outlet fitflops ugg boots oakley sunglasses coach outlet canada goose coats nike tennis cheap jordans kobe shoes moncler jackets balenciaga sneakers uggs michael kors canada goose outlet uggs outlet nets jerseys canada goose outlet canada goose outlet van cleef & arpels jewelry fitflops kate spade outlet coach factory outlet ray ban sunglasses ray ban sunglasses moncler outlet polo ralph lauren michael kors wallets 76ers jerseys oakley sunglasses canada goose jackets adidas wings polo outlet canada goose outlet ugg boots clearance oakley sunglasses basketball shoes wizards jerseys canada goose coats y3 shoes ugg boots nfl jersey wholesale football shirts reebok outlet store merrell shoes visvim shoes nuggets jerseys jordan shoes canada goose outlet le coq sportif shoes longchamp bags jordan shoes real madrid jersey san antonio spurs jerseys bucks jerseys michael kors outlet thunder jerseys mishka clothing air max 90 ferragamo shoes michael kors birkenstock sandals chrome hearts outlet coach outlet online polo ralph lauren gucci outlet dolce and gabbana uggs outlet michael kors outlet bvlgari jewelry knicks jerseys uggs outlet canada goose outlet vans shoes nba jerseys ugg outlet canada goose coats fitflops sale kate spade outlet mont blanc pens mulberry handbags oakley sunglasses tory burch outlet air max 2017 michael kors outlet coach canada canada goose jackets moncler outlet suicoke sandals christian louboutin outlet kappa clothing cheap jerseys yeezy boost uggs outlet light up shoes canada goose coats canada goose outlet canada goose coats louboutin pas cher canada goose outlet longchamp outlet soccer shoes ugg outlet jazz jerseys adidas outlet dior outlet golden state warriors jerseys supreme clothing ugg outlet air jordan release dates cheap jordans air max 97 ugg boots michael kors outlet adidas uk cheap snapbacks michael kors outlet online prada sunglasses tory burch outlet trailblazers jerseys coach outlet online red bottom shoes michael kors outlet coach outlet ugg boots mulberry handbags tory burch outlet cheap football shirts toms shoes converse shoes ray ban sunglasses ugg outlet ugg boots herve leger outlet pistons jerseys coach outlet online coach outlet true religion jeans ray ban sunglasses michael kors outlet michael kors true religion jeans pandora charms pacers jerseys nba jerseys jimmy choo shoes north face jackets michael kors outlet michael kors outlet adidas outlet coach outlet kate spade outlet ugg boots canada goose outlet ugg outlet kobe 9 red bottom shoes pandora charms christian louboutin outlet true religion jeans cleveland cavaliers jersey nike air max 2015 prada shoes michael kors outlet denver broncos jerseys michael kors handbags coach outlet true religion jeans polo ralph lauren ugg outlet michael kors outlet cheap jordans cheap mlb jerseys ugg outlet nobis outlet cheap jordans rockets jerseys coach outlet keen shoes ugg boots mulberry bags canada goose outlet houston texans jerseys ralph lauren polo shirts polo ralph lauren polo ralph lauren kate spade outlet burberry outlet burberry outlet michael kors outlet michael kors outlet michael kors outlet clarks shoes true religion jeans ugg boots north face jackets polo ralph lauren undefeated clothing ed hardy clothing cheap mlb jerseys nike presto ugg outlet pandora charms cheap jordans michael kors outlet under armour outlet ralph lauren polo shirts true religion jeans christian louboutin outlet marc jacobs outlet coach outlet longchamp outlet belstaff jackets yeezy boost 350 coach outlet tory burch outlet nike store cheap nfl jerseys ugg outlet pandora charms canada goose jackets new balance shoes air force 1 coach outlet ugg outlet prada outlet canada goose jackets tory burch outlet burberry outlet jack wolfskin kate spade outlet michael kors outlet raptors jerseys hermes birkin canada goose outlet coach outlet michael kors outlet air huarache supra shoes michael kors outlet canada goose outlet air max 1 longchamp handbags ugg outlet canada goose jackets fitflops sale clearance coach handbags golden goose sneakers puma outlet uggs outlet michael kors outlet cheap jordans coach outlet uggs outlet true religion jeans coach outlet air max kate spade outlet salomon shoes oakley sunglasses fitflops shoes kate spade outlet tods outlet canada goose jackets air jordan shoes michael kors outlet ugg outlet louboutin shoes jordan shoes ugg outlet cazal sunglasses ugg outlet michael kors handbags michael kors outlet christian louboutin outlet pandora outlet nike revolution moncler outlet uggs outlet manolo blahnik outlet coach outlet michael kors outlet online coach outlet online coach handbags dc shoes christian louboutin store minnetonka outlet canada goose parka pandora outlet moncler outlet christian louboutin cheap nhl jerseys coach outlet pandora jewelry kate spade outlet pelicans jerseys chicago blackhawks jerseys coach outlet canada goose outlet coach outlet canada goose outlet pandora charms ugg outlets ugg outlet miu miu handbags valentino outlet ray ban sunglasses fitflops sale adidas trainers red bottom shoes ray ban sunglasses adidas nmd canada goose cheap nfl jerseys lakers jerseys futbol baratas toms shoes ray ban outlet cheap jerseys suns jerseys true religion jeans swarovski outlet polo ralph lauren warriors jerseys hermes belt ugg outlet jordan shoes ferragamo outlet asics shoes soccer jerseys dansko shoes world cup jerseys fila shoes mcm outlet christian louboutin outlet tory burch handbags mbt shoes uggs outlet longchamp pliage true religion outlet baltimore ravens jerseys mavericks jerseys ray ban sunglasses celtics jerseys canada goose outlet chrome hearts outlet pandora outlet air jordan 3 moncler outlet moncler outlet soccer jerseys jordan shoes ugg boots longchamp solde christian louboutin outlet palladium boots simulation shoes moncler outlet polo ralph lauren canada goose jackets ugg boots coach outlet stephen curry shoes michael kors outlet clearance michael kors outlet gucci outlet ugg outlet cheap jordans true religion outlet ferragamo outlet air jordan retro air max 90 birkenstock outlet balenciaga sneakers celine outlet uggs outlet ugg outlet kobe bryant shoes grizzlies jerseys christian louboutin shoes lacoste polo shirts longchamp outlet nike shoes ralph lauren pas cher ugg outlet coach outlet harden shoes tory burch outlet ugg boots canada goose outlet michael kors outlet ferragamo outlet michael kors outlet christian louboutin outlet hermes outlet supreme clothing off white swarovski outlet ugg outlet pandora charms mulberry outlet supreme clothing michael kors handbags coach outlet canada goose jackets ray ban sunglasses ugg boots clearance coach outlet nike shoes ugg outlet jordan shoes hawks jerseys burberry outlet canada goose jackets uggs outlet michael kors outlet pandora outlet canada goose outlet canada goose jackets ugg outlet bulls jerseys links of london christian louboutin outlet michael kors outlet ecco shoes michael kors outlet mbt shoes christian louboutin outlet true religion outlet mont blanc pens uggs outlet christian louboutin outlet air max 90 moncler outlet jordan shoes coach outlet michael kors outlet coach outlet moncler jackets mulberry bags jeep shoes ysl outlet canada goose jackets michael kors outlet polo ralph lauren air jordan 4 ugg outlet gucci outlet canada goose jackets mulberry outlet coach outlet nike cortez coach factory outlet fitflops outlet cheap jordans 20181112