Professional Documents
Culture Documents
Penerapan Metode Konvolusi Wikaria Gazal
Penerapan Metode Konvolusi Wikaria Gazal
Abstract: The main objective of this paper is to present the design of an efficient, real-time
data archival system to a Secure Digital flash memory card via softcore. The data access from
the SD card is implemented completely using Verilog and hence there is no use of any
microcontroller or on-chip general purpose processors. And since the complete design is a
single purpose system, no extra hardware is required. The design has four independent
modules for the required different operations on the SD memory card. These four modules are
for single block write, multiple block write, single block read, and multiple block read
operations. The modeled design can be simulated using Modelsim tool and the intended
functionality can be verified with the help of its simulation results and also it can be
synthesized using the Xilinx tool.
Keywords: SD, SDSC, SDXC, SDHC, Volatile, Non-Volatile, Simulation, Xilinx
•A newer card may offer greater High Capacity) and SDXC (Secure
capacity than the host device can Digital eXtended Capacity). These
handle. cards redefine the interface so that
• A newer card may use a file system they cannot be used in older host
the host device cannot navigate. devices.
• Use of an SDIO card requires the host • It defined an SDIO card family that
device be designed for the provides input-output functions and
input/output functions the card may also provide memory functions.
provides. These cards are only fully functional
• The organization of the card was in host devices designed to support
changed starting with theSDHC their input-output functions.
family.
• Some vendors produced SDSC cards
above 1 GB before the SDA had
standardized a method of doing so.
The SDA uses several trademarked
logos to enforce compliance with its
specifications and assure users of
compatibility.
Types of cards
Figure 1 Physical size of a SD card
The SDA has extended the SD
specification in various ways:
• It defined electrically identical cards Size comparison of families: SD
in smaller sizes: miniSD and microSD (blue), miniSD (green), microSD (red)
Smaller cards are usable in larger three physical sizes. The SD and
adapter. By comparison, Reduced Size three sizes, but the SDXC family is
MultiMediaCards (RS-MMCs) are not available in the mini size, and the
simply shorter MMCs and can be SDIO family is not available in the
(SDHC) format, defined in Version 2.0 cards up to 2TB (2048 GB), compared
capacity SD cards (SDSC). The major types and transfer modes. The SPI
compatibility issues between SDHC bus mode and one-bit SD bus mode
and SDSC cards are the redefinition are mandatory for all SD families, as
register in Version 2.0 (see below), the host device and the SD card
and the fact that SDHC cards are negotiate a bus interface mode, the
shipped preformatted with the FAT32 usage of the numbered pins is the
Host devices that accept SDHC • SPI bus mode: Serial Peripheral
center and the microSD card omits flash chips (top and middle), SD
Command interface
Figure 4 Official Pin out for SD cards SD cards and host devices initially
Official pin numbers for each card communicate through a synchronous
type (top to bottom): MMC, SD, one-bit interface, where the host
miniSD, microSD. This shows the device provides a clock signal that
evolution from the older MMC, on strobes single bits in and out of the
which SD is based. SD card. The host device thereby
Interface sends 48-bit commands and receives
responses. The card can signal that a
response will be delayed, but the host
device can abort the dialogue.
During transmission the module DAT3), one command line (CMD) and
keep track for FIFO buffet underflow a clock line (CLK). All signals are
or overflows, when the transmission operating in push pull mode, all
is completed it check for valid CRC. If signals except CLK shall have a pull
anything goes wrong during a up resistor of a recommended size of
transmission a stop command is sent 10-100kΏ
and the module try to restart the Bus protocol
transmission n times before giving up. Communication over the SD bus is
SD Data Host based on command and data bit
This module is the interface streams that are initiated by a start
towards physical SD card device Data bit and terminated by a stop bit. A
port. The interface consist of only 5 command is used start an operation
signals, one clock SDCLK, and the 1- in the card, most command gives a
4 bit bi-direction Data signal DAT. response token as reply.
The module perform the following Command transfer
actions. When the bus is free/idle,
• Synchronized request for write and meaning command line is high, an
read data and . command transfer can be initiated by
• Adding a CRC-16 checksum on sent sending a start signal. A start signal,
data and check for correct CRC-16 on usually referred to as the S-bit, which
received commands. is defined as a high-to-low transition
SD FIFO Tx/Rx Filer of the CMD line. The command bit is
This module works as the DMA it sent in a MSB to LSB fashion.
manager the receive and transceiver Data transfer
FIFO buffer for the data stream. It To start a data transmission first a
keeps track of the status of the FIFO:s command request for data has to be
if somethings goes wrong, like full sent to the card. A data then
receiver FIFO or empty transfer buffer transmission starts with a S-bit on
it signals this. DAT0 line. The data is sent in a
SD Clock Divider lowest byte first, highest byte last
Divide the input clock with 2 4 6 manner, with MSB to LSB manner for
etc.. each byte.
SD/MMC Operation Core Operation
The SD/MMC cards bus includes Note that the Rx and Tx FIFO is
the following,a serial data line (DAT0- not intended to be implemented as
RAM-block and therefore require a step. First the command index and
lots of logic if setting to high. If FIFO transmission settings for the
overflow or underflow a option is command to be, sent is written into
instead to lower the clock speed to the the Command setting Register. Next
card or enchant the performance of the commands argument bits of the
the system around to not use the command is be written to the
memory as much leaving more free argument register, which then initiate
bus access cycler to the SD core. the transfer. Upon response bit 0 in
Resetting the core the Normal interrupt status register is
The RST_I signal is used for set to 1 and the response is available
resetting all modules. This can also be in response register. If any of the
done by setting the SRST bit in the requested error check fails will this
Software reset register to 1 . be visible in the Error interrupt status
Setting up the core register.
• Reset the core Buffer descriptors
• Set the timeout register The transmission and the
• Assert Software reset reception processes are based on the
Host Interface Operation descriptors. The Transmit
The host interface connects the IP Descriptors (Tx) are used for
Core to the rest of the system (RISC, transmission while the Receive
memory) via the WISHBONE bus. The Descriptors (RxD) are used for
WISHBONE serves to access the reception. The buffer descriptors are
configuration registers and the 64 bits long. The first 32 bits contain
memory. Currently, only DMA the pointer to the associated buffer
transfers are supported for (where data is stored) while the last
transferring the data from/to the 32 bits contain the card block address
memory. to read or write from. The core has a
Configuration Registers internal ram that can store up to 255
The function of the configuration Tx and Rx BD.
registers is transparent and can be Data block transmission
easily understood by reading the To transmit a block of data, the
Registers section RISC has to perform several steps.
Sending commando First make sure the card is initiated
The sending of a command to the correctly and is ready for data with
SDC/MMC card is performed in two the block size of 512 byte with all 4
4. Results& Conclusions
A bidirectional core for the SD
card design was implemented in
XILINX ISE. Secure Digital (or SD) is a
non-volatile memory card format for
use in portable devices, such as
mobile phones, digital cameras, GPS
navigation devices, and tablet
computers.
ProdManualSDCardv1.9.pdf, accessed
April 2010.
[3] C. Lin and L. Dung. “A NAND Flash
Memory Controller for SD/MMC Flash
Memory Card,” IEEE Transactions on
Magnetics, Vol. 43, 2007.
[4] C. Li, Q. Wang, and L. Wang. “A high
efficient Flash storage System for Two
way Cable Modem,” in Proceedings of
Figure 11 Internal RTL Schematic of SD controller
IEEE International Workshop on
Design Statistics
Computer and Information Technology,
# IOs : 150
pp. 551-556, 2008.
# BELS :1
[5] O. Elkeelany and G. Vince. "Portable
# GND :1
Analog Data Capture Using Custom
# IO Buffers : 77
Processing," in Proceedings of The IEEE
# OBUF : 77
39th Southeastern Symposium on
Total memory usage is 186332
System Theory, pp. 120-123, 2007.
kilobytes
[6] D. Young, C. Zhen-Cheng, and S.
Acknowledgements
Han. “Read/write SD Card based on
The authors would like to thank
Microcontroller MSP430,” Journal of
the anonymous reviewers for their
Biomedical Engineering Research, 2004.
comments which were very helpful in
[7] Y. Ming-Ji, L. Yuan, and S. Ji-Yu.
improving the quality and presentation
“Interface Design between Secured
of this paper.
Digital Card and Single Chip
References:
Microcomputer,” Journal Information
[1] M. Abdallah and O. Elkeelany.
Technology, 2008.
“Simultaneous Multi-channel Data
Authors Profile:
Acquisition and Storing System,” in Konatham Naga Lakshmi
proceedings of International Conference is Pursuing her M. Tech
on Computing, Engineering and from Chirala Engineering
Information ICC‟09, pp.233-236, 2009. College, Chirala in the
[2] SanDisk SD card product manual, department of Electronics & Communications