阅读下列代码,该模块的功能是()。 module comp_2(data0,data1,gt,eq,lt); parameter N=8; input [N-1:0] data0,data1; output reg gt,eq,lt; always@(*) beign gt=0; eq=0; lt=0; if(data0>data1) gt=1; if(data0==data1) eq=1; if(data0<data1) lt=1; endA.编码器B.二-十进制译码器C.数据比较器D.数据选择器

题目

阅读下列代码,该模块的功能是()。 module comp_2(data0,data1,gt,eq,lt); parameter N=8; input [N-1:0] data0,data1; output reg gt,eq,lt; always@(*) beign gt=0; eq=0; lt=0; if(data0>data1) gt=1; if(data0==data1) eq=1; if(data0<data1) lt=1; end

A.编码器

B.二-十进制译码器

C.数据比较器

D.数据选择器


相似考题
更多“阅读下列代码,该模块的功能是()。 module comp_2(data0,data1,gt,eq,lt); parameter N=8; input [N-1:0] data0,data1; output reg gt,eq,lt; always@(*) beign gt=0; eq=0; lt=0; if(data0>data1) gt=1; if(data0==data1) eq=1; if(data0<data1) lt=1; end”相关问题
  • 第1题:

    有以下程序:

    当执行程序时,按下列方式输入数据(从第l列开始,<;CR>;代表回车,注意:回车也是一个字符]12<;CR>;34<;CR>;则输出结果是( )。

    A.12

    B.123

    C.1234

    D.12343


    正确答案:D
    按照从键盘输入的数据可以_判断字符l给了变量a,字符2给了变量b,字符<CR>即回车给了变量c,字符3给了变量d。所以打印输出的结果为D选项。

  • 第2题:

    若要查询成绩为85~100分(包括85分,不包括100分)的学生的信息,查询准则设置正确的是( )。

    A.>;84 0r<;100

    B.Between 85 with l00

    C.IN(85,100)

    D.>;=85 and<;100


    正确答案:D
    D.【解析】本题考查表达式和运算符的知识。Between…And是一个表示在某区间内的运算符,等价于:>=下界And<=上界;表示集合的方法是用括号括起集合的所有元素,这些元素之间用逗号隔开,表示在某个集合内的关键字用in。

  • 第3题:

    已知L0代表自由空间损耗,GR,GT为收发信天线增益,LT,LR收发信馈线损耗,则无衰落传输损耗等于()

    • A、LO-GR-GT+LT+LR
    • B、LO+T=LT-LR
    • C、LO-LT-LR

    正确答案:A

  • 第4题:

    执行语句a=Server.HTMLEncode(Server.HTMLEncode(""))后,变量a的值是()。

    • A、"<<p>>"
    • B、"&lt;p&gt;"
    • C、"&lt;&lt;p&gt;&gt;"
    • D、"&amp;lt;p&amp;gt;"

    正确答案:D

  • 第5题:

    以下HTML标记写法有错误的是()。

    • A、&lt;head&gt;&lt;/head&gt;
    • B、&lt;br&gt;&lt;/br&gt;
    • C、&lt;h1&gt;&lt;/h1&gt;
    • D、&lt;p&gt;&lt;/p&gt。

    正确答案:B

  • 第6题:

    jQuery选择器中选择下标值小于3的元素说法正确的是()。

    • A、:gt(3)
    • B、:eq(3)
    • C、:lt(3)
    • D、:not(3)

    正确答案:C

  • 第7题:

    按索引值来选取元素的选择器有哪些?()

    • A、gt()
    • B、odd
    • C、eq()
    • D、lt()

    正确答案:A,B,C,D

  • 第8题:

    以下的关系表达式中,哪个是正确的()?

    • A、(3.2x-1.0).GT.Y
    • B、(x+Y+Z)*SQRT(ABS(x))EQ0.0
    • C、LOG(ABS(x)).LT.0.0
    • D、D.(A+*x>B-C

    正确答案:C

  • 第9题:

    单选题
    执行语句a=Server.HTMLEncode(Server.HTMLEncode(""))后,变量a的值是()。
    A

    <<p>>

    B

    &lt;p&gt;

    C

    &lt;&lt;p&gt;&gt;

    D

    &amp;lt;p&amp;gt;


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    jQuery选择器中选择下标值小于3的元素说法正确的是()。
    A

    :gt(3)

    B

    :eq(3)

    C

    :lt(3)

    D

    :not(3)


    正确答案: A
    解析: 暂无解析

  • 第11题:

    多选题
    Given: 6. Which two successfully translate and result in a value of true?()
    A

    ${true or false}

    B

    ${requestScope[foo][0] > 500}

    C

    ${requestScope[’foo’][1] = 420}

    D

    ${(requestScope[’foo’][0] lt 50) && (3 gt 2)}


    正确答案: A,C
    解析: 暂无解析

  • 第12题:

    单选题
    Which statement will NOT create a tablespace?()
    A

     CREATE TABLESPACE DATA1 DATAFILE ’+grp1/abc(datafile)’;

    B

     CREATE TABLESPACE DATA1 DATAFILE ’+grp1’;

    C

     CREATE TABLESPACE DATA1 DATAFILE ’+data1(tempfile)’;

    D

     CREATE TABLESPACE DATA1 DATAFILE ’+grp1.256.34359’;


    正确答案: C
    解析: 暂无解析

  • 第13题:

    有以下程序:

    执行时输入:0<;回车>;后,则输出结果是( )。

    A.5,

    B.0,0,0,0,0,

    C.0,1,2,3,4,

    D.0,1.


    正确答案:C
    ”anf(”%c”,&c),输入的字符,题目中输入了0,字符0,对应于ASCIl码为48,因此for循环中,i的范围从0~5,均小于48,if条件不成立,直接执行下一条语句,执行语句prinff,因此得到的结果是0,1,2,3,4。故答案为C选项。

  • 第14题:

    本题的功能是用冒泡法对数组元素arr[]={30,1,-9,70)进行从小到大排列。冒泡法排序是比较相邻的两个元素的大小,然后把小的元素交换到前面。

    public class javal{

    public static void main(String[]args){

    int i,j;

    int arr[]={30,1,-9,70);

    int n= ;

    for(i=0;i<;n-1;i++){

    for(j=i+1;j<;n;j++){

    if(arr[i]>;arr[j]){

    int temp=arr[i];

    }

    }

    }

    for(i=0;i<;n;i++)

    System.out.print(arr[i]+"");

    }

    }


    正确答案:
    第1处:arr.length第2处:arr[]=arr[j]第3处:arr[j]=temp【解析】第1处从下面的循环结构可看出n的值应为数组的大小;第2处和第3处是借助临时变量把小的元素交换到前面。

  • 第15题:

    如果发现前台激活的版本错误,可以通过删除前台/IDE0/256/DATA0和/IDE0/256/DATA1路径下()文件,重新上传激活版本。


    正确答案:VERCONF_DB.ZDB

  • 第16题:

    设x、y、z的值分别为1,2,-3,下面的逻辑运算的值正确的是()

    • A、x eq 1 and y eq 2 —为真
    • B、x gt y or y gt z —为假
    • C、x lt y and y gt z —为假
    • D、x eq y or x lt z —为真

    正确答案:A

  • 第17题:

    关系操作符EQ、NE、LT、GT、LE、GE计算的结果为逻辑值,试问0FFFFH代表假,0代表真是否正确?


    正确答案:0FFFFH代表真。0表示结果为假。

  • 第18题:

    jQuery选择器中选择下标大于3的元素是()。

    • A、:gt(3)
    • B、:lt(3)
    • C、:eq(3)
    • D、:frist

    正确答案:A

  • 第19题:

    下面能够正确打开的一组语句是:()。

    • A、Open“Data1”forInputAs#1Open“Data1”forRandomAs#2
    • B、Open“Data1”forOutputAs#1Open“Data2”forInputAs#1
    • C、Open“Data1”forOutputAs#1Open“Data2”forInputAs#2
    • D、Open“Data1”forInputAs#1Open“Data1”forInputAs#2

    正确答案:C

  • 第20题:

    Which statement will NOT create a tablespace?()

    • A、 CREATE TABLESPACE DATA1 DATAFILE ’+grp1/abc(datafile)’;
    • B、 CREATE TABLESPACE DATA1 DATAFILE ’+grp1’;
    • C、 CREATE TABLESPACE DATA1 DATAFILE ’+data1(tempfile)’;
    • D、 CREATE TABLESPACE DATA1 DATAFILE ’+grp1.256.34359’;

    正确答案:D

  • 第21题:

    单选题
    Your database is running in ARCHIVELOG mode. You are performing a user-managed backup of the DATA1 tablespace.  You place the DATA1 tablespace in backup mode by issuing the following statement:   ALTER TABLESPACE data1 BEGIN BACKUP;   While you are performing the backup, an error occurs that causes the instance to terminate abnormally. Which statement about the DATA1 tablespace is true?()
    A

     The DATA1 tablespace is automatically taken out of backup mode when the instance aborts.

    B

     If you restart the database,the DATA1 tablespace will be automatically taken out of backup mode  when the database is opened.

    C

     If you restart the database,the DATA1 tablespace will be automatically taken out of backup mode  when the database is mounted.

    D

     If you restart the database,the database will not be opened.


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    要求建立一个宽度与浏览器宽度一致、边框为0的表格,正确的写法是()。
    A

    &lt;tablewidth=”800”border=”0”&gt;&lt;/table&gt;

    B

    &lt;tablewidth=”1024”border=”0”&gt;&lt;/table&gt;

    C

    &lt;tablewidth=”100%”border=”0”&gt;&lt;/table&gt;

    D

    &lt;tablewidth=”100%”&gt;&lt;/table&gt。


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    You issued the following command:   ALTER TABLE SCOTT.EMP SHRINK SPACE;   The SCOTT.EMP table is stored in the DATA1 tablespace that has the following properties:   DATA1 is a read/write tablespace.   DATA1 is not autoextensible to an unlimited size.  DATA1 is online.   Segment space management for the DATA1 tablespace is manual.   You issued the ALTER TABLE SCOTT.EMP SHRINK SPACE; command that generates the following error:   ORA-10635: Invalid segment or tablespace type    What could be the reason for the failure of the command?()
    A

     The tablespace, DATA1, is not read-only.

    B

     The tablespace, DATA1, is not autoextensible.

    C

     The tablespace, DATA1, is not offline.

    D

     The segment space management for the tablespace, DATA1, is manual.


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    jQuery选择器中选择下标大于3的元素是()。
    A

    :gt(3)

    B

    :lt(3)

    C

    :eq(3)

    D

    :frist


    正确答案: C
    解析: 暂无解析