Примеры кода для A-C4E6E10.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
a-c4e6e10_exemple/AHDL_test/template.tdf.bak

24 lines
338 B

subdesign LED_7seg_driver {
D[8..0][4..0], CLK : input;
SEG[8..0], NUM[7..0] : output;
}
variable
in_buf[8..0][4..0] : DFF;
decoder_out[8..0][7..0] : NODE;
begin
in_buf[].clk = CLK;
in_buf[8..0][4..0] = D[8..0][4..0];
FOR i=1 TO 8 GENERATE
decoder_out[i] =
in_buf[i][0]
END GENERATE;
end;