文件名称:4v2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:134.07kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
ENTITY maj IS
PORT(a,b,c : IN BIT m : OUT BIT)
END maj
--Dataflow style architecture
--Behavioural style architecture using a look-up table
ARCHITECTURE using_table OF maj IS
BEGIN
PROCESS(a,b,c)
CONSTANT lookuptable : BIT_VECTOR(0 TO 7) := "00010111"
VARIABLE index : NATURAL
BEGIN
index := 0 --index must be cleared each time process executes
IF a = 1 THEN index := index + 1 END IF
IF b = 1 THEN index := index + 2 END IF
IF c = 1 THEN index := index + 4 END IF
m <= lookuptable(index)
END PROCESS
END using_table
------------------3,5,6,7 is 1 so 110 101 011 111 is 1-ENTITY maj IS
PORT(a,b,c : IN BIT m : OUT BIT)
END maj
--Dataflow style architecture
--Behavioural style architecture using a look-up table
ARCHITECTURE using_table OF maj IS
BEGIN
PROCESS(a,b,c)
CONSTANT lookuptable : BIT_VECTOR(0 TO 7) := "00010111"
VARIABLE index : NATURAL
BEGIN
index := 0 --index must be cleared each time process executes
IF a = 1 THEN index := index+ 1 END IF
IF b = 1 THEN index := index+ 2 END IF
IF c = 1 THEN index := index+ 4 END IF
m <= lookuptable(index)
END PROCESS
END using_table
------------------3,5,6,7 is 1 so 110 101 011 111 is 1
PORT(a,b,c : IN BIT m : OUT BIT)
END maj
--Dataflow style architecture
--Behavioural style architecture using a look-up table
ARCHITECTURE using_table OF maj IS
BEGIN
PROCESS(a,b,c)
CONSTANT lookuptable : BIT_VECTOR(0 TO 7) := "00010111"
VARIABLE index : NATURAL
BEGIN
index := 0 --index must be cleared each time process executes
IF a = 1 THEN index := index + 1 END IF
IF b = 1 THEN index := index + 2 END IF
IF c = 1 THEN index := index + 4 END IF
m <= lookuptable(index)
END PROCESS
END using_table
------------------3,5,6,7 is 1 so 110 101 011 111 is 1-ENTITY maj IS
PORT(a,b,c : IN BIT m : OUT BIT)
END maj
--Dataflow style architecture
--Behavioural style architecture using a look-up table
ARCHITECTURE using_table OF maj IS
BEGIN
PROCESS(a,b,c)
CONSTANT lookuptable : BIT_VECTOR(0 TO 7) := "00010111"
VARIABLE index : NATURAL
BEGIN
index := 0 --index must be cleared each time process executes
IF a = 1 THEN index := index+ 1 END IF
IF b = 1 THEN index := index+ 2 END IF
IF c = 1 THEN index := index+ 4 END IF
m <= lookuptable(index)
END PROCESS
END using_table
------------------3,5,6,7 is 1 so 110 101 011 111 is 1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4v2/maj.qpf
4v2/maj.qsf
4v2/db/mux_ldc.tdf
4v2/db/maj.db_info
4v2/db/maj.sgdiff.hdb
4v2/db/maj.sim.qmsg
4v2/db/maj.sim.hdb
4v2/db/maj.fit.qmsg
4v2/db/wed.zsf
4v2/db/maj.map.cdb
4v2/db/maj.map.hdb
4v2/db/maj.cmp.rdb
4v2/db/maj.cmp.logdb
4v2/db/maj.cmp.kpt
4v2/db/maj.cbx.xml
4v2/db/maj.hif
4v2/db/maj.(0).cnf.cdb
4v2/db/maj.(0).cnf.hdb
4v2/db/maj.hier_info
4v2/db/maj.rpp.qmsg
4v2/db/maj.sgate.rvd
4v2/db/maj.sld_design_entry.sci
4v2/db/maj.cmp0.ddb
4v2/db/maj.cmp.cdb
4v2/db/maj.asm.qmsg
4v2/db/maj.cmp.hdb
4v2/db/maj.tan.qmsg
4v2/db/maj.psp
4v2/db/maj.dbp
4v2/db/maj.signalprobe.cdb
4v2/db/maj.cmp.tdb
4v2/db/maj.eco.cdb
4v2/db/maj.sgate_sm.rvd
4v2/db/maj.fnsim.cdb
4v2/db/maj.syn_hier_info
4v2/db/maj.fnsim.qmsg
4v2/db/maj.eds_overflow
4v2/db/maj.fnsim.hdb
4v2/db/maj.sim.vwf
4v2/db/maj.sim.rdb
4v2/db/maj.sld_design_entry_dsc.sci
4v2/db/maj.map.qmsg
4v2/db/maj.rtlv_sg.cdb
4v2/db/maj.rtlv.hdb
4v2/db/maj.rtlv_sg_swap.cdb
4v2/db/maj.pre_map.hdb
4v2/db/maj.pre_map.cdb
4v2/db/maj.map.logdb
4v2/db/maj.sgdiff.cdb
4v2/db
4v2/maj.vhd
4v2/maj.map.rpt
4v2/maj.flow.rpt
4v2/maj.map.summary
4v2/maj.done
4v2/maj.pin
4v2/maj.fit.rpt
4v2/maj.fit.smsg
4v2/maj.fit.summary
4v2/maj.asm.rpt
4v2/maj.tan.summary
4v2/maj.tan.rpt
4v2/maj.vwf
4v2/maj.sim.rpt
4v2/maj.qws
4v2
4v2/maj.qsf
4v2/db/mux_ldc.tdf
4v2/db/maj.db_info
4v2/db/maj.sgdiff.hdb
4v2/db/maj.sim.qmsg
4v2/db/maj.sim.hdb
4v2/db/maj.fit.qmsg
4v2/db/wed.zsf
4v2/db/maj.map.cdb
4v2/db/maj.map.hdb
4v2/db/maj.cmp.rdb
4v2/db/maj.cmp.logdb
4v2/db/maj.cmp.kpt
4v2/db/maj.cbx.xml
4v2/db/maj.hif
4v2/db/maj.(0).cnf.cdb
4v2/db/maj.(0).cnf.hdb
4v2/db/maj.hier_info
4v2/db/maj.rpp.qmsg
4v2/db/maj.sgate.rvd
4v2/db/maj.sld_design_entry.sci
4v2/db/maj.cmp0.ddb
4v2/db/maj.cmp.cdb
4v2/db/maj.asm.qmsg
4v2/db/maj.cmp.hdb
4v2/db/maj.tan.qmsg
4v2/db/maj.psp
4v2/db/maj.dbp
4v2/db/maj.signalprobe.cdb
4v2/db/maj.cmp.tdb
4v2/db/maj.eco.cdb
4v2/db/maj.sgate_sm.rvd
4v2/db/maj.fnsim.cdb
4v2/db/maj.syn_hier_info
4v2/db/maj.fnsim.qmsg
4v2/db/maj.eds_overflow
4v2/db/maj.fnsim.hdb
4v2/db/maj.sim.vwf
4v2/db/maj.sim.rdb
4v2/db/maj.sld_design_entry_dsc.sci
4v2/db/maj.map.qmsg
4v2/db/maj.rtlv_sg.cdb
4v2/db/maj.rtlv.hdb
4v2/db/maj.rtlv_sg_swap.cdb
4v2/db/maj.pre_map.hdb
4v2/db/maj.pre_map.cdb
4v2/db/maj.map.logdb
4v2/db/maj.sgdiff.cdb
4v2/db
4v2/maj.vhd
4v2/maj.map.rpt
4v2/maj.flow.rpt
4v2/maj.map.summary
4v2/maj.done
4v2/maj.pin
4v2/maj.fit.rpt
4v2/maj.fit.smsg
4v2/maj.fit.summary
4v2/maj.asm.rpt
4v2/maj.tan.summary
4v2/maj.tan.rpt
4v2/maj.vwf
4v2/maj.sim.rpt
4v2/maj.qws
4v2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.