FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2005, 02:50 AM
mindenpilot
Guest
 
Posts: n/a
Default attributes

All,

I declared an enumerated type and created an attribute to describe the value
for each enumeration as follows:

-- These are the RAM commands
type ram_cmd_type is (
SDRAM_LOAD_MODE_REG,
SDRAM_PRECHARGE ,
SDRAM_WRITE ,
SDRAM_BURST_TERM ,
SDRAM_REFRESH ,
SDRAM_ACTIVE ,
SDRAM_READ ,
SDRAM_NOP );

-- Note: the bits are: CS WE RAS CAS, in that order
attribute ENUM_ENCODING: STRING;
attribute ENUM_ENCODING of ram_cmd_type: type is "0000 0001 0010 0011
0100 0101 0101 0111";


I'd like to assign this type to actual ports on the device.
I like using the enumeration because I can see the command type in the
simulation as opposed to using std_logic_vector(3 downto 0) or 4
std_ulogics.
Is there a way to do this so that I can still see what I want in the
simulation?

I tried using an array std_logic_vector(3 downto 0) instead of STRING, and
then initializing with ("0000", "0001", etc), but this didn't do what I
expected...

Thanks,

Adam


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
application about hardeware attributes J.Wild FPGA 1 10-16-2007 01:15 PM
xst synthesis with attributes failure MikeJ FPGA 3 08-10-2006 08:42 PM
use of attributes Pears772 FPGA 1 03-05-2004 02:41 PM
VHDL attributes equivalent BlueDoze Verilog 1 02-20-2004 01:08 PM


All times are GMT +1. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved