Logo Passei Direto
Buscar
Material
páginas com resultados encontrados.
páginas com resultados encontrados.

Prévia do material em texto

Step 1 of 2 8.044E The clocked synchronous circuit has eight inputs N7-N0. That represents an integer N in the range of 0- 255. If N = 255 then Z will be asserted when the count is 255. If N = 128 then Z will be asserted when the count is 128 and 256. If then Z will be asserted continuously. Write the ABEL program to realize the circuit. module counter title 'Eight-input counter' COUNTER device 'PAL22V10' Input and Output pins CLK, CLR, LD, ENP, ENT pin; N1, N2, N3,N4, N5, N6, N7, N8, Z pin istype 'reg'; " Definitions N = [N1, N2, N3, N4, N5, N6, N7, N8]; = 12, 14, 15, 16, 17, 18]; " Equations Z.CLK = CLK; when CLR then I:=0; when LD then N; when (ENP== 1 & ENT := 1) then when N==1 then Z:=1; when (N==2 & then Z:=1; when (N==4 & I==[.X., X., X., X., 0, 0]) then Z:=1; when (N==8 & I==[.X., X., X., X., X., 0, 0, 0]) then Z:=1; when (N==16 & X., 0, 0, 0, then Z:=1; when (N==32 & X., 0, 0, 0, 0, 0]) then Z:=1; when (N==64 & X., 0, 0, 0, 0, 0, then Z:=1; when (N==128 & I==[.X., 0, 0, 0, 0, 0, 0, then Z:=1; end counter Step 2 of 2 module counter title 'Eight-input counter' COUNTER device 'PAL22V10' Input and Output pins CLK, CLR, LD, ENP, ENT pin; N1, N2, N3,N4, N5, N6, N7, N8, Z pin istype 'reg'; Definitions N = [N1, N2, N3, N4, N5, N6, N7, N8]; = 12, 14, 15, 16, 17, 18]; COUNT = [0, 0, 0, 0, 0, 0, Equations Z.CLK = CLK; when COUNT

Mais conteúdos dessa disciplina