View previous topic :: View next topic |
Author |
Message |
crumgary
Joined: 23 Feb 2006 Posts: 6
|
FPGA based 16F84A - lots of rom |
Posted: Thu Feb 23, 2006 4:08 pm |
|
|
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
|
Re: FPGA based 16F84A - lots of rom |
Posted: Thu Feb 23, 2006 8:29 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2006 8:25 am |
|
|
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
|
|
Posted: Fri Feb 24, 2006 12:35 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2006 1:10 pm |
|
|
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
|
|
Posted: Fri Feb 24, 2006 2:01 pm |
|
|
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
|
Re: FPGA based 16F84A - lots of rom |
Posted: Fri Feb 24, 2006 7:18 pm |
|
|
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? |
|
|
|