CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

FPGA based 16F84A - lots of rom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
crumgary



Joined: 23 Feb 2006
Posts: 6

View user's profile Send private message

FPGA based 16F84A - lots of rom
PostPosted: Thu Feb 23, 2006 4:08 pm     Reply with quote

I currently have a VHDL version on the 16F84A working on an fpga. The CCS compiler (PCM v3.242) works fine with it. I was actually pretty impressed.

But, do to the fact that it's on an fpga, I have lots more rom than the actual pic does.

I was wondering how I can tell the compiler about this extra rom.

I've briefly looked at #rom and functions for external eeprom but neither seems to be the proper solution.

--side note, we use hex2vhd to convert the hex code to a vhdl state machine
--I think we got it from http://edaboard.com/ftopic41346.html


Any thought? any other info needed?

Thanks
Gary
ak6dn



Joined: 08 Jan 2006
Posts: 23
Location: Saratoga, CA USA

View user's profile Send private message

Re: FPGA based 16F84A - lots of rom
PostPosted: Thu Feb 23, 2006 8:29 pm     Reply with quote

crumgary wrote:
I currently have a VHDL version on the 16F84A working on an fpga. The CCS compiler (PCM v3.242) works fine with it. I was actually pretty impressed.

But, do to the fact that it's on an fpga, I have lots more rom than the actual pic does.

I was wondering how I can tell the compiler about this extra rom.

I've briefly looked at #rom and functions for external eeprom but neither seems to be the proper solution.

--side note, we use hex2vhd to convert the hex code to a vhdl state machine
--I think we got it from http://edaboard.com/ftopic41346.html


Any thought? any other info needed?

Thanks
Gary


Go into the CCS device editor and create a new device (eg, 16F84B copied from 16F84A). You should be able to increase the program ROM size on your 16F84B from 1K to 8K (max, since it is part of the 16F 14b family). You'll also need to create a new device file for your 16F84B by cloning the 16F84A file and editing the #device line appropriately.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Feb 24, 2006 8:25 am     Reply with quote

I have just been playing around with the typemod directive.
typemod <,multi_read_fram, multi_write_fram,0,131071> fram;

This also may work. But I don't know which is best.


Where can I find info on the FPGA 16F84A?
crumgary



Joined: 23 Feb 2006
Posts: 6

View user's profile Send private message

PostPosted: Fri Feb 24, 2006 12:35 pm     Reply with quote

treitmey:
here's a link for the vhdl pic core:
http://www02.so-net.ne.jp/~morioka/cqpic.htm

there are a couple others such as the risc16f84 on opencores.org

"typemod <,multi_read_fram, multi_write_fram,0,131071> fram; "
I'll look into those directives.


ak6dn:
I forgot about the device editor. I've seen it back when I was in school (installed in the lab), I just looked on my _brandnew_ install of CCS PCM 3.242 and the device editor is not there.
I also looked at:
http://www.ccsinfo.com/pcwide.shtml

which leads me to believe that it's only available with the pcw version. which is _very_ dissappointing. I believe nasa has lots of pcm's here and convincing them to get the pcw (when we don't need the ide) probabbly isn't going to happen.
They'll just say...... sorry, no pic in space... use a state machine


thanks
ak6dn



Joined: 08 Jan 2006
Posts: 23
Location: Saratoga, CA USA

View user's profile Send private message

PostPosted: Fri Feb 24, 2006 1:10 pm     Reply with quote

crumgary wrote:

ak6dn:
I forgot about the device editor. I've seen it back when I was in school (installed in the lab), I just looked on my _brandnew_ install of CCS PCM 3.242 and the device editor is not there.
I also looked at:
http://www.ccsinfo.com/pcwide.shtml

which leads me to believe that it's only available with the pcw version. which is _very_ dissappointing. I believe nasa has lots of pcm's here and convincing them to get the pcw (when we don't need the ide) probabbly isn't going to happen.
They'll just say...... sorry, no pic in space... use a state machine

thanks


Looks like you are right; it appears the device editor is only part of the PCW* packages. You'll have to find someone with PCW* capability and have them make the changes and send you the files.

I can do that later tonite if you want, let me know.
crumgary



Joined: 23 Feb 2006
Posts: 6

View user's profile Send private message

PostPosted: Fri Feb 24, 2006 2:01 pm     Reply with quote

ak6dn:

thought would be great if you could use the device editor to change that device.
does that basically just create a new device.dat file?

then I just have to copy my 16f84a.h to a 16f84b.h file and change device to 16f84b inside that header?


I'll pm you with my contact info.

thanks
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: FPGA based 16F84A - lots of rom
PostPosted: Fri Feb 24, 2006 7:18 pm     Reply with quote

crumgary wrote:
I currently have a VHDL version on the 16F84A working on an fpga. The CCS compiler (PCM v3.242) works fine with it. I was actually pretty impressed.


That is impressive. Where did you get this core? What FPGA chip are you using?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group