当前位置:网站首页>The relationship between FPGA internal hardware structure and code

The relationship between FPGA internal hardware structure and code

2022-07-06 00:23:00 Silly boy: CPU

FPGA The relationship between internal hardware structure and code

I/O Mapping

Give an input signal , Then output directly without any logic operation .

module line(
        input wire in,
        output wire out
    );
    assign out =  in;
endmodule

 Insert picture description here

Mapping of combinatorial logic

module line(
        input wire in1,
        input wire in2,
        output wire out
    );
    assign out =  in1 & in2;
endmodule

 Insert picture description here

And logical truth table

Input Input Output
in1in2out
000
010
100
111

原网站

版权声明
本文为[Silly boy: CPU]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060015476167.html