|
I've got
douta : in std_logic_vector (3 downto 0); doutb : in std_logic_vector (3 downto 0); c0 : in std_logic; f1 : in std_logic; f0 : in std_logic; res : out std_logic_vector (3 downto 0);
Im' trying to build a simple ALU, and one of the function this...
Started by FS on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If f1
use ieee.std_logic_arith.all;
and what we tried will work :) Thanks to @jdehaan
You don't need to convert the std_logic to a std_....
It has been a long time since I made VHDL.. .
You could transform c0 into a std_logic_vector.
|
|
I'm not sure if I'm using "standard" terms, but this is a basic OO question I'm trying to resolve.
I'm coding a windows form. I don't want logic in the form event handler, so I just make a call to a custom object from there.
At the custom object, there...
Started by LuftMensch on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Putting the logic in a clean service layer is "service oriented", even if you aren't using to separate business logic from....
I add an intermediate service layer that's injected responses.
No, I don't put business logic in controllers.
|
|
The whole point of an MVC framework is to separate design (templates) from logic (controllers). However, template languages often afford a limited degree of "design logic" to occur. This includes basic if statements, loops, filtering, etc.
I've created...
Started by Soviut on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Paging just has to do with....
It's just supposed to be devoid of any controller logic.
What you are describing that the view isn't supposed to be devoid of logic.
The view should not contain business logic or navigation logic.
|
Ask your Facebook Friends
|
I am getting confused between domain/application logic and User Interface logic. To illustrate what I am trying to nail down, I will describe an imaginary program below for illustration purposes:
(1) Imagine a small application with a set of 3 cascading...
Started by Roberto Sebestyen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It is also equally as obvious, then the logic for this must exist to....
In that situation where you have very specialized actions happening you need to put it in the logic putting logic relating to this in the Controller is not a sin.
|
|
Hi guys:
I've done some web based projects. In those days, I met a lot of difficulties(questions, confusions) and most of them can be figured out with help. But till now a really important question is still there, even with asking some experienced developers...
Started by Tower Joo on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Edited, valya comments that using....
My reasons are fairly simple:
I don't trust the client; this may logic is taking place (I don't have to worry about the Javascript engine available to the client's.
I tend to prefer server-side logic.
|
|
Basically I have 2 unsigned 8-bit binary numbers and I need to use Boolean logic to find out which is larger and I can't for the life of me figure out where to start. Using Logic gates...
Obivously I have to analyse each bit and find out which one is ...
Started by Ben on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The number with the first bit set to "1" is greatest... .
I thought about finding which has the most significant bit, but what if they are both the same?
You proceed from "most significant bit" down to the "least significant bit" until there is a difference .
|
|
Before you answer, this question is complicated:
We are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework I think logic like sorting / hiding columns / re-arranging columns / validation (where it...
Started by Zachary Yates on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The form is written out by your templating engine, the client side logic is attached to the form and written in JS and....
Each control needs a form, client side logic and server side logic.
That are paired by server and client code.
|
|
I'm trying to get at the best way to seperate the concerns of my domain logic and my persistence logic. I'm using Linq-2-Sql for the data access and I've been following the NerdDinner tutorial . If you look at page 40, you can see they are using partial...
Started by Nate Bross on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For LINQ to SQL, I followed the approach set out by Ian Cooper (see Being Ignorant with LINQ to SQL , Architecting LINQ to SQL Applications, Part 5 and... .
I try to keep my domain objects as persistence ignorant as the technology that I'm using will allow .
|
|
I have the need to express simple conditionals as program input. The input must be human readable.
Is XML suited for this?
For example, I have the following conditional statement:
If AnimalType = Leopard And (SourceCountry = Kenya Or TargetCountry = Kenya...
Started by JRS on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There's nothing wrong with XML for this, but you could save yourself some overhead with a lighter syntax like a LISP-style lists:
(if (and (AnimalType Leopard) (or (SourceCountry Kenya) (TargetCountry Kenya) ) ) (ZooKeeper Jack) (ZooKeeper Jill) )
You... .
|
|
What is domain logic? The Wikipedia page for domain logic redirects to business logic. Are they the same thing, and, if not, how do they differ?
Started by Sydius on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Domain....
The domain is what you something else, physics for instance, there is probably no business logic in your system, but the physics parts are still domain logic.
Business logic specific to one particular field/area of expertise.
|