Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
in verilog , this code :
stage1[3:0] <= stage0[7] + stage0[6] + stage0[5] + stage0[4] + stage0[3] + stage0[2] + stage0[1] + stage0[0] ;
have no problem when synthesis, but when running in FPGA , the result is fail.
so I change this to VHDL :
stage1(3 downto 0) <= stage0(7) + stage0(6) +...
how about : 1 bit + 1 bit => 2 bits. when synthesis , i see error when " 1 bit + 1 bit " ????
- - - Updated - - -
how about : 1 bit + 1 bit => 2 bits. when synthesis , i see error when " 1 bit + 1 bit " ????
i run synthesis in command line ( linux ) . the .ngc file is created , the report is :
Total REAL time to Xst completion: 1864.00 secs
Total CPU time to Xst completion: 1854.77 secs
-->
Total memory usage is 1218896 kilobytes
Number of errors : 0 ( 0 filtered)
Number of warnings ...
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.numeric_std.ALL;
ENTITY infer_bram IS
GENERIC(ADDR_WIDTH : natural := 0; --number of bits wide for address
D_WIDTH : natural := 0 --number of bits wide for data
);
PORT(
reset...
+ case data type is unsigned :
c. 2#1010# > "1010" : syntax correct : result : false ( 10 > 10 )
d. 1010 > "1010" : error
+ case data type signed :
c. 2#1010# > "1010" : syntax correct : result true ( 10 > -6)
d. 1010 > "1010" : error
-- are these right ?
thanks ! please check for me :
--------
Quiz 1 :
+ case data type is unsigned :
a. "0110" > "1001" : syntax correct , result : false ( 6 > 9)
b. "0110" > "0001001" : syntax correct , result : false ( 6 > 9)
c. 2#1010# > "1010" : ? ( i dont know)
d. 1010 > "1010"...
-----Quiz 1
Determine whether the relational operation is syntactically correct. If yes, what
is the result (i.e., true or false)?
(a) "0110" > “1001”
(b) "0110" > "000"
(c) 2#1010# > "1010"
(d) 1010 > "1010"
case1 : assume that the data type is unsigned
case2 : assume that the data type...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.