|
ledcontrol open{ .clk(clk), .rst_n(rst_n), .is(isc), .im(imc), .ih(ihc), .ss(led_cts), .sm(led_ctm), .sh(led_cth) }; 该模块为:
module ledcontrol{ clk,rst_n, is,ih,im, ss,sh,sm, int }
input clk; input rst_n;
input [7:1] is,im; input [5:1] ih;
input [7:1] ss,sm; input [5:1] sh;
output int;
reg int_r = 1'b1;
always @ (posedge clk or negedge rst_n) if(is == ss && im == sm && ih == sh ) begin int_r <= 1'b0; else int_r <= 1'b1; assign int = int_r;
能否在此前面加上一个非门取反, 即在不同模块中间 我实际输出的 int 值可以变,按照不同模块的要求 取反,或者不取反..
|
|