쓸만한 소스 찾았다.
http://www.xess.com/design_examples.php#Tutorials
Digital Camera Interface 프로젝트 내에 KAC_i2c와 I2C.
KAC_i2c에 기본적인 read/write는 설계되어 있고
burst mode read/write가 필요하면 스테이트 머신에 추가하면 된다.
주의할 점은 reset 시그널을 그냥 VCC로 연결하면 오동작한다.
전원 인가시 시스템 클럭을 카운트해서 리셋을 Low->High로 바꿔줘야 한다.
그냥 리셋을 VCC로 연결할 경우 I2C 첫번째 스타트 시그널이 제대로 생성되지 않음.
I2C Master VHDL 또다른 소스
http://www.eewiki.net/display/LOGIC/I2C+Master+%28VHDL%29
아직 테스트 해보진 않았다.
xess의 I2C 소스와 유사해 보이는데...
2013/04/05
2008/10/15
Quartus_map 에서 out_of_memory
out_of_memory 에러 발생시 여길 참조 -->여기
번역해보면 내용은 이렇다.
여기서부터-------------------------------------------------------------------
Quartus II software support for High memory use designs
Large FPGA designs require increasing amounts of memory to process. The following are steps you can take when working with designs that require large amounts of memory, and ways you can increase the memory available for Quartus II software.
큰용량의 FPGA 디자인시에는 프로세스에 필요한 메모리 사용량이 늘어난다. 다음 단계는 큰 메모리 용량을 필요로하는 디자인 작업과 쿼터스에서 메모리 사용량을 증가시키는 방법에 관한 것이다.
Check Memory Requirements
Quartus II software has a readme.txt file that includes the memory requirements for supported devices. It is in in Windows, UNIX, and Linux installations. Altera strongly recommends your computer meet the minimum requirements for memory and swap space. If your computer does not have the recommended amount of memory and swap space available, try compiling the design on another computer that meets the requirements, or upgrade the memory in your computer to meet or exceed the recommendations.
쿼터스 설치 폴더에 있는 리드미 파일에 메모리 필요량에 대한 부분이 있다. 알테라는 메모리와 스왑 공간에 대한 최소 요구사항을 충족하기를 강력히 권고한다. 만일 최소사양이하라면 요구사항을 만족하는 다른 컴에서 컴파일 하거나 업그레이드 해라
Optimize Timing Assignments
It may be possible to optimize your timing assignments so they require less memory to process. Using timegroups(supported in version 4.0 through 5.0 of the Quartus II software) or assignments groups(supported beginning in version 5.1) to combine nodes with common assignments saves memory. You can use this approach instead of making separate timing assignments to many individual modes.
For example, if your design has many multicycle assignments with a value of 2, you can reduce memory use by assigning the source and destination nodes to two groups, then making a single multicycle assignment of 2 between the two groups. The memory savings depends on your particular design and assignments.
일단 로직을 옵티마이즈해서 메모리 사용량을 줄여봐
Expand Available Memory
32-Bit Windows : By default, 32-bit versions of Windows limits processes to 2 Gbytes of memory. If your design requires more than 2 Gbytes of memory, you can edit the boot.ini file to allow up to 3 Gbytes of memory per process. Refer to the following solution for information about how to edit the boot.ini file
32비트 윈도에서는 기본적으로 프로세스당 2기가 메모리 제한이 있으므로 그 이상 메모리를 필요로 한다면 아래처럼 고쳐서 메모리 제한을 3기가로 변경해라.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="????" /3GB
The Quartus II 32-bit Windows executable are large address space aware, and can use up to 3 Gbytes of memory without modification.
64-Bit Windows : Windows XP x64 supports up to 8 terabytes of memory per process. If you run out of memory, install more RAM, or use techniques described above to optimize assignments.
64비트 윈도는 8테라까지 메모리를 지원하니까 모질라면 추가하든가.
UNIX/Linux : Solaris 8 and RedHat enterprise Linux version 3.0 limit 32-bit processes to 4Gbytes of memory by default. RedHat Linux version 8.0 limits 32-bit processes to 3 Gbytes of memory by default. These limits cannot be changed.
어이쿠 리눅스는 버전별로 알아보슈.
Expand Available Memory Over 4Gbytes
If the 32-bit version of Quartus II software still cannot process your design in 3 Gbytes of memory, with optimized timing assignments, use the 64-bit version of the Quartus II software. Using a 64-bit version of the Quartus II software allows you access to more than 4 Gbytes of memory per process and therefore supports designs that require large amount of memory to compile.
However, compiling designs with a 64-bit version of Quartus II can require 50 to 100 percent more memory than the same design compiled with a 32-bit version. For example, if your design requires more than 3 Gbytes of memory with the 32-bit version, you should have at least 6 Gbytes of memory installed for a 64-bit compile.
Depending on whether you use the GUI or command-line executables, you can configure a 64-bit version of the Quartus II software in different ways.
In the GUI, in the Tools menu, choose Options. In the General category, choose Processing and select the appropriate option, as shown in Figure 1. The selections are disabled if you do not run the Quartus II software in a supported 64-bit environment.
For command-line use on Linux and Solaris, executables support the --64bit option to enable the 64-bit version. For command-line use on Windows, use the executables in the bin64 directory. Finally, you can set the QUARTUS_64BIT environment variable to specify 64-bit processing, or unset it to specify 32-bit processing. The environment variable affects both the GUI and command-line executables.
3기가로도 컴파일이 안되면 64비트로 바꿔라.
Submit a Service Request
In some cases, there may be design optimizations or software improvements that are required. Submit a service request through Altera's mySupport site and include your design files so the problem can be reproduced and corrected.
mySupport를 사용하면 우리가 도와줄수도 있다.
여기까지---------------------------------------------------------------------
번역은 발로 했다.
그래서 요약하자면
-->일단 프로세스당 3GB로 메모리 제한을 올리고 해본다음 정 안돼면 64비트 버전을 쓰세요. 아님 좀 최적화 시키든가.
번역해보면 내용은 이렇다.
여기서부터-------------------------------------------------------------------
Quartus II software support for High memory use designs
Large FPGA designs require increasing amounts of memory to process. The following are steps you can take when working with designs that require large amounts of memory, and ways you can increase the memory available for Quartus II software.
큰용량의 FPGA 디자인시에는 프로세스에 필요한 메모리 사용량이 늘어난다. 다음 단계는 큰 메모리 용량을 필요로하는 디자인 작업과 쿼터스에서 메모리 사용량을 증가시키는 방법에 관한 것이다.
Check Memory Requirements
Quartus II software has a readme.txt file that includes the memory requirements for supported devices. It is in
쿼터스 설치 폴더에 있는 리드미 파일에 메모리 필요량에 대한 부분이 있다. 알테라는 메모리와 스왑 공간에 대한 최소 요구사항을 충족하기를 강력히 권고한다. 만일 최소사양이하라면 요구사항을 만족하는 다른 컴에서 컴파일 하거나 업그레이드 해라
Optimize Timing Assignments
It may be possible to optimize your timing assignments so they require less memory to process. Using timegroups(supported in version 4.0 through 5.0 of the Quartus II software) or assignments groups(supported beginning in version 5.1) to combine nodes with common assignments saves memory. You can use this approach instead of making separate timing assignments to many individual modes.
For example, if your design has many multicycle assignments with a value of 2, you can reduce memory use by assigning the source and destination nodes to two groups, then making a single multicycle assignment of 2 between the two groups. The memory savings depends on your particular design and assignments.
일단 로직을 옵티마이즈해서 메모리 사용량을 줄여봐
Expand Available Memory
32-Bit Windows : By default, 32-bit versions of Windows limits processes to 2 Gbytes of memory. If your design requires more than 2 Gbytes of memory, you can edit the boot.ini file to allow up to 3 Gbytes of memory per process. Refer to the following solution for information about how to edit the boot.ini file
32비트 윈도에서는 기본적으로 프로세스당 2기가 메모리 제한이 있으므로 그 이상 메모리를 필요로 한다면 아래처럼 고쳐서 메모리 제한을 3기가로 변경해라.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="????" /3GB
The Quartus II 32-bit Windows executable are large address space aware, and can use up to 3 Gbytes of memory without modification.
64-Bit Windows : Windows XP x64 supports up to 8 terabytes of memory per process. If you run out of memory, install more RAM, or use techniques described above to optimize assignments.
64비트 윈도는 8테라까지 메모리를 지원하니까 모질라면 추가하든가.
UNIX/Linux : Solaris 8 and RedHat enterprise Linux version 3.0 limit 32-bit processes to 4Gbytes of memory by default. RedHat Linux version 8.0 limits 32-bit processes to 3 Gbytes of memory by default. These limits cannot be changed.
어이쿠 리눅스는 버전별로 알아보슈.
Expand Available Memory Over 4Gbytes
If the 32-bit version of Quartus II software still cannot process your design in 3 Gbytes of memory, with optimized timing assignments, use the 64-bit version of the Quartus II software. Using a 64-bit version of the Quartus II software allows you access to more than 4 Gbytes of memory per process and therefore supports designs that require large amount of memory to compile.
However, compiling designs with a 64-bit version of Quartus II can require 50 to 100 percent more memory than the same design compiled with a 32-bit version. For example, if your design requires more than 3 Gbytes of memory with the 32-bit version, you should have at least 6 Gbytes of memory installed for a 64-bit compile.
Depending on whether you use the GUI or command-line executables, you can configure a 64-bit version of the Quartus II software in different ways.
In the GUI, in the Tools menu, choose Options. In the General category, choose Processing and select the appropriate option, as shown in Figure 1. The selections are disabled if you do not run the Quartus II software in a supported 64-bit environment.
For command-line use on Linux and Solaris, executables support the --64bit option to enable the 64-bit version. For command-line use on Windows, use the executables in the bin64 directory. Finally, you can set the QUARTUS_64BIT environment variable to specify 64-bit processing, or unset it to specify 32-bit processing. The environment variable affects both the GUI and command-line executables.
3기가로도 컴파일이 안되면 64비트로 바꿔라.
Submit a Service Request
In some cases, there may be design optimizations or software improvements that are required. Submit a service request through Altera's mySupport site and include your design files so the problem can be reproduced and corrected.
mySupport를 사용하면 우리가 도와줄수도 있다.
여기까지---------------------------------------------------------------------
번역은 발로 했다.
그래서 요약하자면
-->일단 프로세스당 3GB로 메모리 제한을 올리고 해본다음 정 안돼면 64비트 버전을 쓰세요. 아님 좀 최적화 시키든가.
2008/07/31
I2C Slave VHDL
I2C_Slave_VHDL
며칠전에 만든 I2C Slave VHDL.
잡다구리한 일로 바빠서 멀티 커넥션은 아직 테스트를 못했다.
조만간 멀티로 회로를 연결해볼 생각인데 시간이 날려나 몰러...
이거 만들면서 한가지 알게된건
INOUT 포트를 사용할 때는 output enable 시그널로 IN과 OUT을 명확히 분리해줘야 한다는거...
이거 몰라서 엄하게 풀업 저항만 열나게 바꾸는 삽질을 이틀동안 했었다.
여기에 INOUT 포트 구현 예제가 있다.
어찌나 친절한지...
또 한가지 알게된 꼼수로
SCL 클럭을 SCL_pos와 SCL_neg 두개의 시그널로 전달해서 상승/하강 엣지에 대한 프로세스를 구현했다. 아직 개초보라서 이런 꼼수가 아니면 ACK 출력을 만들수가 없었다.
SPI보다 속도도 훨씬 느린 주제에 구현하기는 드럽게 어렵다.
아 열받어...
며칠전에 만든 I2C Slave VHDL.
잡다구리한 일로 바빠서 멀티 커넥션은 아직 테스트를 못했다.
조만간 멀티로 회로를 연결해볼 생각인데 시간이 날려나 몰러...
이거 만들면서 한가지 알게된건
INOUT 포트를 사용할 때는 output enable 시그널로 IN과 OUT을 명확히 분리해줘야 한다는거...
이거 몰라서 엄하게 풀업 저항만 열나게 바꾸는 삽질을 이틀동안 했었다.
여기에 INOUT 포트 구현 예제가 있다.
어찌나 친절한지...
또 한가지 알게된 꼼수로
SCL 클럭을 SCL_pos와 SCL_neg 두개의 시그널로 전달해서 상승/하강 엣지에 대한 프로세스를 구현했다. 아직 개초보라서 이런 꼼수가 아니면 ACK 출력을 만들수가 없었다.
SPI보다 속도도 훨씬 느린 주제에 구현하기는 드럽게 어렵다.
아 열받어...
2008/07/21
XC3S200-4VQ100C Module PCB
2008/06/01
2008/05/12
2007/07/26
Process문
하드웨어 시스템의 모듈들은 서로간에 병행적으로 수행되므로 시스템의 동작으로 표현하기 위해서는 일반적으로 concurrent문을 사용하는 것이 바람직하다. 그리고 그 내부의 동작은 순차적으로 이루어진다고 볼 수 있으므로 sequential문을 사용하는 것이 좋다. Process문 자체는 concurrent문이므로 여러개의 process문이 있으면 이들은 병행적으로 수행되며, process문 내부는 하나씩 차례로 수행되는 sequential문으로 표현된다.
Process문의 구조는 다음과 같다.
[프로세스 레이블 : ]
process [(sensitivity_list)]
{선언문}
begin
{sequential문}
end process [프로세스 레이블];
Process문의 구조는 다음과 같다.
[프로세스 레이블 : ]
process [(sensitivity_list)]
{선언문}
begin
{sequential문}
end process [프로세스 레이블];
피드 구독하기:
글 (Atom)