文件名称:sopc
介绍说明--下载内容均来自于网络,请自行研究使用
SOPC实验--自定义PWM组件:以带一个Avalon Slave 接口的PWM 组件为例,说明如何自定义组件。,一个Avalon Slave 接口可以有clk、chipselect、address、read、readdata、write 及writedata 等信号,但这些信号都不是必需的。
一、功能
我们要实现的PWM 组件具有以下功能:
1. PWM 的周期可改,用period 寄存器存储;
2. PWM 的占空比可改,用duty 寄存器存储。
二、Avalon Slave 接口信号的设计
1.Clk:为PWM 提供时钟;
2.Write:写信号,可以通过Avalon Slave 总线将period 和duty 值从Nios II 应用程序
传送到组件逻辑中。
3.Writedata:写数据。通过此数据线传送period 和duty 值。
4.Address:本例中有两个寄存器,因此可用一根地址线表示。
5.全局信号。本例中PWM 的输出用来驱动LED 灯显示,这个信号不属于Avalon 接
口信号。
一、功能
我们要实现的PWM 组件具有以下功能:
1. PWM 的周期可改,用period 寄存器存储;
2. PWM 的占空比可改,用duty 寄存器存储。
二、Avalon Slave 接口信号的设计
1.Clk:为PWM 提供时钟;
2.Write:写信号,可以通过Avalon Slave 总线将period 和duty 值从Nios II 应用程序
传送到组件逻辑中。
3.Writedata:写数据。通过此数据线传送period 和duty 值。
4.Address:本例中有两个寄存器,因此可用一根地址线表示。
5.全局信号。本例中PWM 的输出用来驱动LED 灯显示,这个信号不属于Avalon 接
口信号。
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sopc
....\hello_world_0
....\.............\.cdtbuild
....\.............\.cdtproject
....\.............\.project
....\.............\application.stf
....\.............\Debug
....\.............\hello_world.c
....\.............\readme.txt
....\hello_world_0_syslib
....\....................\.cdtbuild
....\....................\.cdtproject
....\....................\.project
....\....................\Debug
....\....................\readme.txt
....\....................\system.stf
....\nios2_small
....\...........\altera_vhdl_support.vhd
....\...........\Block1.bdf
....\...........\catalog.ptf
....\...........\cpu_0.ocp
....\...........\cpu_0.vhd
....\...........\cpu_0.vho
....\...........\cpu_0_jtag_debug_module.vhd
....\...........\cpu_0_jtag_debug_module_wrapper.vhd
....\...........\cpu_0_mult_cell.vhd
....\...........\cpu_0_ociram_default_contents.mif
....\...........\cpu_0_test_bench.vhd
....\...........\db
....\...........\..\altsyncram_3u61.tdf
....\...........\..\altsyncram_em41.tdf
....\...........\..\altsyncram_hab1.tdf
....\...........\..\altsyncram_s202.tdf
....\...........\..\altsyncram_toc1.tdf
....\...........\..\altsyncram_u2p1.tdf
....\...........\..\altsyncram_um61.tdf
....\...........\..\altsyncram_vm61.tdf
....\...........\..\a_dpfifo_qap.tdf
....\...........\..\a_fefifo_7cf.tdf
....\...........\..\cntr_dl8.tdf
....\...........\..\cntr_rj7.tdf
....\...........\..\decode_rpe.tdf
....\...........\..\ded_mult_2o81.tdf
....\...........\..\dffpipe_93c.tdf
....\...........\..\dpram_pcp.tdf
....\...........\..\mult_add_4cr2.tdf
....\...........\..\mult_add_6cr2.tdf
....\...........\..\nios2_small.asm.qmsg
....\...........\..\nios2_small.asm_labs.ddb
....\...........\..\nios2_small.cbx.xml
....\...........\..\nios2_small.cmp.cdb
....\...........\..\nios2_small.cmp.hdb
....\...........\..\nios2_small.cmp.logdb
....\...........\..\nios2_small.cmp.qrpt
....\...........\..\nios2_small.cmp.rdb
....\...........\..\nios2_small.cmp.tdb
....\...........\..\nios2_small.cmp0.ddb
....\...........\..\nios2_small.cmp2.ddb
....\...........\..\nios2_small.dbp
....\...........\..\nios2_small.db_info
....\...........\..\nios2_small.eco.cdb
....\...........\..\nios2_small.fit.qmsg
....\...........\..\nios2_small.hier_info
....\...........\..\nios2_small.hif
....\...........\..\nios2_small.map.cdb
....\...........\..\nios2_small.map.hdb
....\...........\..\nios2_small.map.logdb
....\...........\..\nios2_small.map.qmsg
....\...........\..\nios2_small.pre_map.cdb
....\...........\..\nios2_small.pre_map.hdb
....\...........\..\nios2_small.psp
....\...........\..\nios2_small.rtlv.hdb
....\...........\..\nios2_small.rtlv_sg.cdb
....\...........\..\nios2_small.rtlv_sg_swap.cdb
....\...........\..\nios2_small.sgdiff.cdb
....\...........\..\nios2_small.sgdiff.hdb
....\...........\..\nios2_small.signalprobe.cdb
....\...........\..\nios2_small.sld_design_entry.sci
....\...........\..\nios2_small.sld_design_entry_dsc.sci
....\...........\..\nios2_small.syn_hier_info
....\...........\..\nios2_small.tan.qmsg
....\...........\..\scfifo_j4p.tdf
....\...........\ic_tag_ram.mif
....\...........\install.ptf
....\...........\jtag_uart_0.vhd
....\...........\nios2_small.asm.rpt
....\...........\nios2_small.bsf
....\...........\nios2_small.done
....\...........\nios2_small.fit.eqn
....\...........\nios2_small.fit.rpt
....\...........\nios2_small.fit.summary
....\...........\nios2_small.flow.rpt
....\...........\nios2_small.map.eqn
....\...........\nios2_small.map.rpt
....\...........\nios2_small.map.summary
....\...........\nios2_small.pin
....\...........\nios2_small.ptf
....\...........\nios2_small.qpf
....\...........\nios2_small.qsf
....\...........\nios2_small.qws
....\hello_world_0
....\.............\.cdtbuild
....\.............\.cdtproject
....\.............\.project
....\.............\application.stf
....\.............\Debug
....\.............\hello_world.c
....\.............\readme.txt
....\hello_world_0_syslib
....\....................\.cdtbuild
....\....................\.cdtproject
....\....................\.project
....\....................\Debug
....\....................\readme.txt
....\....................\system.stf
....\nios2_small
....\...........\altera_vhdl_support.vhd
....\...........\Block1.bdf
....\...........\catalog.ptf
....\...........\cpu_0.ocp
....\...........\cpu_0.vhd
....\...........\cpu_0.vho
....\...........\cpu_0_jtag_debug_module.vhd
....\...........\cpu_0_jtag_debug_module_wrapper.vhd
....\...........\cpu_0_mult_cell.vhd
....\...........\cpu_0_ociram_default_contents.mif
....\...........\cpu_0_test_bench.vhd
....\...........\db
....\...........\..\altsyncram_3u61.tdf
....\...........\..\altsyncram_em41.tdf
....\...........\..\altsyncram_hab1.tdf
....\...........\..\altsyncram_s202.tdf
....\...........\..\altsyncram_toc1.tdf
....\...........\..\altsyncram_u2p1.tdf
....\...........\..\altsyncram_um61.tdf
....\...........\..\altsyncram_vm61.tdf
....\...........\..\a_dpfifo_qap.tdf
....\...........\..\a_fefifo_7cf.tdf
....\...........\..\cntr_dl8.tdf
....\...........\..\cntr_rj7.tdf
....\...........\..\decode_rpe.tdf
....\...........\..\ded_mult_2o81.tdf
....\...........\..\dffpipe_93c.tdf
....\...........\..\dpram_pcp.tdf
....\...........\..\mult_add_4cr2.tdf
....\...........\..\mult_add_6cr2.tdf
....\...........\..\nios2_small.asm.qmsg
....\...........\..\nios2_small.asm_labs.ddb
....\...........\..\nios2_small.cbx.xml
....\...........\..\nios2_small.cmp.cdb
....\...........\..\nios2_small.cmp.hdb
....\...........\..\nios2_small.cmp.logdb
....\...........\..\nios2_small.cmp.qrpt
....\...........\..\nios2_small.cmp.rdb
....\...........\..\nios2_small.cmp.tdb
....\...........\..\nios2_small.cmp0.ddb
....\...........\..\nios2_small.cmp2.ddb
....\...........\..\nios2_small.dbp
....\...........\..\nios2_small.db_info
....\...........\..\nios2_small.eco.cdb
....\...........\..\nios2_small.fit.qmsg
....\...........\..\nios2_small.hier_info
....\...........\..\nios2_small.hif
....\...........\..\nios2_small.map.cdb
....\...........\..\nios2_small.map.hdb
....\...........\..\nios2_small.map.logdb
....\...........\..\nios2_small.map.qmsg
....\...........\..\nios2_small.pre_map.cdb
....\...........\..\nios2_small.pre_map.hdb
....\...........\..\nios2_small.psp
....\...........\..\nios2_small.rtlv.hdb
....\...........\..\nios2_small.rtlv_sg.cdb
....\...........\..\nios2_small.rtlv_sg_swap.cdb
....\...........\..\nios2_small.sgdiff.cdb
....\...........\..\nios2_small.sgdiff.hdb
....\...........\..\nios2_small.signalprobe.cdb
....\...........\..\nios2_small.sld_design_entry.sci
....\...........\..\nios2_small.sld_design_entry_dsc.sci
....\...........\..\nios2_small.syn_hier_info
....\...........\..\nios2_small.tan.qmsg
....\...........\..\scfifo_j4p.tdf
....\...........\ic_tag_ram.mif
....\...........\install.ptf
....\...........\jtag_uart_0.vhd
....\...........\nios2_small.asm.rpt
....\...........\nios2_small.bsf
....\...........\nios2_small.done
....\...........\nios2_small.fit.eqn
....\...........\nios2_small.fit.rpt
....\...........\nios2_small.fit.summary
....\...........\nios2_small.flow.rpt
....\...........\nios2_small.map.eqn
....\...........\nios2_small.map.rpt
....\...........\nios2_small.map.summary
....\...........\nios2_small.pin
....\...........\nios2_small.ptf
....\...........\nios2_small.qpf
....\...........\nios2_small.qsf
....\...........\nios2_small.qws