Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

搜索
1 2 3 4
查看: 8801|回復: 6
打印 上一主題 下一主題

[問題求助] 大家好,我是新成員,問一個小問題

[複製鏈接]
跳轉到指定樓層
1#
發表於 2007-5-17 17:06:15 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
首先,感謝各位撥冗來看我這帖子  O# d' J6 x2 |: o, p
這個問題算不上是設計,是一個小小的問題# q* L) f# ~  G$ _0 n) \+ Y% B3 Z
我現在有一個CPU的source code,  l, l3 ]# q  k. l: x/ I+ T" w
memory的部份是有一個interface來接收FPGA晶片外部的SRAM資料
& G2 X. o+ j6 U$ [, Q7 [- M$ Zmemory資料寬度32bit的8 [# b. \9 H! A+ R2 k3 K: ]# K

0 u; g% l0 \+ a3 O+ I( Q要把他download到我的板子上+ ?; g: Q6 o" C9 t/ k. J+ j3 n
但是我的板子上的SRAM只有16bit
' f3 ~) o9 a4 |7 ]" D請問我要怎麼改寫裡面的VHDL code來符合# e2 t& I6 R( z- L
( j; j' O3 n  x8 A
可能對板上的高手來說,這是基本問題/ x; a' I" \+ i/ {! Z0 c
但是我本身不是VLSI設計背景的人3 `$ Z4 H6 B  A' x% @+ H
老闆硬要我搞出來 >_<
5 i2 K$ l! J0 x* q; b
( g% m' E) s6 u3 \& n% j希望大家不吝給我一點提示,謝謝大家

評分

參與人數 1Chipcoin +1 收起 理由
jiming + 1 怎麼改寫裡面的VHDL code來符合?

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享分享 頂 踩 分享分享
2#
發表於 2007-5-17 18:36:14 | 只看該作者
就算是32BITS CPU也允許16BITS的存取才對, 在這情況下, 什麼都不用修改的, 只需要修改軟體的程式4 o. i9 h7 [$ f- v( h

- j$ b; Y* R* m6 G9 F如果一定要做到軟體都不用改的話, 影響的範圍比較大, 你可能需要:
% t" o! e9 ~' \6 Y1) SRAM工作於CPU的兩倍頻率
) c8 M! x" Y+ |$ w* |" w2) 利用類似BE信號 (BYTE ENABLE)來控制SRAM的存取
) |5 k9 }' [5 D* ?: o3) 如果SRAM速度跟不上CPU, 而且又不想降頻的話, CPU要能支援類似BUSY的控制信號
4 Y9 n% A5 H( A2 b, a1 c4 o) b! [差不多如此吧, 還有其他我漏掉的嗎???
3#
發表於 2007-5-20 14:17:43 | 只看該作者

回復 #1 kyopc 的帖子

沒錯,就版主的方式,不然就設計一個FIFO SRAM Controler,丟到fifo裡,讓他自己丟到sram,
, O6 l" Y5 v1 k% ~0 F# k如果完全不會寫hdl,那你去網路上收尋,應該有人寫好的吧!( \' u4 R, h! |: l4 l' L
不然Xilinx有提供memory的參考設計,有含HDL code,如下列網址:
- C. E$ \1 D- W& ]0 [. N# Ahttp://www.xilinx.com/products/design_resources/mem_corner/' c' G. H; }  `1 `) t& `8 H& ~! W
你找找,Xilinx的參考設計編號都是XAPP***.pdf,裡面有一個Design file的網址,就是下載soure code的地方^__^
: }2 k0 H2 u/ E  T2 L# ~) L

評分

參與人數 1Chipcoin +2 收起 理由
jiming + 2 資深帶老手 老手帶新手

查看全部評分

4#
 樓主| 發表於 2007-5-21 10:25:20 | 只看該作者

回復 #3 jason_lin 的帖子

感謝兩位前輩的指導
5 a0 l  \4 h: p7 D6 D* P7 A由於工作需求,我的程式是沒辦法改的- E+ J3 s, c8 A6 ^7 B% p9 n' ~
換句話說,我必需修改我的硬體0 K& A4 ?+ t6 x2 e
3 P7 t) J& E0 y2 P9 Z
我會先試試看jason大大的方法,結果再回報給大家
2 {$ T& A  B& N" k9 v4 I) R9 L% e7 @6 t提供經驗給大家
! v/ H  V. }- T$ q1 e/ u8 u- a謝謝

評分

參與人數 1Chipcoin +2 收起 理由
jiming + 2 感謝前輩的指導!經驗分享給大家!

查看全部評分

5#
發表於 2007-5-22 10:25:47 | 只看該作者
Xilinx的XAPP好多, jason_lin有意願整理歸類一下, 發個文跟大伙介紹一下嗎?5 D/ H7 K  H8 y) b$ N! ]
就以Xilinx的Vertical Segment分類來整理如何? & \0 G1 c1 j) W7 N5 F0 z6 f
另外並不是所有的XAPP都有source code的, 可能也要說明一下, 大伙才能更清楚.- s2 x# G' Y3 T7 ^  `2 A

