Verilog module in VHDL for Altera devices

On Thu, 21 Apr 2016 17:13:03 +0100, HT-Lab wrote:

On 21/04/2016 11:52, Martin Thompson wrote:
KJ <kkjennings@sbcglobal.net> writes:



I'm guessing that file is setup with dependency rules that if file X
changes then you must also compile the parents/grandparents/etc of
file X.

Agreed. Make has no concept of design units within files or the
ability to only compile parts of the file. Make is not ideally suited
to VHDL work :)

The GUI is simply compiling the file(s) that have changed since the
last compile, there is no notion of dependencies for this operation.

I'd go further - I think the GUI is only compiling *parts* of the file
(like I do from the command-line) as if it compiled the whole file, it
would recompile the entity which would then trigger an "upward flow" of
recompiles (which you are not observing).

Does the GUI compile show what commands it is executing anywhere?

Transcript window?

Seriously, I assume you are using Modelsim project files? If so then I
would strongly recommend you switch to .do/.tcl files as it will make
your life a lot easier. If compilation takes a long time then you can
use vmake although I believe you need to switch back to the old library
format to use them (I might be wrong). Just add the win32pe directory to
your search path and you can use simple batch/bash/.. scripts to compile
and run your code. If you want to use some Tcl in your script then you
can use vsim -c -do "-do mycompile.tcl;quit -f" type of commands.

How do you switch back to the old library format? I stopped using
makefiles with Modelsim once they put the entire library in a single
file. Version 10.1something I think it was.

Thanks,
Allan
 
HT-Lab wrote:

On 22/04/2016 11:37, Allan Herriman wrote:
On Thu, 21 Apr 2016 17:13:03 +0100, HT-Lab wrote:

..


How do you switch back to the old library format? I stopped using
makefiles with Modelsim once they put the entire library in a single
file. Version 10.1something I think it was.

Thanks,
Allan

Hi Allan,

You could use "vlib -type directory" which will give you the older
(slower) format. I haven't used vmake for a while as I started to use
SystemC which for some reason is not supported by vmake,

Regards,
Hans.
www.ht-lab.com

You can also poke your modelsim.ini to make it the default.

[utils]
; Default Library Type (while creating a library with "vlib")
; 0 - legacy library using subdirectories for design units
; 2 - flat library
DefaultLibType = 0

--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.
 
On 22/04/2016 11:37, Allan Herriman wrote:
On Thu, 21 Apr 2016 17:13:03 +0100, HT-Lab wrote:

...


How do you switch back to the old library format? I stopped using
makefiles with Modelsim once they put the entire library in a single
file. Version 10.1something I think it was.

Thanks,
Allan

Hi Allan,

You could use "vlib -type directory" which will give you the older
(slower) format. I haven't used vmake for a while as I started to use
SystemC which for some reason is not supported by vmake,

Regards,
Hans.
www.ht-lab.com
 
On Fri, 22 Apr 2016 16:38:16 +0000, Rob Gaddi wrote:

HT-Lab wrote:

On 22/04/2016 11:37, Allan Herriman wrote:
On Thu, 21 Apr 2016 17:13:03 +0100, HT-Lab wrote:

..


How do you switch back to the old library format? I stopped using
makefiles with Modelsim once they put the entire library in a single
file. Version 10.1something I think it was.

Thanks,
Allan

Hi Allan,

You could use "vlib -type directory" which will give you the older
(slower) format. I haven't used vmake for a while as I started to use
SystemC which for some reason is not supported by vmake,

Regards,
Hans.
www.ht-lab.com


You can also poke your modelsim.ini to make it the default.

[utils]
; Default Library Type (while creating a library with "vlib")
; 0 - legacy library using subdirectories for design units ; 2 - flat
library DefaultLibType = 0

Thanks Rob and Hans. I look forward to being able to use makefiles again.

Allan
 
HT-Lab <hans64@htminuslab.com> writes:

On 21/04/2016 11:52, Martin Thompson wrote:
Transcript window?

Seriously, I assume you are using Modelsim project files?

Nope.

If so then I would
strongly recommend you switch to .do/.tcl files as it will make your life a lot
easier.

I do (!) use do files.

I have used Makefiles in the past, but compile time is much less of an
issue these days.

Cheers,
Martin

--
martin.j.thompson@trw.com
TRW Conekt - Consultancy in Engineering, Knowledge and Technology
http://www.conekt.co.uk/capabilities/39-electronic-hardware
 

Welcome to EDABoard.com

Sponsor

Back
Top