at the beginning
the differences between VHDL and software programming languages
Serial vs. Parallel
concurrency:
VHDL: all the codes are execute at the same time. => parallel language
notes
basic
library
1 |
|
entity
1 |
|
architecture
1 |
|
a simple and_gate example
1 |
|
saved as example_and.vhd
to generate a symbol of example_and , then insert it in the diagram file
- File -> create/update -> create symbol files ...
process
often used for sequential logic (require a clock to operate)
not common usage for combinational logic (do not require a clock)
example of flip-flop
1 |
|
saved as test.vhd
component
component 可以将某个完成的组件作为当前系统的一个子系统。需要在architecture内,begin前声明,在begin内具体化一个实例,同时定义好component的port所对应的signal,也就是port map。另外,各种design file都可以引用来作为一个component,Quartus提供了Create VHDL Component Declaration File功能,生成一个.cmp文件,内容是自动生成的对应component声明语句,非常方便。
example of component
1 |
|
附件
计算机组成课程设计实验
Comments