Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI've had more luck by not trying to import my actual VHDL code directly, but to first create a temporary entity definition and import relative to that, i.e., take your top-level VHDL file, and delete everything but the entity definition. Replace the architecture with something that will compile, eg. drive the outputs to static values.
Since this new VHDL file has no dependencies, SOPC builder will be able to compile-check it. You can then map the ports to Avalon interfaces and get it 'working' as an SOPC recognized component. Then edit the _hw.tcl file to list the appropriate VHDL source and library files. If your _hw.tcl file only contains the top-level entity VHDL file, then so long as your Quartus project contains all the VHDL files needed to build that component, the SOPC project will compile ok. Cheers, Dave