Similar Threads:
1.please help! unknown sintax errors with my code?
what is wrong with my code that I get these errors when I check
sintax?
ERROR:HDLParsers:164 -
C:/projects/XilinxISEProjects/WL02Coolrunner/BCD_27SEGM.vhd Line 25.
parse error, unexpected LT, expecting OPENPAR or TICK or LSQBRACK
ERROR:HDLParsers:164 -
C:/projects/XilinxISEProjects/WL02Coolrunner/BCD_27SEGM.vhd Line 26.
parse error, unexpected LT, expecting OPENPAR or TICK or LSQBRACK
....ect....
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity BCD_27SEGM is
port (
PHASE: in STD_LOGIC; --LCD USES PHASE TO PREVENT BURNING
BCD: in std_logic_vector(3 downto 0);
segment: out std_logic_vector(6 downto 0)
);
end BCD_27SEGM;
architecture Behavioral of BCD_27SEGM is
begin
process (BCD,PHASE)
begin
if (PHASE = '0') then
case BCD is -- display segment order a b c d e f g
when "0000" => segment < = "1111110";
when "0001" => segment < = "0110000";
when "0010" => segment < = "1101101";
when "0011" => segment < = "1111001";
when "0100" => segment < = "0110011";
when "0101" => segment < = "1011011";
when "0110" => segment < = "1011111";
when "0111" => segment < = "1110000";
when "1000" => segment < = "1111111";
when "1001" => segment < = "1110011";
when others => segment < = "0000000";
end case;
elsif (PHASE = '1') then
case BCD is -- display segment order a b c d e f g
when "0000" => segment < = "0111111";
when "0001" => segment < = "1001111";
when "0010" => segment < = "0010010";
when "0011" => segment < = "0000110";
when "0100" => segment < = "1001100";
when "0101" => segment < = "0100100";
when "0110" => segment < = "0100000";
when "0111" => segment < = "0001111";
when "1000" => segment < = "0000000";
when "1001" => segment < = "0001100";
when others => segment < = "1111111";
end case;
end if;
end process;
end Behavioral;
2.LINECOUNTER IN C55 -RTF?!* WHAT IS EXCATLY SINTAX???
o.k.
1.global
2.embeds
MODULE('Windows')
SendMessage(LONG, LONG, LONG, LONG), LONG, PASCAL, PROC, NAME('SendMessageA')
END
3. case event -rtf control....
and ?
sendmessage(em_getlinecount) or what?
3.Newbie question: define-sintax macros
Say I have a function that accepts a variable number of arguments and
displays them:
(define (multi-display . args)
(let loop ((args args))
(if (pair? args)
(begin (display (car args)) (loop (cdr args)))
)
)
)
I want to write it as a macro
I did it using the common lisp-like define-macro construct:
(define-macro (multi-display . args)
(cons 'begin
(let loop ((cur-args args) (acc '()))
(if (null? cur-args) (reverse acc) (loop (cdr cur-args)
(cons (list 'display (car cur-args)) acc)))
)
)
)
Is it possible to define it using r5rs define-syntax? How?
Thank you.
4.Cg , GLHS - ada-like languages with C sintax ?
Hello,
i recently found one thing (it maybe was already posted somewhere in
that group),
Nvidia's Cg (C fot graphics accelerators, programs that are executed
inside graphics card) looks like ada,except C sintax.
There's in,out,and inout paramethers :)! And lots of demand for
separate packages for vertex shader and fragment shader,etc.
Maybe subset of ada could be better for that purprose anyway?
(heh,graphics programs don't need ada safety _at_all_,but...)
GLHS(opengl shader language ) looks like Cg.
Regards,
Dmytry Lavrov.
5.tralnslate sintax from nasm to gas
hi all
i need to translate this sintax from nasm to gas, but have do many
error
1) ORG 0x7C00
2) BITS 16
3) times (510-($-boot)) db 0
dw 0xAA55
4) jmp dword 8:body_32
can you help me about, code or indication i can find right translation
?
intel2gas don't work
thanx in advance
claudio
6. Strange sintax
7. How can this sintax be explained?
8. newbe and problems with sintax