2021年4月22日 星期四

HBLbits_Verilog Basic_7420

HBLbits_Verilog Basic_7420 

Create a module with the same functionality as the 7420 chip. It has 8 inputs and 2 outputs.

7420.png



module top_module ( 
    input p1a, p1b, p1c, p1d,
    output p1y,
    input p2a, p2b, p2c, p2d,
    output p2y );

    assign p1y= ~(p1a & p1b & p1c & p1d);
    assign p2y= ~(p2a & p2b & p2c & p2d);   
endmodule

沒有留言:

張貼留言

Modbus FC=1 (Coils read) & FC=15 (Coils Write)

Modbus FC=1  (Coils read)  & FC=15 (Coils Write)   「從 Modbus 設備讀取多個線圈(Coils)狀態,並立刻將這些狀態原封不動地轉寫到另一個記憶體位址(起始位址 16)」 。 整個流程使用了知名套件 node-red...