Verilog刷题HDLBits——Exams/m2014 q4d

Verilog刷题HDLBits——Exams/m2014 q4d

  • 题目描述
  • 代码
  • 结果

题目描述

Implement the following circuit:
Verilog刷题HDLBits——Exams/m2014 q4d_第1张图片

代码

module top_module (
    input clk,
    input in, 
    output out);
    
    always@(posedge clk)
        out<=in^out;

endmodule

结果

Verilog刷题HDLBits——Exams/m2014 q4d_第2张图片

你可能感兴趣的:(fpga开发)