1 E2 i! s9 U, p5 x. ]先謝囉!
6#
發表於 2007-5-22 15:33:23 | 只看該作者

回復 #5 tommywgt 的帖子

我整理了一些而已ㄝ,如下:6 F& d' \. u8 B" P' ]& [. k2 ~+ M2 n
FPGA
/ t: I2 G( e0 L$ KXAPP058        Xilinx In-System Programming Using an Embedded Microcontroller&nbsp;
+ o% W. P& R7 C' jXAPP195        Implementing Barrel Shifters Using Multipliers&nbsp;) ^" L8 h- F5 P* S9 ^' f6 q
XAPP211        PN Generators Using the SRL Macro&nbsp;
( K' ^; [+ t: }$ E; z1 n9 hXAPP217        Gold Code Generators in Virtex Devices&nbsp;
. S, P( {( r" U% W( V7 o- xXAPP220        LFSRs as Functional Blocks in Wireless Applications&nbsp;
' d5 n9 m2 \2 a$ @XAPP224        Data Recovery&nbsp;
4 i0 T0 h  E) V, s) oXAPP228        Quad-Port Memories in Virtex Devices &nbsp;6 J6 v# G9 V! W7 q9 k" A% i
XAPP229        Wider Block Memories&nbsp;! C- u- }1 c9 y6 t* ^0 E8 U5 I$ u
XAPP250        Clock and Data Recovery With Coded Data Streams&nbsp;
. r* q0 T$ |! vXAPP258        FIFOs Using Virtex-II Block RAM&nbsp;  U6 ]) K2 S/ P- C$ G; w! W. J, t. Z
XAPP260        Using Virtex-II Block RAM for High Performance Read/Write CAMs&nbsp;) m/ I0 q: q! u1 K* Z9 T7 U) }) Q
XAPP261        Data-Width Conversion FIFOs Using the Virtex-II Block RAM Memory&nbsp;
" o& _! \. E; p' S. Y  pXAPP267        Parity Generation and Validation for the Virtex-II Series&nbsp;5 c" a, f& w+ m+ g
XAPP268        Active Phase Alignment&nbsp;9 B+ Y+ `$ S$ I8 T+ W. F
XAPP284        Matrix Math, Graphics, and Video&nbsp;+ z+ x1 Y0 S* x
XAPP291        Self-Addressing FIFO&nbsp;
$ v8 Y$ J6 W  \! {0 cXAPP441        Remote FPGA Reconfiguration Using MicroBlaze or PowerPC&nbsp;3 d6 u5 G2 _! v% q" P
XAPP445        Configuring Spartan-3E Xilinx FPGAs with SPI Flash Memories&nbsp;, d4 J& l- A/ x
XAPP454        DDR2 SDRAM Memory Interface for Spartan-3 FPGAs&nbsp;6 [9 S4 t: M6 e, L/ G
XAPP462        Using Digital Clock Managers (DCMs) in Spartan-3 FPGAs&nbsp;
. B/ h+ D! Z( \7 f" y$ zXAPP463        Using Block RAM in Spartan-3 Generation FPGAs&nbsp;
8 Q$ R; d8 ^' @) bXAPP464        Using Look-Up Tables as Distributed RAM in Spartan-3 Generation FPGAs&nbsp;
5 H5 V0 o9 j* o: r) l( n; xXAPP465        Using Look-Up Tables as Shift Registers (SRL16) in Spartan-3 Generation FPGAs&nbsp;
: ]! q( S$ G  w/ A  \0 V/ hXAPP466        Using Dedicated Multiplexers in Spartan-3 Generation FPGAs&nbsp;5 `6 E1 T% t5 }& j! v# l  T
XAPP467        Using Embedded Multipliers in Spartan-3 FPGAs&nbsp;
4 Y. P* C3 Y% ^XAPP473        Using the ISE Design Tools for Spartan-3 FPGAs&nbsp;% U8 r; ~  O8 F+ v8 O8 [
XAPP474        Using IP Cores in Spartan-3 Generation FPGAs&nbsp;
) T6 H) F! N8 T5 V1 p2 uXAPP475        Using IBIS Models for Spartan-3 FPGAs&nbsp;) o5 R8 r/ V& C
XAPP476        Using BSDL Files for Spartan-3 Generation FPGAs&nbsp;
! q7 @1 ?' \# t9 Q+ l9 z* MXAPP477        Embedded Processing and Control Solutions for Spartan-3 Devices&nbsp;
  F6 N0 I( B/ v: |XAPP482        MicroBlaze Platform Flash/PROM Boot Loader and User Data Storage&nbsp;
! K+ _: q" V* v- ~2 vXAPP483        Multiple-Boot with Platform Flash PROMs &nbsp;
# ?, K" p0 o$ y. i8 T7 F) k7 ^XAPP485        1:7 Deserialization in Spartan-3E FPGAs at Speeds Up to 666 Mbps&nbsp;; {2 G5 Q( @" [1 _) n0 ^
XAPP489        Four- and Six-Layer, High-Speed PCB Design for the Spartan-3E FT256 BGA Package&nbsp;
7 X% Q* `7 r0 z: v7 zXAPP491        Inverting LVDS Signals for Efficient PCB Layout in Spartan-3 Generation FPGAs&nbsp;5 I8 }6 ^; T7 T6 G. y* ?, O/ g
XAPP500        J Drive: In-System Programming of IEEE Standard 1532 Devices&nbsp;, x" l, W0 p" e
XAPP502        Using a Microprocessor to Configure Xilinx FPGAs via Slave Serial or SelectMAP Mode&nbsp;
8 E$ l, U. q6 n2 L9 Z6 a* m, |XAPP514        Audio/Video Connectivity Solutions for the Broadcast Industry
( N2 k& C  [, k5 EXAPP529        Connecting Customized IP to the MicroBlaze Soft Processor Using the Fast Simplex Link(FSL)&nbsp;
+ G; Y: Y2 P  D. C) tXAPP535        High Performance Multi-Port Memory Controller
$ ]2 H' n1 E8 N- C) P2 k8 h1 @& ZXAPP536        Gigabit System Reference Design (XAPP536)
+ `9 |& R/ z! x0 j9 u  GXAPP562        Configurable LocalLink CRC Reference Design&nbsp;: P& J% x& F! u% ~
XAPP569        Digital Up and Down Converters for the CDMA2000 and UMTS Base Stations&nbsp;! R& W! ^, W+ i( q% ?7 v) Q
XAPP622        644-MHz SDR LVDS Transmitter/Receiver&nbsp;: c4 c& X2 m! Z1 h1 t) C* H: k
XAPP623        Power Distribution System (PDS) Design: Using Bypass/Decoupling Capacitors&nbsp;
0 ^  I" `* f' w* v$ uXAPP634        Analog Devices TigerSHARC Link&nbsp;
/ l  Y* |6 j; d) r  [. ?XAPP636        Optimal Pipelining of the I/O Ports of the Virtex-II Multiplier&nbsp;* W# B; f/ V5 B( q4 g
XAPP689        Managing Ground Bounce in Large FPGAs&nbsp;
4 n+ Z5 n6 \- K% Y! P3 ~XAPP690        Using Block SelectRAM Memories as Serializers or Deserializers&nbsp;
: A2 x! P/ A5 K; t* j1 z" C- MXAPP693        A CPLD-Based Configuration and Revision Manager for Xilinx Platform Flash PROMs and FPGAs&nbsp;
+ m+ J6 Q* Q- O, z4 P! QXAPP694        Reading User Data from Configuration PROMs&nbsp;
, N0 x2 ~, V+ B" u% g- @XAPP753        Interfacing Xilinx FPGAs to TI DSP Platforms Using the EMIF&nbsp;, U7 n# N9 W- x; E
XAPP774        Connecting Xilinx FPGAs to Texas Instruments ADS527x Series ADCs&nbsp;
& ^$ P) \5 b7 t* Q4 N; o5 ^9 h- XXAPP780        FPGA IFF Copy Protection Using Dallas Semiconductor/Maxim DS2432 Secure EEPROMs&nbsp;; k; v% L: N& H! T9 M! x
XAPP806        Determining the Optimal DCM Phase Shift for the DDR Feedback Clock&nbsp;
; O3 ], h/ w4 h: N4 R) ?XAPP909        Reference System: MCH OPB SDRAM with OPB Central DMA&nbsp;
( I6 k6 u4 |& s2 N9 c8 mXAPP923        Reference Design: MCH OPB EMC with OPB Central DMA&nbsp;
9 d2 J! p$ z: n8 e5 b" zXAPP930        Color-Space Converter: RGB to YCrCb&nbsp;
0 |( s7 V: F, ]5 [' x1 mXAPP931        Color-Space Converter: YCrCb to RGB&nbsp;
" S5 |" V; A# dXAPP932        Chroma Resampler&nbsp;. i! D7 V$ d, N1 H
XAPP933        Two-Dimensional Linear Filtering&nbsp;
% e5 E: D& M1 @8 u  WXAPP936        Continuously Variable Fractional Rate Decimator&nbsp;9 K( y9 v6 q6 b5 ~" j3 l* S1 O
XAPP948        Hardware Acceleration of 3GPP Turbo Encoder/Decoder BER Measurement Using System Generator&nbsp;( n0 S& ?0 h' R) p( ?4 M: e* v+ V8 [
XAPP253        Synthesizable 400 Mb/s DDR SDRAM Controller* p8 b& N  w- p2 [  S( h

評分

參與人數 1Chipcoin +5 收起 理由
tommywgt + 5 多謝補充!

查看全部評分

7#
發表於 2007-5-22 15:47:41 | 只看該作者
能有系統的整理嗎?
! J8 P; X7 j; n7 C8 _, a3 t2 K( D
" f. g' [3 S: G1 F: M, y8 x造福大家靠你囉...
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

首頁|手機版|Chip123 科技應用創新平台 |新契機國際商機整合股份有限公司

GMT+8, 2024-6-14 03:11 PM , Processed in 0.130516 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表