Comments (4)
Actually, it is throwing the same value again and again.
You are always adding 5
and 6
and thus the result is always 11
.
from chiseltest.
Thanks for the reply. Actually, I want to know like if I am passing 5 & 6, I will get the same answer of 11. I just want to know that, suppose there's two conditions, x = x+ 1 & y = y+2 and I want to work it in a loop. I don't want to add manually every time to the chisel test. i want that to be done with the loop. Is that possible in chisel? But whenever I am working on it, it is giving the same result always. Can you please help me with a code?
To be precise, suppose x = 2, y = 3
So, 1st step : x = x + 1 = 3
y = y + 2 = 5
The next step which will be x = 3 + 1 = 4 & y = 5 + 2 = 7. I want this in a loop (not adding it up in chisel test manually). Can it be done?
from chiseltest.
from chiseltest.
Actually, I have used the register. But the value is coming as it is. Basically, when I am using a loop like
val io = IO(new Bundle {
val x_in = Input(FixedPoint(32.W, 16.BP))
val y_in = Input(FixedPoint(16.W, 8.BP))
val h = Input(FixedPoint(32.W, 16.BP))
val y_out = Output(FixedPoint(32.W, 16.BP))
})
val mx = Reg(FixedPoint(32.W, 16.BP))
for(i<-0 until 5) {
mx := io.y_in + io.x_in
io.x_in := mx
}
io.y_out := mx
}
My question is that it is throwing the same result. and the loop is not rolling. But point is just like in C, we have to denote the 'i' in statement within the loop, but in chisel, it is throwing we cannot use it as because it is fixed point. Any idea?
from chiseltest.
Related Issues (20)
- Solver Chosen Constants for Formal Verification HOT 3
- scala.NotImplementedError: TODO: convert ThrowOnFirstErrorAnnotation HOT 3
- Bundle literal construction outside test() is not allowed in Chiseltest 5.0.0 (works in 0.5.4) HOT 2
- assertion failed: The Chisel compiler plugin is now required for compiling Chisel code HOT 1
- The waveform doesn't reflect changes in the input port until io.clock.peek HOT 1
- scala.NotImplementedError: TODO: convert DecodeTableAnnotatio HOT 7
- Will there be a chiseltest 6.0.0? HOT 16
- Frequent crash on macOS with the threaded Verilator backend HOT 6
- AXI4RAM test failed on chiseltest 5.0.2 HOT 2
- Cant ```import chiseltest._``` HOT 1
- Bitwuzla has changed it's command line argument format HOT 1
- [WARNING] Unsupported annotation: SRAMAnnotation
- [Help]A TLRAM test failed log HOT 8
- What are the future use cases of ChiselTest if it is replaced by ChiselSim? HOT 4
- Who is the copyright holder of chiseltest and what is the license? HOT 1
- one step takes extremely long time to complete HOT 2
- Cover is not yet implemented for Chiseltest HOT 3
- Implement SytemVerilog style Sequences HOT 1
- Line coverage report fails with VerilatorBackend HOT 1
- Support invoking z3 with multi-threading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chiseltest.