[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
What's up bitchs? Anyone know about FPGA? I'm trying
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 2
File: Fpga_xilinx_spartan.jpg (94 KB, 569x613) Image search: [Google]
Fpga_xilinx_spartan.jpg
94 KB, 569x613
What's up bitchs?
Anyone know about FPGA?
I'm trying to simulate an JK flip-flop module on Xilinx design suite using this two command lines but receiving errors
Q <= ((J nand J) nand (J nand J) nand (C nand C)) nand Qn;
Qn <= ((K nand K) nand (K nand K) nand (C nand C)) nand Q;
What am i doing wrong?
>>
>>53589345
Post errors.
>>
>>53589382
i remember quartus gave a 100+ errors even when your code worked. good times.
>>
>>53589345
>What am i doing wrong?
everything
>>
>>53589345
It's been a long time since I've worked with FPGAs but something about your code looks wrong.
>>
post full vhdl code, from the import statements to the end of your behavioral
>>
File: 4chanfpga.png (352 KB, 1920x1080) Image search: [Google]
4chanfpga.png
352 KB, 1920x1080
Think i fix it :
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 11:58:38 03/20/2016
-- Design Name:
-- Module Name: JKFlipFlopModule - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;

-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;

entity JKFlipFlopModule is
Port ( J : in STD_LOGIC;
K : in STD_LOGIC;
R : in STD_LOGIC;
S : in STD_LOGIC;
C : in STD_LOGIC;
Q : inout STD_LOGIC;
Qn : inout STD_LOGIC);
end JKFlipFlopModule;

architecture Behavioral of JKFlipFlopModule is

begin

Q <= ((J nand S) nand (C)) nand Qn;
Qn <= ((K nand R) nand (C)) nand Q;

end Behavioral;
Thread replies: 7
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.